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="http://www.example.com">Click here</a>

You can parameters too:

<a href="http://www.example.com?param1=100&param2=200">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="http://www.example.com">Click here</a>

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

<a name="link1" id="linkID" href="http://www.example.com">Click here</a>

Leave a Reply

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