Understand the structure of web pages with semantic HTML5
elements and best practices.
Definition: Declares the HTML version being used. For HTML5, it’s
Purpose: Ensures browser rendering in standards mode.
Definition: Root element of the HTML document.
Purpose: Encloses all content except .
Attributes: lang="en" specifies the language.
Definition: Container for meta-information like title, styles, scripts.
Definition: Container for meta-information like title, styles, scripts.
Definition: Contains the visible part of the HTML document (what users see).
Definition: Six levels of topic-titles.
SEO Importance: h1 is crucial for page titles.
Definition: Defines a paragraph of text.
Auto margin below text.
Definition: Line break (used in poetry, addresses).
Empty tag.
Definition: Horizontal rule or thematic break.
Use: Visually separate sections.
btag
Strong : Indicates importance.
b : Only makes text bold with no semantic importance.
emtag vs
itag
Emphasizes text (read with vocal stress).
i: Italicized for style (e.g., citations, foreign words).
Definition: Inline container for applying styles. Does not affect layout.
Definition: Block-level container for layout or styling.
Definition: Embeds an image. Attributes: src, alt, width, height
Alt text is crucial for accessibility.
Definition: Embeds audio or video.
Needs controls attribute to show play buttons
Attributes : controls, autoplay
Definition: Collects user input.
Attributes: action, method
Definition: Various types of user input (text, checkbox, radio, etc.)
Type attribute decides behavior.
Definition: Multi-line input box
Definition: Clickable button.
Types: submit, reset, button
Definition: Defines label for input. Use for attribute.
Improves accessibility.
These provide semantic meaning to different page sections.
Help screen readers and SEO engines.
font tag: we are Using CSS (font-family, color) in the place of Font tag in current Version
center tag: we are Using CSS text-align: center in the place of Center tag
big , small tag: (HTML4 style) : we are Using CSS font-size in the place of big and small Properties
strike, u, s tag: we are Using CSS text-decoration or semantic tags like del tag
MDN Web Docs: MDN Reference
W3Schools HTML Tags: W3 School Refrence
HTML Living Standard (WHATWG): whatwg Reference