Embedded Styles
Inline styles are similar to the <font> tag. Populating a page with these is considered bad programming practice. It’s better to include all the style information inside the document HEAD section. The Styles placed in the head are enclosed in the <style>-</style>tags.
<style type="text/css">
a.mystyle {color:#FF5500;
font-size:10pt;
text-decoration:underline;
font-family:Verdana, Arial, Sans-serif}
</style>
- The style has four property:value pairs separated by semicolons.
- All the property:value pairs are placed inside curly braces.
- The style information applies to A, which is known as the selector. Furthermore, the selector is given a name, mystyle, through which it will be called from the classattribute.
<a href="mylink.html" class="mystyle">Link</a>
Incoming search terms:
- Change CSS style on hyperlink click using javascrpt (2)
- change link style using javascript (1)
- changing color of link table using xml css (1)
- changing link property no javascript (1)
- display properties download free (1)
- how to apply the css styles in pdf using php (1)
- use script to change css attribute in c (1)
You will also be interested in ,
- CSS or Table?
- Context Right Click Menu Using Javascript
- Image preloader using CSS
- Text Size Switching Using PHP
- Transparent Box using CSS
- Another cool horizontal menu script using css
- Standard horizontal menu using css
- Drop down menu going behind flash element
- Simple page flip effect using Jquery, css and simple html
