+ 2
A newbie question about HTML
I see this at times in .html files: <!DOCTYPE html> But what does this mean? Or is it just a comment?
7 Respostas
+ 1
It is used to signify the type of document. In your example, that signifies HTML5. The browsers and IDEs utilize this so it knows what information to feed back to you, such as errors or things that are deprecated. As well, it lets many IDEs know what type of predictions to give to you, and what type of errors to present to you.
+ 17
Let me deal with the search bar ~_~
https://www.sololearn.com/discuss/459766/?ref=app
https://www.sololearn.com/discuss/470075/?ref=app
https://www.sololearn.com/discuss/428560/?ref=app
https://www.sololearn.com/discuss/254171/?ref=app
https://www.sololearn.com/discuss/406551/?ref=app
https://www.sololearn.com/discuss/258599/?ref=app
https://www.sololearn.com/discuss/49953/?ref=app
https://www.sololearn.com/discuss/172624/?ref=app
+ 7
It means Document type html
And do you know this tag is very long in html 4
+ 3
nice this question becomes the ref as it contains @dayve answers
+ 2
Does it matter if you remove this thing?
- 1
it explain that you are using standard HTML documentation.
- 2
it doesnt matter. just ignore it and you will not get errors.