DONT ADD ANYTHING HERE!

  1. The id attribute may be used to create an anchor at the start tag of any element (including the a element)
  2. The anchor is linked to the destination tag via the a element by prepending the # symbol to the id of the anchor (#myid)

Example

HTML

    <h2 id="section1">Section One</h2>

    You may read more about this in 
        <a href="#section2">Section Two</a>.
    ...later in the document

    // (lorem)

    <h2 id="section2">Section Two</h2>

    Please refer to 
        <a href="#section1">Section One</a> 
    above for more details.

Browser

Section One

You may read more about this in Section Two. ...later in the document

Lorem

ipsum

dolor

sit

amet

consectetur

adipisicing

elit

Aperiam

autem

repellendus

quia

consectetur

aliquid

earum

quisquam

eaque

deserunt

accusamus

est

Itaque

velit

eos

illum

error

placeat

mollitia

id

deleniti

Dolorem

ex

sapiente

voluptatum

accusantium

corrupti

incidunt

laudantium

ratione

porro

maxime

dolore

mollitia

Section Two

Please refer to Section One above for more details.

Note

Not href="./#section1"

References