Initial knowledge of HTML

Source: Internet
Author: User

First, what is HTML?

HTML (Hypertext Markup Language) is a Hypertext Markup language, which means that pages can contain images, links, and even non-textual elements such as music, programs, and so on.

It marks each part of the Web page you want to display with a marker symbol.

    • HTML is not a programming language, but a markup language
    • Markup language is a set of tag tags (markup tag)
    • HTML uses tag tags to describe Web pages
    • HTML document contains HTML tags and text content
    • HTML documents are also called Web pages

Second, HTML tags

    • HTML tags are keywords surrounded by angle brackets , such as cannot start with a number
    • HTML tags are usually paired up, such as <b> and </b>
    • The first label in the pair is the start tag <b>, and the second tag is the end tag </b>
    • Some label functions are simple, use a label, for example: <br/>

< tags > content </tags >

Third, HTML properties

Properties are additional information provided by HTML elements

    • HTML elements can set properties
    • property to add additional information to the element
    • Properties are generally described in the start tag
    • A property is always in the form of a name/value pair, such as: name= "value".

IV. overall structure of HTML documents

All HTML documents have three document-level elements:HTML, head, body. These three tags divide the HTML document by several partitions

<! DOCTYPE html>
<meta charset= "UTF-8" >
<title> Title Section </title>
<body>
... Document Body part ...
</body>

A minimal HTML document template is as above:
Each page requires only one document title, that is, only one title
The body part of the document can be tagged to complete the contents

Initial knowledge of HTML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.