Just adding text limits the the way of creating web pages.
Tags have attributes and they also accept style rules which modify their functions, this gives XHTML it utility.
The rules of XML and rules for general attributes should be kept in mind while using attributes.
A D V E R T I S E M E N T
The rules are as follows:
At the opening of the element tag only the attribute must be specified.
closing tag of an element merely contains a back slash and tag name.
All attribute names must be in lower case.
All attributes must have a value.
All attribute should hold a values and always be double quotes. Here double quote and two single quotes are not the same.
All attributes must be placed in a list seperated by blank space and no other characters must be included between them
Attributes are divided into categories, among thes some of them overlap. These can be grouped as follows:
Universal/Core Attributes
Including the <body> tags, almost all tags that come in the body are held under this category.
These are informational, or they associate the element with information which is elsewhere in the document.
Events
Based on the user actions or browser these are used to invoke scripts.
For example using onmouseover
attribute to create rollover effects in a document.
They are used in JavaScript extensively,
Presentational or Styling Attributes
Presentational or Styling attributes are the attributes that are used to change the way
in which an element is to be displayed on the screen. They are deprecated
into style sheets, To code for backward compatibility we should know them well.
Tag-Specific Attributes
Attributes which are concerned to a given tag or group of tags are called Tag-specific attributes.
Certain tags like <img>
tag, does not hold any meaning without attributes. Therefore we do discuss these
attributes in relation to the tags they apply to.