Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Internal and External links
- Links(HYPEERLINKS)
- -an element that forwards the viewer to another location
- -The location can be somewhere inside the html where the link is located or it can be somewhere inside your computer(another html file) or it can be another website from the internet.
- <a></a> tags to create a link
- href attribute to have location
- syntax:
- <a href="lcation">this a link </a>
- href (online)
- href attribute is the web address of the site
- ex.
- <a href="https://pastebin.com/">
- Click here for memes
- </a>
- href(local files)
- href attribute is the html file you want to go.
- ex.
- <a href="practice 4.html">
- Click here for info
- </a>
- ID attribute
- <p id="name"> Lenovo number 1 </p>
- can be used for styling but preferably, this attribute shuld be used "uniquely"
- The value for href is the id of the element you want to go to
- <a href="idname"> </a>
- a tag could have a class and an id attribute at the same time
- text-decoration:
- underline
- overline
- line-through
- selectors:
- a:visited
- a : hover
- a: link
- Changing those default styles
- a:link UNVISITED link
- a:visited VISITED
- a:active ACTIVE LINK
- class muna then selector
- a.ratbu:visited{
- }
- -hover can be used in any thing
Add Comment
Please, Sign In to add comment