HTML Programming Notes
HTML Programming Notes
Self-Closing Tags
Some HTML tags do not have closing tags and are
self-contained, such as:
• <img />
• <br /> (line break)
• <hr /> (horizontal rule)
Semantic HTML
Using semantic tags enhances the readability and
accessibility of the web content.
• Examples:
• <header>: Represents the introductory
content.
• <nav>: Contains navigation links.
• <article>: Represents an independent piece of
content.
• <section>: Defines a section of content.
• <footer>:
Represents the footer of the
document or section.
Conclusion
HTML is essential for structuring and presenting
web content. Understanding basic elements and
their attributes is the first step in web
development. By learning and practicing HTML,
you can create and design your own webpages
effectively.