CSS – Cascading Style Sheet
In this lecture you will learn styling web links
Links can be styled with any CSS property (e.g. color, font-family, background, etc.).
for instance Styling Links in css examples with source code here:
In addition, links can be styled differently
depending on what state they are in.
The four links states are:
a:link - a normal, unvisited link
a:visited - a link the user has visited
a:hover - a link when the user mouse over it
a:active - a link the moment it is clicked
exercise:
Note: a:hover MUST come after a:link and a:visited in the
CSS definition in order to be effective.
Note: a:active MUST come after a:hover in the CSS
definition in order to be effective.
in the above shown example applied aligning text in css to a html tag elements, in this example source code written in p tag is applied on style attribute with parameters are having with their values.
similarly one p tag of html element is also applied for aligning text