Haru Ray's Cricket
Posts : 9 Code Tokens : 39846 Join date : 2013-05-02 Age : 27
| Subject: what is an Attribute? Thu May 30, 2013 1:26 am | |
| So simply what an attribute is that it adds additional information to an element. Here is an example below
<html lang="en">
lang in this case is the attribute's name meaning language. Then followed by an equal sign. After that is the value close in quotation marks. en is a tag known as English. | |
|
Ray God Ray
Posts : 36 Code Tokens : 39923 Join date : 2013-05-02 Age : 25 Location : North America
| Subject: WooHoo! Thu May 30, 2013 1:41 am | |
| Correct you are my young grasshopper! Other examples of attributes would be things such as: - Code:
-
<div style="color:green;background:black;"> <p> Hello World! </p> </div>
Thank you for supporting the community and helping in the tutorials, it's much appreciated. | |
|