CSS Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
CSS Topics
css tutorials Introduction
Types Types
Background Properties Background Properties
Text Properties Text Properties
Font Properties Font Properties
Box Properties BOX Properties
Border Properties Border Properties
Margin Properties Margin Properties
Padding Properties Padding Properties
Special Topics Special Topics
Forums Ask Your Doubts
Scraps More about CSS
Feedback Feedback
 




Internal Styles - Universal


Tutorials Css

Topic

How to set internal style for html tags?
I want all similar html tag to have a common style.
i.e e.g: I want text inside every <font> tag to look bold?




Explanation

<head>
<style>
a
{
color: green;
}
</style>
</head>

If we use internal styles like this, the style will take effect for the tag through out the page. That's all the "a" tag used in the page will have the style.

Example:
This page defines the style as explained above. So we can see how a "a" tag looks like


Result:

INDEX




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.
Other Links

web hosting