Attributes
An attribute is used to define the characteristics of an element and is placed inside the element's opening tag. All attributes are made up of two parts: a name and a valve.
- Name is the property you want to set. For example, the element in the example carries an attribute whose name is face, which you can use to indicate which typeface you want the text to appear in.
- The value is what you want the value of the property to be. The first example was supposed to use the Arial typeface, so the value of the face attribute is Arial.
The value of the attribute should be put in double quotation marks, and is separated from the name by the equals sign.
Example: <font face = "arial" color = "#cc0000">
No comments:
Post a Comment