What is the importance of Attributes?
In html attributes play a great role with tags. Some tags
are unnecessary without attributes. There are many tags and many attributes
here. You have to select them while making a web-page. Thinking makes you
successful.
Ø
Attributes are always specified in start tag
Ø Attributes always come in name and value. Like this- border="2" . Here border is an Attribute and 2 is a value.
Ø Attributes always come in name and value. Like this- border="2" . Here border is an Attribute and 2 is a value.
There are three types of Attributes in html. Such that – Core
Attributes, Language Attributes, keyboard Attributes.
I shall give you different types of Attributes while writing
post. But now I shall give you some of them. You can get the basic knowledge by
this post. Look under I have made some example for you.
border is an attribute , its usually use to show table
border. If you make a table in html your browser couldn’t show you any border.
But after using this attribute you can see border. You also have to use value
also. You can use 1 – infinite for make a value.
width , height , bgcolor, align, font-family, style are also
Attribute. After input this attribute you must have to input their value.
Some attributes and their value :
attributes
|
value
|
border
|
any number
|
width or height
|
any number
|
bgcolor
|
any color name of color code
|
align
|
center, left, right
|
style
|
style definition
|
id
|
any name as you wish
|
No comments:
Post a Comment