0
Why we use <!DOCTYPE html> ?
Why we use <!DOCTYPE html> ?
6 Antworten
+ 7
<!DOCTYPE html> tells the web browser that you are going to use HTML5 and it's features.
There are other DOCTYPEs like:
HTML 4.01 Strict
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 Transitional
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01 Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
XHTML 1.1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
...and many others!
Hope I helped! :)
+ 1
instruction to the web browser about what version
+ 1
thanks
+ 1
how many versions are there?
+ 1
It means that you specify the document as an html document. Simpliest thing to say.
0
hey, is bad, you use <!doctype html> when you want to use html5