0
0
HTMLmarkup~5 mins

Semantic vs non-semantic elements in HTML - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is a semantic HTML element?
A semantic HTML element clearly describes its meaning to both the browser and the developer. For example, <header> means the top section of a page, and <article> means a piece of content. It helps with accessibility and SEO.
Click to reveal answer
beginner
Give an example of a non-semantic HTML element.
Examples of non-semantic elements are <div> and <span>. They do not tell anything about their content or purpose. They are used mainly for styling or grouping content.
Click to reveal answer
beginner
Why should we prefer semantic elements over non-semantic ones?
Semantic elements improve accessibility for screen readers, help search engines understand the page, and make the code easier to read and maintain.
Click to reveal answer
beginner
Which element is semantic: <section> or <div>?
<section> is semantic because it defines a section of content with meaning. <div> is non-semantic and just groups content without meaning.
Click to reveal answer
intermediate
How do semantic elements help keyboard navigation?
Semantic elements provide structure that assistive technologies use to help users navigate with a keyboard, making websites easier to use for people with disabilities.
Click to reveal answer
Which HTML element is semantic?
A<span>
B<article>
C<div>
D<b>
What is the main benefit of using semantic elements?
AThey reduce file size
BThey make the page load faster
CThey allow custom fonts
DThey improve website accessibility and SEO
Which element is non-semantic?
A<div>
B<nav>
C<header>
D<footer>
Why is <section> considered semantic?
AIt groups related content with meaning
BIt styles text bold
CIt creates a clickable button
DIt adds images
Which is NOT a reason to use semantic elements?
ABetter code readability
BImproved SEO
CFaster internet speed
DEnhanced accessibility
Explain the difference between semantic and non-semantic HTML elements.
Think about how elements describe their content and why that matters.
You got /5 concepts.
    Describe how semantic elements improve website accessibility and SEO.
    Consider how meaning helps machines and people understand the page.
    You got /4 concepts.