What is <a> tag and how is it used?

Experience Level: Junior
Tags: HTML

Answer

The <a> (anchor):

  • Use with <herf> tag.
  • Creating hiperling to another webpage.
  • Or somewhere within current document.
Example
<a href="https://www.bettercoder.io" target="_blank">Go to Better Coder</a>
Related HTML job interview questions
HTML for beginners
HTML for beginners

Are you learning HTML? Try our test we designed to help you progress faster.

Test yourself