Home >Web Front-end >HTML Tutorial >Web page production basics Declaration document type description (DTD_HTML/Xhtml_Web page production
CSS layout to create pages that comply with WEB standards has always been a topic discussed by jb51.net. Today we will talk about Declaration Document Type Description (DTD).
All files need to start with a document type definition (DTD) to tell the browser what rules it should follow when opening the page.
When we use the web design tool Dreamweaver to create a new web document, you will see the DOCTYPE statement on the first line of the new document.
DOCTYPE is the abbreviation of document type, which defines the basic type of the current document. That is, all files need to use a document type definition (DTD).
In fact, DOCTYPE is just a set of machine-readable specifications. Although it contains the URL of the file, the browser will not read these files. It is only used for identification, and then decides what specifications to use to execute the page. code.
"The DOCTYPE goes before the opening html tag at the top of the page and tells the browser whether the page contains HTML, XHTML, or a mix of both, so that it can correctly interpret the markup."
4 commonly used document types to create our website