DEV Community

Cover image for Why Do We Write <! DOCTYPE html> ?

Why Do We Write <! DOCTYPE html> ?

Islam Sayed on March 11, 2019

Yes, this is for the absolute beginner, and also for those non-beginners who forgot. I am going to look back behinds and re-discover things we tak...
Collapse
 
dbanisimov profile image
Denis Anisimov

I lived without a DOCTYPE on my site for a year and the only thing that broke was a LinkedIn page scrapper 😒 It's like wearing your pants backwards, you look weird, nobody tells you and you may occasionally be denied access to a fancy restaurant. (not based on a real story)(don't do that)

Collapse
 
islam profile image
Islam Sayed

Hi Denis! Great yet funny analogy 😀

Collapse
 
torpne profile image
Kevin McKenna

I have honestly never even considered what is happening under the covers if it was missed.. that's just known it should be there, so out it in. Thanks for the info!

Collapse
 
islam profile image
Islam Sayed

You are welcome! I will continue writing about such small -yet effective- things we often not considering. So stay tuned! And have a nice day 😉

Collapse
 
ahmedam55 profile image
Ahmed Mahmoud

Thanks for your time and effort!

Collapse
 
islam profile image
Islam Sayed

You're welcome!❤

Collapse
 
islam profile image
Islam Sayed

I agree. Here are some other DOCTYPE kinds other than that of HTML.

Collapse
 
tamermaarouf profile image
Tamer_maarouf

Nice

Collapse
 
islam profile image
Islam Sayed

Thank you!