need to define two things
play

Need to define two things: The destination Something to click on - PowerPoint PPT Presentation

Need to define two things: The destination Something to click on to get there Tag is <a href =>click here</a> Can be text or image Can change the text format How to know to click on an image? Always


  1.  Need to define two things: › The destination › Something to click on to get there  Tag is <a href =…>click here</a>  Can be text or image  Can change the text format  How to know to click on an image?

  2.  Always link to an anchor point  Implicit anchor point at top of page › Anchor referenced as null  Adding other anchor points › Insert named anchor point › id=“ anchor ” on any tag

  3.  To point to an anchor point on SAME page <a href =“ #anchor ”>link text</a > <a href =“ # ”>top of page</a >

  4.  To point to an anchor point on SAME page <a href =“ #anchor ”>link text</a > <a href =“ # ”>top of page</a >  In order to access anchor point on another page <a href =“ Page#AnchorPoint ”> Link text </a>

  5.  Long pages › Avoid too much scrolling › Links to subsections › Link to top  Lots of topics › Use a “table of contents” of links

  6.  Use full url <a href =“ http://www.unc.edu "> Link text </a>  To force open in a new tab (window) <a href =“ http://www.unc.edu” target="_blank"> Link text </a> GOOD PRACTICE REQUIRED IN THIS CLASS

Recommend


More recommend