|
|
|
Topic |
User defined style/css for html tags
|
|
Explanation |
Here user defines his own style and uses it anywhere he wants.
Example:
<head>
<style>
.mystyle1
{
color: green;
background-color: orange;
}
</style>
</head>
The names used for user defined styles should not belong to any html tag.
We set the style for the tag using the attribute "class".
EX1:
<font class=mystyle1> MY STYLE </font>
Result1: MY STYLE
EX1:
<a href="index.php" class=mystyle1> MY STYLE </a>
Result1: MY STYLE
|
|
A Note |
CSS - Cascading Style Sheets can be used along with html tags as explained in this site.
This simple CSS will help you to create much elegant and neat html web pages.
This does not need any additional softwares or codings.
All web browser are capable of handing CSS codes.
Note 2: If required you can using <span> instead of <div> tags.
div tag will start and end on new lines. span will not exceed the tag area.
|
|
|
|
|
|