1. What is HTML?
HTML is a language used to describe a Web page.
-
- HTML refers to Hypertext Markup Language (Hyper Text Markup Language)
- HTML is not a programming language, but a markup language (markup language)
- Markup language is a set of tag tags (markup tag)
- HTML uses tag tags to describe web pages
2. HTML tags
HTML tags are often used as HTML SD (HTML tag)
-
- HTML tags are keywords surrounded by angle brackets, such as
- HTML tags are usually paired up, such as <b> and </b>
- The first label in the pair is the start tag, the second is the end tag
- Start and end tags also become open labels and closed labels
3. HTML Document = Web page
-
- HTML Document Description Web page
- HTML documents contain HTML tags and plain text
- HTML documents are also called Web pages
Example:
<body>
<p>this is a paragraph.</p>
<a href= "http://www.w3school.com.cn" >this is a link</a>
</body>
Explain:
-
- Text description page between
- The text between <body> and </body> is visible in the page content
- The text between
- Text between <p> and </p> is displayed as a paragraph
- <a> define the HTML connection in the HREF attribute specify the address of the connection,<a> the text between the </a> and the page connection content is visible
- Define HTML image, specify image connection address in src attribute, width and height are picture size properties
HTML self-study road-Basics