What is semantic html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is semantic html?

Someone told me its about blod <b></b> , <strong></strong> , italic<i></i> , <em></em>. If these tags do same work then why we need two.

29th Jul 2017, 9:36 AM
Nikhila Tammu
Nikhila Tammu - avatar
2 Answers
+ 5
They have the same effect on normal web browser rendering engines, but there is a fundamental difference between them. for more info https://stackoverflow.com/questions/271743/whats-the-difference-between-b-and-strong-i-and-em
29th Jul 2017, 1:38 PM
Art456
Art456 - avatar
+ 5
A semantic element clearly describes its meaning to both the browser and the developer. Examples of non-semantic elements: <div> and <span> >>> Tells nothing about its content. Examples of semantic elements: <form>, <table>, and <article> >>> Clearly defines its content.
16th Jun 2019, 1:30 PM
1234554