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.
- Use to create hyperlink.
- href Attribute is Mandatory
- <a href="https://example.com"> Visit </a>
- can open links in new Tab
- Used for internal navigation
Syntax:
how to use anchor tag in html
Example
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
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
how to use anchor tag in html
Output
Related Post :-

Comments
Post a Comment