how to use anchor tag in html

 How to use anchor tag in html

how to use anchor tag in html


What is Anchor Tag in HTML

Anchor  tag <a> HTML is use to create hyperlink(link).
allows user to navigate to another webpage.file,email,or specific section of page.
<a> tag Define a clickable link that connects location.

 Important  of HTML Anchor <a> Tag
 
  1. Use to create hyperlink.
  2. href Attribute  is Mandatory
  3.  <a href="https://example.com"> Visit </a>
  4. can open links  in new Tab 
  5. Used for internal navigation

Syntax:

   <a href="URL">link Text </a>
how to use anchor tag in html


how to use anchor tag in html

Example 

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the  webdesigningtheory.blogspot.com </title>
    </head>
    <body>

       <h1> how to use anchor tag in html  </h1>
       <a href="https://webdesigningtheory.blogspot.com/">
        Visit web designing theory blogspot.com</a>
    </body>
    </html>

how to use anchor tag in html

Explain Program

Step  1] 

<!DOCTYPE html>

This declare the document type.

browser that the document is written in html

Step 2 ]

<html>.... . </html>

html is the root element of the html page.

 Every thing inside it is part of the webpage.

Step 3]

<head>.....</head>

head section contain metadata  about the webpage information 

for the browser not display on the webpage.

Step 4]

<title>Title of the  webdesigningtheory.blogspot.com </title>

<title> tag set the title of the webpage.

 title appears the browser tag and search engine result 

 Step 5]

 <h1> how to use anchor tag in html  </h1>

<h1> heading tag (largest heading ).

display the text  "how to use anchor tag in html "  the page in large bold letters.

 Step 6]

Anchor <a> tag 

 
<a href="https://webdesigningtheory.blogspot.com/">
        Visit web designing theory blogspot.com</a>

 href =  stand for hypertext reference.

  it defines the URL link will go to clicked. open  browser link 

  Visit web designing theory blogspot.com

  Clickable text user will see on page.

 Step  7] 

closing the Tag


</body>

 </html>

how to use anchor tag in html

Output

how to use anchor tag in html


Related Post :-

learn html link tag

html italic tag

learn the html underline tag

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

html script tag attributes

CSS text-emphasis-color Property

HTML Input Type Submit Syntax and Example

CSS Padding Property Explained

How to Display T Pattern in C with Star (*) – Step-by-Step