The property is
HTML
element to provide additional information.
11.6.1. HTML attribute ¶
-
HTMLelement can set properties -
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”.
11.6.2. Attribute instance ¶
HTML
Links are made up of
<a>
label definition. The address of the link is
href
property to specify:
Example ¶
<ahref="http://www.runoob.com">This is a link</a>
11.6.3. 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 usingsingle quotes.
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’
11.6.4. 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.
11.6.5. 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 |
Define one or more class names for the html element (class namesare introduced from the style file) |
|
Id |
Define 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) |