<!DOCTYPE html>
Page 1 of 1
<!DOCTYPE html>
what is <!DOCTYPE html> it doesn't say in all of tutorials and i really want to know can someone please tell me,Re: <!DOCTYPE html>
<!DOCTYPE html>This is simply the Doctype for HTML5 which is the latest version of html.. But not all browsers are up to date with the latest HTML5 applications.
The Doctype does not validate your JavaScript.
Edward123
Re: <!DOCTYPE html>
Yupp. The doctype tells the browser what markup language the code is written in. It is needed for your website to be validated correctly. In previous versions of HTML, your doctype would look something like this:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
But now in HTML5 its just <!DOCTYPE html>!!!
--
~Chris
~Chris
Re: <!DOCTYPE html>
Hi pavz,As wikipedia says about doctype
A Document Type Declaration, or DOCTYPE, is an instruction that associates a particular SGML or XML document (for example, a webpage) with a Document Type Definition (DTD) (for example, the formal definition of a particular version of HTML). In the serialized form of the document, it manifests as a short string of markup that conforms to a particular syntax.
For more info on doctype you can visit w3school,
HTML <!DOCTYPE> Declaration
HTML5 <!DOCTYPE> Declaration
Re: <!DOCTYPE html>
thanks guys!Page 1 of 1