Ray's Coding
Welcome to Ray's free coding forum! Here we help people learn to code, and share knowledge of coding.

Please feel free to sign up and begin your learning,teaching or sharing adventure!
Ray's Coding
Welcome to Ray's free coding forum! Here we help people learn to code, and share knowledge of coding.

Please feel free to sign up and begin your learning,teaching or sharing adventure!
Ray's Coding
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Ray's Coding

Ray's coding forum for teaching, sharing, and learning.
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  

 

 what is an Attribute?

Go down 
2 posters
AuthorMessage
Haru
Ray's Cricket
Ray's Cricket



Posts : 9
Code Tokens : 39846
Join date : 2013-05-02
Age : 27

what is an Attribute? Empty
PostSubject: what is an Attribute?   what is an Attribute? EmptyThu 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.
Back to top Go down
Ray
God Ray
God Ray
Ray


Posts : 36
Code Tokens : 39923
Join date : 2013-05-02
Age : 25
Location : North America

what is an Attribute? Empty
PostSubject: WooHoo!   what is an Attribute? EmptyThu 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.
Back to top Go down
https://rayscoding.forumotion.com
 
what is an Attribute?
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Ray's Coding :: Coding :: HTML-
Jump to: