On the other hand, tags like i and b do not represent semantics.
It's no longer true. De facto all elements in HTML are semantic, including also b, i and u, e.g b represents
a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood
The site derives its name from the World Wide Web (W3), but is not affiliated with the W3C.
And TBH their content is much worse than MDN's, e.g. they claim that DOCTYPE tells the browser which version of HTML was used to create the page and that DTD is needed to parse HTML4 correctly. Both of these statements are false: DOCTYPEs are needed only to activate rendering in standards-compliant mode and DTDs aren't used at all, as all rules of parsing HTML are described in details in specification. There are many more errors like this one on W3Schools, so basically it's better to link to MDN instead.
It's no longer true. De facto all elements in HTML are semantic, including also
b
,i
andu
, e.g b representsAdditionally W3schools is not affiliated with W3C:
And TBH their content is much worse than MDN's, e.g. they claim that
DOCTYPE
tells the browser which version of HTML was used to create the page and that DTD is needed to parse HTML4 correctly. Both of these statements are false: DOCTYPEs are needed only to activate rendering in standards-compliant mode and DTDs aren't used at all, as all rules of parsing HTML are described in details in specification. There are many more errors like this one on W3Schools, so basically it's better to link to MDN instead.Thanks