HTML Attributes
- HTML elements can have attributes
- Attributes provide additional information about an element
- Attributes are always specified in the start tag
- Attributes come in name/value pairs like: name="value"
Description
Attribute
values should always be enclosed in quotes.
Double
style quotes are the most common, but single style quotes are also allowed.
HTML attributes
give elements meaning and context.
The global
attributes below can be used on any HTML element.
Use of HTML Attributes
The title attribute titles an HTML element and adds a
tiny text pop-up to any HTML element, offering your web viewers a tool-tip mechanism
where information can be found or where a better description of an HTML element
can be seen.
Web page customization begins with HTML attributes.
Attributes are like blue print schematics informing the browser how to render
an HTML element.
Example
! DOCTYPE html>
<html>
<body>
<a href="http://www.w3schools.com">
This is a link</a>
</body>
</html>
Display
This is a link
Video link
http://www.youtube.com/results?search_query=html+attributes&oq=html+att&gs_l=youtube.3.0.0.4036.9338.0.11578.8.6.0.2.2.0.145.838.0j6.6.0...0.0...1ac.1.f4QGDmkxelQ



0 comments:
Post a Comment