ad

Monday, November 17, 2025

how to use anchor tag in html

 how to use anchor tag in html

web designing theory
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