2. HTML Elements & Attributes

Source: Internet
Author: User
Tags unique id


HTML element Description:

1. HTML element to start tag starting

2. HTML element terminated with end tag (few elements have no end tag)

3. The content of the element is the content between the start tag and the end tag

4. Some HTML elements have empty content

5. Empty elements are closed in the start tag (ending with the end of the start tag)

6. Most HTML elements can have attributes

HTML Properties:

1. HTML elements can set properties

2. Attributes can add additional information to the element

3, attributes are generally described in the start tag

4. Attributes are always in the form of name/value pairs, for example: Name= "value".

The following properties apply to most tags:

class defines one or more classes for the HTML element (classname) (the class name is introduced from the style file)

ID defines the unique ID of the element

style specifies inline styles for elements (inline style)

Title describes additional information about the element (used as a toolbar)

Tip: Apply lowercase when using attributes

HTML Properties Common Reference property values

Property values should always be included in quotation marks.

In some individual cases, such as the attribute value itself contains double quotes, you must use single quotes, for example: Name= ' John ' Shotgun "Nelson"

2. HTML Elements & 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.