html font settings:How to use basic HTML tags-Font Tutorial免费ppt模版下载-道格办公

How to use basic HTML tags

1. Comment mark (<!--...-->)

Syntax: <!--Comment content-->

2. Document markup (<html>...</html>)

Syntax: <html>…</html>

Description: <html> This pair of tags is the tag of the HTML file. <html> is at the top of the file, indicating the beginning of the HTML file. That is, the browser starts to interpret from the <html> tag until it encounters the </html> tag.

3. File header tag (<head>...</head>)

Syntax: <head>…</head>

illustrate:

①In the elements defined by the head group of tags, no content of the web page is placed, but information about this HTML file is placed. That is to say, it does not belong to the main body of the HTML file, it contains the title, encoding method and URL of the file, etc. Much of this information is used for indexing, identification or other applications.

② This pair of tags is not required in the HTML file. If an HTML file does not need to provide relevant information, the <head> tag can be omitted.

4. Document title tags (<title>...</title>)

Syntax: <title>File Title Text</title>

Description: This tag is used to set the title name of the HTML file, which will be displayed in the title bar of the browser.

Note: The <title> tag is used within the <head> tag. But if the <head> tag is not used in the HTML file, the <title> tag still works.

5. File body tag (<body>...</body>)

Syntax: <body>…</body>

illustrate:

①The element created by the <body> tag is the content body of the HTML file and also the key point of the HTML file. All content in the HTML file to be displayed on the web page is also placed in this element.

②<body> has some special attributes, you can set the background and character color, etc.

Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/How%20to%20use%20basic%20HTML%20tags.html

Like (810)
Reward 支付宝扫一扫 支付宝扫一扫
single-end

Related Suggestion