Let's write HTML like a pro 😎

Yaser Adel Mehraban on September 03, 2019

How often have you wrote a block of HTML without realising the code you've written might not be ideal? The why HTML has always been tha... [Read Full]
markdown guide
 

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

Additionally W3schools is not affiliated with W3C:

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.

 
 

Very Nice and informative content.
Thanks a lot.

 

I like how this is more of an overview and offers links to dive deeper into various points. It's a nice way to pack in a lot of information without being overwhelming. Nice work!

 
 

Honestly I often have the nagging feeling that my HTML markup could be better. Thanks for sharing your insights! Bookmarked.

 

Totally relatable, that's why I decided to write about it

 

Wonderful! It can help me to prepare a lot before interviewing. I hope you can write more posts like this.

 
 
 

It's really important to revise the things we've learned and this is quite enough HTML revision. Thanks, Yaser.

 
code of conduct - report abuse