What are the main structures of html file production?

藏色散人
Release: 2018-08-09 17:28:51
Original
3070 people have browsed it

HTML should be familiar to novices. HTML is HyperText Markup Language (English: HyperText Markup Language, referred to as: HTML) is a standard markup language used to create web pages. "Hypertext" means that the page can contain pictures, links, and even non-text elements such as music and programs. The structure of hypertext markup language includes a "head" part (English: Head) and a "body" part (English: Body). The "head" part provides information about the web page, and the "body" part provides the specific content of the web page.

So this article mainly introduces you to the basic structure of html documents.

1. HTML document mark, also called html start mark

2.

html file header mark, also called html header information start mark Tag

Function: used to contain basic information of the file, such as the title of the web page.

Note: The content within the

tag will not be displayed in the browser. Tags such as , , can be placed in this tag.

3.

HTML file title tag

Function: The "theme" of the page is displayed in the upper left corner of the browser window.

Note: The title of the web page should not be too long, but should be short and concise, and can reflect the content of the page. The

tag cannot contain other tags.

What are the main structures of html file production?

#4. HTML body tag

Function: This tag is the main part of the web page, between the tags It can contain tags such as:

,,
, etc. It is these contents that make up the web page we see.

Common attributes: bgcolor (background color), text (set text color), link (set link color), vlink (color of visited link), alink (color of link being clicked)

<body alink="red"></body>
Copy after login

5. Meta-information of the page (meta-information)

Function: Provide meta-information about the page, such as descriptions and keywords for search engines and update frequency.

Necessary attributes: content value some text defines meta-information related to the name attribute.

Common name attributes: author (webpage author) keyword (webpage keyword) description (webpage description) others (other language information)

Note: must be placed in the head element .

I hope this summary of the HTML document structure in this article will be helpful to friends in need!

The above is the detailed content of What are the main structures of html file production?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!