HTML Attributes
Defining Attribute values
Attribute values are always be enclosed within quotation marks
Ex: name='john "shotgun" Nelson'
Ex: <a href="http://www.w3schools.com">This is a link</a> to the w3schools web site.
Attributes names and values are not case sensitive.
HTML Attributes reference
Attribute : class id style title
Value : class_rule or style_rule id_name style_definition tooltip_text
A specific id may only appear once in a web page, while class refers to a class elements that may appear many times in the same page
- Attributes provide additional information about the element.
- Attributes are always specified in the start tag.
- Attributes come in name/value pairs like: name="value".
Defining Attribute values
Attribute values are always be enclosed within quotation marks
Ex: name='john "shotgun" Nelson'
Ex: <a href="http://www.w3schools.com">This is a link</a> to the w3schools web site.
Attributes names and values are not case sensitive.
HTML Attributes reference
Attribute : class id style title
Value : class_rule or style_rule id_name style_definition tooltip_text
A specific id may only appear once in a web page, while class refers to a class elements that may appear many times in the same page
No comments:
Post a Comment