HTML Elements and attributes

Source: Internet
Author: User
Tags closing tag

HTML elements
start Tag * element Content End tag *
<p> This is a paragraph </p>
<a href="default.htm"> This is a link </a>
<br/>

The start tag is often referred to as the start tag (opening tag), and the end tag is often called a closed tag (closing tag).

HTML element syntax
    • HTML element to start tag starting
    • HTML element terminated with end tag
    • The content of an element is the content between the start tag and the end tag
    • Some HTML elements have blank content (empty contents)
    • Empty elements are closed in the start tag (ending with the end of the start tag)
    • Most HTML elements can have properties
HTML Properties
    • 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".
HTML Properties Common Reference property values

Property values should always be included in quotation marks.

Double quotes are the most common, but there is no problem with single quotes.

tip: In some individual cases, such as the attribute value itself contains double quotes, then you must use single quotation marks,

For example: Name= ' John ' shotgun ' Nelson '

HTML hint: Use lowercase attributes

Property and property values are not case sensitive.

However, the World Wide Web Consortium recommends lowercase attribute/attribute values in its HTML 4 recommendation standard.

The new version of (X) HTML requires the use of lowercase attributes.

HTML Elements and attributes

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.