"; this code is the "" statement, which is the document declaration header. It is used to indicate what version of HTML is used and will be placed in the document code The frontmost position, before the "" tag."/> "; this code is the "" statement, which is the document declaration header. It is used to indicate what version of HTML is used and will be placed in the document code The frontmost position, before the "" tag.">

Home  >  Article  >  Web Front-end  >  What does the html web page code begin with?

What does the html web page code begin with?

WBOY
WBOYOriginal
2022-06-17 15:56:217879browse

In HTML, the beginning of the web page code is "8b05045a5be5764f313ed5b9168a17e6"; this code is the "1a309583e26acea4f04ca31122d8c535" statement, which is the document declaration header and is used to describe the HTML used. Which version will be placed at the front of the document code, before the "100db36a723c770d327fc0aef2ce13b1" tag.

What does the html web page code begin with?

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

What does the html web page code begin with?

Document declaration header

For a standard HTML page, the first line is a statement starting with, this is The document declaration header is DocType Declaration, or DTD for short. DTD can tell the browser which HTML or XHTML specification to use.

doctype is the abbreviation of Document Type, which is used to indicate what version of HTML is used. Placed at the top of the documentaba7b36f87decd50b18c7e3e3c150106

1a309583e26acea4f04ca31122d8c535 declares the frontmost position in the document, before the 100db36a723c770d327fc0aef2ce13b1 tag. The

1a309583e26acea4f04ca31122d8c535 declaration is not an HTML tag; it is used to tell the web browser which version of HTML is used for the page.

In HTML 4.01, the 1a309583e26acea4f04ca31122d8c535 declaration needs to reference the DTD (Document Type Declaration) because HTML 4.01 is based on SGML (Standard Generalized Markup Language). DTD specifies the rules of the markup language to ensure that the browser can render the content correctly.

HTML5 is not based on SGML and therefore does not require DTD reference.

Tip: Always add the 1a309583e26acea4f04ca31122d8c535 declaration to your HTML document to ensure the browser knows the document type in advance.

HTML 4.01 specifies three different 1a309583e26acea4f04ca31122d8c535 declarations: Strict, Transitional, and Frameset. Only one type is specified in HTML5:

<!DOCTYPE html>

Examples are as follows:

Common DOCTYPE declaration

HTML 5

<!DOCTYPE html>

HTML 4.01 Strict

This DTD contains all HTML elements and attributes, but does not include presentational or obsolete elements (such as font). Framesets are not allowed.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

HTML 4.01 Transitional

This DTD contains all HTML elements and attributes, including presentational or obsolete elements (such as font ). Framesets are not allowed.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

(Learning video sharing: css video tutorial, html video tutorial)

The above is the detailed content of What does the html web page code begin with?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn