Project: Semantic Editorial Article
Structure an independent article
An editorial article needs a headline, byline, date, body and meaningful subsections. Use article for the independent composition and time for a machine-readable date. A document title belongs in head, not the byline.
<article> <header> <h1>Garden notes</h1> <p> By Mina · <time datetime="2026-04-12">12 April 2026</time> </p> </header> <h2>Preparation</h2> <p>Choose a pot.</p></article>The date remains human-readable and machine-readable.
Provide evidence and context
Use blockquote for a quotation from another source, cite for the title of a work, and figure with figcaption for a self-contained illustration. The following quotation is fictional, from a fictional notebook; it is not an external authority.
<blockquote> <p>Record the date before watering.</p></blockquote><p> From <cite>Our garden notebook</cite> .</p><figure> <img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22160%22%20viewBox%3D%220%200%20320%20160%22%3E%3Crect%20width%3D%22320%22%20height%3D%22160%22%20fill%3D%22%23dbeafe%22%2F%3E%3Crect%20x%3D%2290%22%20y%3D%2225%22%20width%3D%22140%22%20height%3D%22110%22%20rx%3D%228%22%20fill%3D%22%23166534%22%2F%3E%3Cpath%20d%3D%22M115%2050H205M115%2070H205%22%20stroke%3D%22white%22%20stroke-width%3D%225%22%2F%3E%3C%2Fsvg%3E" alt="Illustration of a green seed journal" width="320" height="160"> <figcaption>A journal helps track watering.</figcaption></figure>The image alternative and caption serve related but distinct purposes.
Assemble a publishable article draft
Build the full body with logical heading ranks. In the standalone file, add an accurate title, UTF-8 and description. A description may inform search snippets but does not guarantee them. Structured data is optional and must reflect visible content.
<main> <article> <header> <h1>Growing herbs indoors</h1> <p> By Mina · <time datetime="2026-04-12">12 April 2026</time> </p> </header> <p>Choose a pot with drainage and observe the soil.</p> <section> <h2>Light and water</h2> <p>Place herbs near suitable light.</p> <figure> <img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22160%22%20viewBox%3D%220%200%20320%20160%22%3E%3Crect%20width%3D%22320%22%20height%3D%22160%22%20fill%3D%22%23dbeafe%22%2F%3E%3Crect%20x%3D%2290%22%20y%3D%2225%22%20width%3D%22140%22%20height%3D%22110%22%20rx%3D%228%22%20fill%3D%22%23166534%22%2F%3E%3Cpath%20d%3D%22M115%2050H205M115%2070H205%22%20stroke%3D%22white%22%20stroke-width%3D%225%22%2F%3E%3C%2Fsvg%3E" alt="Illustration of a green seed journal" width="320" height="160"> <figcaption>A journal helps track watering.</figcaption> </figure> <blockquote> <p>Record the date before watering.</p> </blockquote> <p> From <cite>Our garden notebook</cite> . </p> </section> <section> <h2>Next steps</h2> <ol> <li>Check the soil.</li> <li>Record changes.</li> </ol> </section> </article></main>The editorial body has its own date, quotation, figure and ordered next steps.
Common mistakes and practice
Review the article without CSS. Its headings and byline should still communicate the structure. Keep quotations accurate and attributed; do not use cite for arbitrary author names. Test the full article in projects/article.html.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Project: Semantic Editorial Article — Knowledge Check
Apply the project design and review concepts taught in this lesson.
Which element represents a self-contained article?
What does datetime on time provide?
Which element names a cited work?
What does figcaption supply?
Does a meta description guarantee the search snippet?