The final HTML code will should look as below: Now, in the body section, similar to the above example, we will make use of the element to demonstrate the usage of each state of the link that has been styled.In the header section, we will define the styling for each state of the link (as a pseudo class), within the element.Since this example uses internal CSS, we will directly code for the HTML page.In this example, we will demonstrate the styling for hyperlink, using internal CSS.And in the final screenshot, you can see that the link, once visited, turns into a dark red color.You can observe the color change to yellow, the exact moment the link is clicked.It will change color to Green and italic when we will hover upon it.The link will initially appear to be blue, as in the first screenshot.We can see the final outcome by saving this page and opening it through a browser.If the link is active, it will be Yellow and Italic If the link has been used, it will appear Red and normal If the link is hovered upon, it will appear Green and Italic If the link is not used, it will appear Blue and normal This page demonstrates the various states of hyperlink The final HTML code will look as follows:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |