8 Controlling Links Attributes Through Style Sheets |
Warning: main(externalmenu.php) [function.main]: failed to open stream: No such file or directory in /home/developi/public_html/externalcss6.php on line 22 Warning: main(externalmenu.php) [function.main]: failed to open stream: No such file or directory in /home/developi/public_html/externalcss6.php on line 22 Warning: main(externalmenu.php) [function.main]: failed to open stream: No such file or directory in /home/developi/public_html/externalcss6.php on line 22 Warning: main() [function.include]: Failed opening 'externalmenu.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/developi/public_html/externalcss6.php on line 22 |
| The anchor tag is responsible for links. We can
set specific values for the anchor. These values will be for the link,
active and visited. We can also have a hover property in styles. 1. To set the color of hyperlink text type in the following element:
2. Between the brackets you can set the color. Here we set the color to fuschia.
3. Other attributes are those that are used for any text element. Try putting a background-color around it as if it was highlighted.
4. Set the text to look very different by setting it to small caps.
5. Often as we design we want out links to stand out but not be decorated with underline. add a text-decoration attribute to none.
Fill in your color and properties.
7. There is also a hover property that we can assign to the link for when the cursor is over the link without clicking. Set the hover text to blue.
Publish your CSS and link your html you are working on to it and see how the text changes! |
|