The coding interview: !DOCTYPE

Hi, once again!

Two years ago, I took my first job as frontend developer. Before that, I did workshops about STEAM for kids. And before at that I was studied Social Anthopology. So, a few months ago I applied to one of the big unicorns in LATAM, but …


This content originally appeared on DEV Community and was authored by Karen Molina

Hi, once again!

Two years ago, I took my first job as frontend developer. Before that, I did workshops about STEAM for kids. And before at that I was studied Social Anthopology. So, a few months ago I applied to one of the big unicorns in LATAM, but I can't passed the proccess. My weakness: the theory.

For that reason, I have been studying and reviewing about programming fundamentals. And thats why I have been decided create a serie of posts about technical interviews. To help other new and future programmers to get their dream jobs. Or to help them to give their best in a future interview.

First we started with some of HTML. Why?, because, as a web developers the HTML is one of our three most important tools to create our projects.

What is the !DOCTYPE?

In every html file we must put !DOCTYPE in the first line, but, why?. First the !Doctype is not a html tag, but it's a keyword. This keyword works as a declaration to the browser. I mean, with that we says to the browser what document type must to expect. In that case, an HTML 5 file.

The complete declaration must be like:

<!DOCTYPE html>.

Before HTML5, the declaration was more confused, because we had used some thing called Document Type Definition. But, don't worry, now, we dont have to use that. But other thing we have to know and help us in the future is about the case sensitive. The !DOCTYPE is not case sensitive. So, we can write with capitalize, uppercase, lowercase, camelcase ways. Not matters!.


This content originally appeared on DEV Community and was authored by Karen Molina


Print Share Comment Cite Upload Translate Updates
APA

Karen Molina | Sciencx (2021-09-12T03:37:32+00:00) The coding interview: !DOCTYPE. Retrieved from https://www.scien.cx/2021/09/12/the-coding-interview-doctype/

MLA
" » The coding interview: !DOCTYPE." Karen Molina | Sciencx - Sunday September 12, 2021, https://www.scien.cx/2021/09/12/the-coding-interview-doctype/
HARVARD
Karen Molina | Sciencx Sunday September 12, 2021 » The coding interview: !DOCTYPE., viewed ,<https://www.scien.cx/2021/09/12/the-coding-interview-doctype/>
VANCOUVER
Karen Molina | Sciencx - » The coding interview: !DOCTYPE. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/09/12/the-coding-interview-doctype/
CHICAGO
" » The coding interview: !DOCTYPE." Karen Molina | Sciencx - Accessed . https://www.scien.cx/2021/09/12/the-coding-interview-doctype/
IEEE
" » The coding interview: !DOCTYPE." Karen Molina | Sciencx [Online]. Available: https://www.scien.cx/2021/09/12/the-coding-interview-doctype/. [Accessed: ]
rf:citation
» The coding interview: !DOCTYPE | Karen Molina | Sciencx | https://www.scien.cx/2021/09/12/the-coding-interview-doctype/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.