+ 2

[DUPLICATE] What are semantic elements in HTML?

8th Mar 2018, 5:44 PM
Ahmed Alsoufy
Ahmed Alsoufy - avatar
2 Answers
+ 1
Those are elements like <strong> and <em>. They put semantic into their content, versus tags like <b> and <i> which describe how the content should be drawn. Semantic allows different apps to interpret the content how they prefer to. For instance, a <strong>text</strong> would appear bold (just as with <b>text</b> in most browsers, but a browser for sight impaired users would treat them differently, like by reading "text" aloud. If that doesn't make enough sense to you, please let me know and I'll elaborate further.
8th Mar 2018, 5:52 PM
Fabio Spelta
Fabio Spelta - avatar