1.

Explain the difference between HTML4.01 and HTML5 syntax.

Answer»

HTML5 have sampled the syntax and STRUCTURE of the HTML document.
Earlier VERSION of HTML ie HTML4.01 had a very cumbersome DOCTYPE and also the charset declared in the head tag. These have been simplified a lot in HTML5.

HTML5 syntax

&LT;!DOCTYPE html&GT; <html> <head> ... <META charset="UTF-8"> ... </head> ... </html>

HTML4.01 syntax

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html>  <head>    ...    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    ...  </head>  ... </html>


Discussion

No Comment Found