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

Ray's coding forum for teaching, sharing, and learning.
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Share | 

 what is an Attribute?

Go down 
Ray's Cricket
Ray's Cricket

Posts : 9
Code Tokens : 20926
Join date : 2013-05-02
Age : 22

PostSubject: 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.
Back to top Go down
View user profile
God Ray
God Ray

Posts : 36
Code Tokens : 21003
Join date : 2013-05-02
Age : 20
Location : North America

PostSubject: WooHoo!   Thu May 30, 2013 1:41 am

Correct you are my young grasshopper! Other examples of attributes would be things such as:


<div style="color:green;background:black;">
<p> Hello World! </p>

Thank you for supporting the community and helping in the tutorials, it's much appreciated.
Back to top Go down
View user profile http://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: