HTML Learning Notes: 2. Basic syntax

Source: Internet
Author: User
Tags tag name

    • HTML BASIC structure
    • HTML tags
    • HTML elements
    • HTML properties
    • Comments
Basic Structure
    <HTML>HTML: Indicates that it is an HTML file<Head>                                   <title>Title</title>Head : Header information is not displayed in the Web page</Head>                           <Body>page body content body: Web content, the browser can see all the content is here</Body></HTML> 

②html LabelComposition: The general situation appears in pairs, consisting of a start tag and an end tag, the label name is the same, the end tag is /Tag name Some labels are made up of one, such as ③html Elements    Start tab-End all of the contents of the tag as an element
< Head >        < title > titles </title>        </head>

< title > caption </title> is an element

Both of these are an element ④ HTML Properties    < Tag Properties 1 = "Property Value" Property 2 = "Property value" ></label > attribute space separated by property Example <body bgcolor= "Red" > </body> ④ Notes    <!--comment Content--

HTML Learning Notes: 2. Basic syntax

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.