Content Elements
Beyond structural elements, HTML5 provides semantic elements for specific types of content like articles, figures, time, and more.
Article Element
Loading HTML Playground...
The <article> element:
- Self-contained, independent content
- Could be distributed separately
- Examples: blog post, news article, comment, widget
Multiple Articles
Loading HTML Playground...
Figure and Figcaption
Loading HTML Playground...
<figure> works for:
- Images with captions
- Code snippets
- Diagrams and charts
- Quotes
Time Element
Loading HTML Playground...
The datetime attribute:
- Machine-readable format
- ISO 8601 standard
- Helps search engines and calendars
Address Element
Loading HTML Playground...
The <address> element:
- Contact information
- For the nearest article or body
- Not for general addresses
Details and Summary
Loading HTML Playground...
Native expandable content:
<details>- Container<summary>- Visible headingopenattribute - Start expanded
Mark Element
Loading HTML Playground...
Progress and Meter
Loading HTML Playground...
Exercise: Create a Blog Post
Create a complete semantic blog post:
Loading HTML Exercise...
Content elements add meaning to specific types of information!

