Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Unit 3 HTML Attributes.P
SIT Institute
3. HTML Attributes Attributes provides/define additional information about HTML elements. Certain parameters are frequently included within the opening tag, to provide additional element properties (such as colorization, measurement, location, alignment, or other appearances) to the data between the markup tags. These parameters are called Attributes. Attributes are always specified in the start tag (or opening tag), and they can only contain the value of the attributes. Attributes Values Most attributes require a value. In HTML, the value can be left unquoted if it doesn’t include (name=value), or it can be quoted with single or double quotes (name=’value’ or name=”value”). By this way, it is recommended to enclose Attributes values in quotes. In some rare situations, when the attribute value itself contains quotes, it is necessary to wrap attribute value inside single quotes: name= ’John “Williams” Jr’. List of Attributes 1. tag which has attribute title. This tag represents an abbreviation form of a long word or phrase. HTML 2. tag which has attributes href. This tag represents a hyperlink. Visit Text Link. 3.
tag which has attributes class. Class attributes represents a style for a group of elements with. Class attributes work with CSS.
Class Attributes
. 4.
tag which has attributes Id. Id attributes represents a style for single, unique elements. Id attributes work with CSS.
Id Attributes
. 5. tag which has attributes bgcolor and text. Bgcolor for background color and text for text color. Use CSS instead of bgcolor and text color for better result. . 6. tag which has attributes dir. Dir attributes represents to change the text direction. some paragraph.