Links in HTML

Valid values for id attribute

To create any links in HTML internal or external <a> element is used. Clicking on this link user goes to another page or another external url.

Normal links looks like:

<a href="">Click here</a>

You can parameters too:

<a href="">Click here</a>

Note to remember that parameters are separated by (&) after each parameter value.

To open a link in a new window _blank is used:

<a target="_blank" href="">Click here</a>

You can reference a link by its name or id also:

<a name="link1" id="linkID" href="">Click here</a>

Leave a Reply

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