Html 5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Html 5

1. Does (! DOCTYPE HTML) start a HTML 5 project? 2.When ever I write (! DOCTYPE HTML) in the part of my code. It comes out on the webpage of my design. Why? How do I write it properly?

12th Sep 2018, 10:50 AM
fps
fps - avatar
5 Answers
+ 1
See if u r writing it on internet explorer then case is entirely different
12th Sep 2018, 11:50 AM
Yash
Yash - avatar
0
<!DOCTYPE html> is the correct syntax
12th Sep 2018, 10:55 AM
Jan Štěch
Jan Štěch - avatar
0
1. Yes. It's the proper way of telling web browsers that it should expect HTML5 and to read the file/document accordingly. 2. Follow Jan's syntax to write it properly. For a long explanation: https://www.w3.org/TR/html5/syntax.html#the-doctype but basically it's just how the web browser parses the code (character by character).
12th Sep 2018, 11:38 AM
Janning⭐
Janning⭐ - avatar
0
When you write your <!DOCTYPE html> does it display on the web page
12th Sep 2018, 11:48 AM
fps
fps - avatar
0
Red.. How?
12th Sep 2018, 11:51 AM
fps
fps - avatar