HTML Series Tutorial--Elements

Source: Internet
Author: User

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

demo:p Label
<p>this is my first paragraph.</p>
<p> for start tag
</p> for end tag
<p> here is the Content section </p>
Note: <p>this is my first paragraph. Even if you forget to use the end tag, most browsers will also display HTML correctly (but it is recommended that you write a closed tag)

an empty HTML element
HTML elements that have no content are called empty elements. The empty element is closed in the Start tab.
Demo: Wrap Tab <br/>
<br> is the empty element without closing the label (the <br> tag defines a newline).
Note:<br> is valid in all browsers, but using <br/> is better

HTML Tag considerations: (Use lowercase tags)
Note: The HTML tag is not sensitive to case:<p> is equivalent to <p>. Many websites use uppercase HTML tags. However, we recommend using lowercase tags, the World Wide Web Consortium recommends lowercase in HTML 4, and lowercase in the future (X) HTML version

HTML Series Tutorial--Elements

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.