HTML attributes - HTML syntax - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

3.4. HTML attribute

HTML attribute usually appear in HTML tags, HTML attribute is a part of HTML tags.

  1. Tags can have attributes, which contain additional information. Attribute value must be in double quotes.
  2. Tags can have multiple attributes.
  3. By attributes and attribute values of pairs

Trackback Address: http://www.nt22.com/xhtml-html/attribute/

Grammar

HTML attributes:

  <Attribute of a name tag = "attribute value" attribute of 2 = "property" ... attributes of N = "attribute value" /> </ labels were> 

Example

<a> Labels are hyperlinks labels. Use href attribute can be defined links position (URI) Code:

  <a Href = "http://www.nt22.com/" /> Be learning </ a> 

Tags <table> form is labelled. Use border attribute can be defined form of a frame. Code is: <table border="0" />

Extended reading