¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita+ 10
What is the use of DOCTYPE html tag
!DOCTYPE html
4 Respuestas
+ 8
It tells the browser that the DOCument TYPE is html, which is why some browser websites I get source code from say <DOCTYPE xhtml>.
+ 6
It tells the browser that you are using HTML5
+ 3
This will give you more information on that
https://www.w3schools.com/tags/tag_doctype.asp
Though simple said, lets say your making in HTML language / website.
it would start as
<!DOCTYPE html>
This tells the browser that your now visiting a HTML site and read and render it as it.
+ 3
sorry to answer a question with a question lol. When we use HTML for the doc type, will the tag stay the same even if there is more then one version of HTML? And if the same tag stands for all the HTML types, does the tag automatically reference the latest version or would we need to do some sort of update on our computer?
I'm completely new to every aspect of coding, hopefully my question makes sense