HTML is not a programming language, it is a markup language used to describe web documents (page structures);
HTML refers to Hyper Text Markup Language (Hyper Text Markup Language), so it is called Hypertext Markup Language is because the text contains so-called "hyperlink" points. ;
HTML stipulates its own grammatical rules to express richer meanings than "text", such as pictures, tables, links, etc. Browser (IE, FireFox, etc.) software knows the syntax of the HTML language and can be used to view HTML documents. Currently, most web pages on the Internet are written using HTML.
To put it simply, the syntax of HTML is to add tags (Tag) to the text to indicate the meaning of the text, so that users (people or programs) can better understand the text.
The following is the simplest HTML document:
<html>
<head>
<title>第一个Html文档</title>
</head>
<body>
欢迎访问<a href="http://hanzhaoxin.cnblogs.com/">我的博客</a>!
</body>
</html>
All HTML documents should have a <html> element. The <html> element can contain two parts:
and .The
element is used to contain general information about the entire document, such as the title of the document (theThe specific content of the document must be placed in the
Through different tags, HTML documents can contain different content, such as text, links, pictures, lists, tables, forms, frames, etc.
Pictures: Pictures are used to make the page more beautiful or provide more information.
List: A list is used to illustrate that a series of items are related to each other.
Table: A table is a form of organizing data together by rows and columns. Many people also use tables for page layout.
Form: Forms are usually composed of text input boxes, buttons, multi-select boxes, radio buttons, drop-down lists, etc., making HTML pages more interactive.
Frame: Frame allows a page to contain other pages.
Document: HTML document is commonly known as a web page.
Tags: Keywords surrounded by angle brackets we become tags. Usually HTML tags appear in pairs, such as: , .
Element: We call matching tag pairs and the content they surround as elements. That is (element = start tag content end tag). For example: My blog.
Attributes: Those contents in the start tag that appear in the form of name/value pairs are called attributes. As in the above example: href="http://hanzhaoxin.cnblogs.com/". (href is the attribute name, "http://hanzhaoxin.cnblogs.com/" is the attribute value).