Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the common properties of HTML

Shulou Source: shulou.com Published: 2022-06-01 10:28:41 09月22日 Update

This article mainly introduces what the commonly used attributes of HTML are, which can be used for reference by interested friends. I hope you can learn a lot after reading this article.

Attributes are additional information provided by the HTML element.

HTML attribute

HTML attribute

The HTML element can set attributes

Attribute can add additional information to the element

Attributes are generally described in the opening tag

Attributes always appear in the form of name / value pairs, such as: name= "value".

HTML attribute

Attribute instance

HTML links are defined by tags. The address of the link is specified in the href property:

Example

This is a link.

Common reference property values for HTML properties

Attribute values should always be enclosed in quotation marks.

Double quotes are the most commonly used, but there is no problem with using single quotes.

HTML attribute

Tip: in some individual cases, for example, the attribute value itself contains double quotes, then you must use single quotes, such as name='John "ShotGun" Nelson'

HTML hint: use lowercase attributes

Properties and property values are not case-sensitive.

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

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

HTML attribute reference manual

Check out the complete list of HTML attributes: the HTML tag reference manual.

The following lists the attributes that apply to most HTML elements:

Attribute description

Class defines one or more class names (classname) for html elements (class names are introduced from style files)

Id defines the unique id of the element

Style specifies the inline style of the element (inline style)

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

Thank you for reading this article carefully. I hope the article "what are the common attributes of HTML" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel, and more related knowledge is waiting for you to learn!

Tags: Attributes elements quotes commonly used lowercase articles information tags links references examples manuals styles class names recommendations tips attachments World wide Web middle finger value Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Xiaomi Shulou Technology Huawei