What are HTML syntax specifications? In fact, it is very easy to understand. It is a computer term, which means that the grammatical form of HTML language must comply with the standard . HTML is called Hypertext Markup Language and is a markup language. It includes a series of tags. Through these tags, the document format on the network can be unified and scattered Internet resources can be connected into a logical whole.
(1) Overview of basic grammar
1. HTML tags are keywords surrounded by angle brackets , such as <HTML>
2. HTML tags usually appear in pairs , such as <HTML> and </HTML> , which are called double tags . The first tag in the tag pair is the start tag, and the second is the end tag.
3. Some special tags must be single tags (in rare cases), such as <br />, which we call single tags.
(2) Label relationship
Double-label relationships can be divided into two categories: inclusion relationships and parallel relationships .
(3) HTML basic structure tags
Every web page will have a basic structure tag (also called a skeleton tag), and the page content is also written on these basic tags.
<html><head><title>Article title</title></head><body>The content of the article is written between the bodies</body></html>
The suffix name of HTML documents must be .html or .htm. The role of the browser is to read HTML documents and display them in the form of web pages. At this point, by opening this webpage with a browser, we can preview the first HTML file we wrote.
● Summary of basic structure tags
html: maximum tag, root tag
<html>
<head>=Document head
<title> Page title</title> = Web page title
</head>=Document head
<body>
The content of the article is written between the body
</body>
<html>
(4) Common HTML tags
1. In order to make web pages more semantic, we often use title tags in pages. HTML provides 6 levels of web page tags, namely <h1> - <h6>. For example: <h1>Level 1 tag </h1>
2. The abbreviation of the word head, meaning head and title.
3. Tag semantics: Used as a title, and in descending order of importance.
●Features:
1. The text with the title tag will become bold and the font size will also increase at once.
2. One label occupies its own line.
There are six levels of title tags in total. The text will be bolded and only displayed in one line. The levels will decrease from large to small: Level 1 <h1></h1>, Level 2 <h2> </h2>, 3 Level <h3></h3>, Level 4 <h4></h4>, Level 5 <h5></h5>, Level 6 <h6></h6>