HTML tag refers to the markup tag of Hypertext Markup Language. HTML tag is the most basic unit in HTML language. HTML tag is the most important component of HTML. Characteristics of HTML tags: keywords surrounded by angle brackets, such as "<html>"; usually appear in pairs.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
Hypertext Markup Language (foreign language abbreviation: HTML) markup tags are often called HTML tags. HTML tags are the most basic unit in the HTML language. HTML tags are HTML (an application under the Standard Universal Markup Language) The most important component.
The case of HTML tags is irrelevant. For example, "body" <body> and
have the same meaning. It is recommended to use lowercase.[Recommended tutorial: "html video tutorial"]
Features:
Keywords surrounded by angle brackets, such as <html>
usually appear in pairs, such as <div>
and</div>
The first tag in the tag pair is the opening tag, and the second tag is the closing tag;
Opening and closing tags are also known as opening tags and closing tags.
There are also tags presented separately, such as: <img src="Baidu Encyclopedia.jpg" />
, etc.
Tags that generally appear in pairs have their content in the middle of the two tags. If the label is presented separately, the value is assigned in the label attribute. Such as <h1>title</h1>
and <input type="text" value="button" />
.
The content of the web page must be in the <html>
tag, and the title, character format, language, compatibility, keywords, description and other information are displayed in <head>
tag, and the content to be displayed on the web page needs to be nested in the <body>
tag. Sometimes code written in non-standard formats can be displayed normally, but as a professional quality, formal writing habits should be developed.
For more programming-related knowledge, please visit: Programming Video! !
The above is the detailed content of what is html tag. For more information, please follow other related articles on the PHP Chinese website!