Typesetting tags of HTML common tags

Word abbreviation: head. title Document title

In order to make the webpage more semantic, we often use title tags in the page. HTML provides six levels of titles, namely,

Title tag semantics: used as a title, and its basic grammatical format is as follows:

Summary:

Word abbreviation:. p? r? gr? F] You don't need to remember this word

Function semantics:

You can divide an HTML document into several paragraphs

If you want to display the text in a web page in an orderly way, you can't do without paragraph tags. Just like we usually write articles, the whole web page can also be divided into several paragraphs, and paragraph tags are the most common tags in HTML documents. By default, the text in a paragraph will be automatically displayed according to the size of the browser window.

abbreviation: horizontal line [? h? r? Zɑntl] ditto

In web pages, you often see some horizontal lines separating paragraphs, which makes the document structure clear and hierarchical. These horizontal lines can be realized by inserting pictures or simply by labels. <: hr /> Is to create a label that spans the horizontal line of a web page. Its basic syntax format is as follows:

Display the default style horizontal line in the web page.

word abbreviation: break, line break

in HTML, the text in a paragraph will be arranged from left to right until the right end of the browser window, and then automatically line break. If you want a paragraph of text to be displayed in a forced line break, you need to use a line break label

At this time, if you press Enter directly in word, it won't work.

div span is semantically meaningless. It is the two main boxes of our web page layout. I'm sure you've heard of css+div

div, which is the abbreviation of division. Partition actually means that there are many divs to combine web pages.

span, span; Scope

Grammar format:

Both of them are boxes, which are used to hold our web page elements, but they are different. Now we should mainly remember the usage and characteristics.