seymourbuttss

COMP SCI FEBRUARY 28,2018

Feb 27th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Internal and External links
  2.  
  3. Links(HYPEERLINKS)
  4. -an element that forwards the viewer to another location
  5. -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.
  6.  
  7.  
  8. <a></a> tags to create a link
  9. href attribute to have location
  10.  
  11. syntax:
  12. <a href="lcation">this a link </a>
  13.  
  14.  
  15. href (online)
  16. href attribute is the web address of the site
  17. ex.
  18. <a href="https://pastebin.com/">
  19. Click here for memes
  20. </a>
  21.  
  22. href(local files)
  23. href attribute is the html file you want to go.
  24. ex.
  25. <a href="practice 4.html">
  26. Click here for info
  27. </a>
  28.  
  29.  
  30. ID attribute
  31. <p id="name"> Lenovo number 1 </p>
  32. can be used for styling but preferably, this attribute shuld be used "uniquely"
  33. The value for href is the id of the element you want to go to
  34. <a href="idname"> </a>
  35. a tag could have a class and an id attribute at the same time
  36.  
  37. text-decoration:
  38. underline
  39. overline
  40. line-through
  41.  
  42.  
  43. selectors:
  44. a:visited
  45. a : hover
  46. a: link
  47.  
  48.  
  49.  
  50. Changing those default styles
  51. a:link UNVISITED link
  52. a:visited VISITED
  53. a:active ACTIVE LINK
  54.  
  55. class muna then selector
  56. a.ratbu:visited{
  57.  
  58.  
  59. }
  60.  
  61. -hover can be used in any thing
Add Comment
Please, Sign In to add comment