Home » Web programming/HTML

HTML 'a' Tag with Examples

HTML | <a> Tag: In this tutorial, we are going to learn about the Anchor (<a>) tag in HTML with its description, syntax, and examples.
Submitted by Shivang Yadav, on February 21, 2020

<a> Tag

<a> tag in HTML is used to add a hyperlink to another webpage in HTML. It uses the href attribute to link to destination files in HTML.

There are basically three types of links in a webpage,

  1. unvisited link: indicated by the blue underlined link.
  2. visited link: indicated by the purple underlined link
  3. active link: indicated by a red-underlined link


<a href="linkToOtherWebpage">ContentOfTheTag</a>

Technical insights of <a> tag

  • It supports global attributes and attributes that handle events of HTML5.
  • Supported by all browsers.


<!DOCTYPE html>


    <title>HTML Tutorial at IncludeHelp</title>

    <h1>HTML tutorial</h1>
    <p>You can find tutorial on HTML: <a href="https://www.includehelp.com/html/">HTML Tutorial</a></p>



HTML | a Tag

Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.