Leakbali
w3 Tutorial, Web Tutorial
Switch to English Bahasa Indonesia 
Register   Login

HTML - Attributes


  1. HTML elements can have attributes
  2. Attributes provide additional information about an element
  3. Attributes are always specified in the start tag
  4. Attributes come in name/value pairs like: name="value"
HTML links are defined with the <a> tag. The link address is specified in the href attribute:
<a href="http://www.w3schools.com">This is a link</a> 
Attribute values should always be enclosed in quotes.

Double style quotes are the most common, but single style quotes are also allowed.

Tip: In some rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes: name='Putu "Made" Nyoman'
Attribute names and attribute values are case-insensitive.

However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation.

Newer versions of (X)HTML will demand lowercase attributes.
A complete list of legal attributes for each HTML element is listed in our:

Complete HTML Reference

Below is a list of some attributes that are standard for most HTML elements:
AttributeValueDescription
classclassnameSpecifies a classname for an element
ididSpecifies a unique id for an element
stylestyle_definisionSpecifies an inline style for an element
titletooltip_textSpecifies extra information about an element (displayed as a tool tip)
For more information about standard attributes:

HTML Standard Attributes Reference

References

About Us

Home
About Us
Contact Us
Sitemap

Tools

Google PageRank
Alexa Rank
Keywords Density

Accounts

Register Account
Login
Valid XHTML 1.0 TransitionalValid CSS!
Web Directory


2006 - 2012 © Leakbali.com - Free Web Tutorial, Free Web Articles, Web Sharing, Source Codes, Web References