HTMLHTML · Lesson 6 of 8
Semantic HTML
Semantic HTML means using the right element for the right job. Not just div and span everywhere. Browsers, search engines, and assistive technologies all understand semantic HTML.
◆ Note
Use <main> once per page for primary content. Use <article> for self-contained content that could be republished. Use <section> for thematic groupings within a page or article. Use <aside> for tangentially related content. Avoid <div> when a semantic element fits.
Use <main> once per page for primary content. Use <article> for self-contained content that could be republished. Use <section> for thematic groupings within a page or article. Use <aside> for tangentially related content. Avoid <div> when a semantic element fits.