html tags 4.01

<a> tag is used for building links in web pages. It’s most important tag in HTML language, without this tag your website will never be completed.

The Pattern of this tag is describe below:

<a href=”web_page_name.html”> the text which will show in link </a>

a stands for anchor

href stands for Hyperlink Reference

Note: Anchor tag must be closed.

As we already discussed the closing pattern of any tag.  Just type / “backslash” before the name of tag.

Most of HTML tags have some attributes, similarly anchor too.

Attributes always come after tag name.

<a href=”index.html”> Home </a>

<a href=”about_us.html”> About Us </a>

<a href=”services.html”> Services </a>

<a href=”portfolio.html”> Portfolio </a>

<a href=”contact_us.html”> Contact Us</a>

For Tool Tip Text, we used title attribute in anchor tag

<a href=”page_name.extension” title=””> Electronics items </a>

target  is also mostly used attribute in anchor tag

<a href=”abc.html” target=”_blank”>abc page </a>

Target Attributes values

  • _blank
  • _parent
  • _self
  • _top

Rel is also an attribute  of anchor and it’s very important as far as on site optimization is concern.

  • alternate
  • author
  • bookmark
  • help
  • license
  • next
  • nofollow
  • noreferrer
  • prefetch
  • prev
  • search
  • tag