1 Minute HTML CSS Part 8 – ID & Bookmarks

BOOKMARKS

  • Bookmarks are pretty much “links within the same page”.
  • Give the element an id. For example – <h1 id="intro">Introduction</h1>.
  • Create an anchor tag as usual, and link to the element with #ID. For example – <a href="#intro">To introduction</a>.

 

ID NAME RULES

  • Alphanumeric characters (A-Z a-z 0-9) accepted.
  • Cannot start with a number, can only insert numbers from 2nd character onward.
  • Underscore and dash accepted.
  • Avoid symbols – Most are not accepted.
  • ID is unique, no duplicates are allowed.
  • Duplicated ID – Only the first will register.
  • ID is case-sensitive.

Leave a Comment

Your email address will not be published. Required fields are marked *