HTML Attributes
iDeskBD Forum :: E-EDUCATION :: HTML
Page 1 of 1
HTML Attributes
HTML tags can contain one or more attributes. Attributes
are added to a tag to provide the browser with more information about
how the tag should appear or behave. Attributes consist of a name and a value separated by an equals (=) sign.
Example
Consider this example:
we can see that something extra has been added to the tag - an
attribute. This particular attribute statement, style="background-color:orange", tells the browser to style the body element with a background color of orange.
The browser knows to make the background color orange because we are
using standard HTML tags and attributes (along with standard Cascading
Style Sheets code) for setting the color.
Another Example
Here's another example of adding an attribute to an HTML tag. In this example, we use the <a> tag to create a hyperlink to the Quackit website.
Captcha.Live
are added to a tag to provide the browser with more information about
how the tag should appear or behave. Attributes consist of a name and a value separated by an equals (=) sign.
Example
Consider this example:
- Code:
<body [b]style="background-color:orange"[/b]>
we can see that something extra has been added to the tag - an
attribute. This particular attribute statement, style="background-color:orange", tells the browser to style the body element with a background color of orange.
The browser knows to make the background color orange because we are
using standard HTML tags and attributes (along with standard Cascading
Style Sheets code) for setting the color.
Another Example
Here's another example of adding an attribute to an HTML tag. In this example, we use the <a> tag to create a hyperlink to the Quackit website.
- Code:
<a [b]href="http://www.captcha.live.com.bd"[/b]>Captcha.Live</a>
Captcha.Live
iDeskBD Forum :: E-EDUCATION :: HTML
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|