Learn How to Create Hyperlinks in HTML Step-by-Step
how to Create hyperlink Text links in html
✷ Text link is called hyperlink is a piece of text use click go to another webpage file or section within same page
✷ Text links created using <a> tag (is called anchor tag)
✷ Creating hyperlink text links in HTML is one of the most essential skills for building websites.
✷ Hyperlinks allow users to click on text and navigate to another page, website, or resource.
✷ In HTML, hyperlinks are created using the <a> (anchor) tag.
Syntax :-
<a href = " " target="">
how to Create hyperlink Text links in html
Example
<!DOCTYPE html>
<html>
<body>
<h4>Click Following link</h4>
<a href="https://webdesigningtheory.blogspot.com" target="_blank">HTML Program </a>
</body>
</html>
how to Create hyperlink Text links in html
Explain Program
Step 1 ]
<!Doctype html>
<!doctype html> always be the first line of any HTML document.
<!Doctype html>
<!doctype html> always be the first line of any HTML document.
<!doctype html> always be the first line of any HTML document.
Step 2 ]
<html> and </html>
html is the root element.
<html> and </html>
html is the root element.
html is the root element.
Step 3 ]
<body> and </body>
body is main content area.
All visible content inside to the <body> tag
<body> and </body>
body is main content area.
All visible content inside to the <body> tagStep 4]
<h4>Click Following link</h4>
<h4> heading tag make text bold text
webpage a heading
<a href="https://webdesigningtheory.blogspot.com" target="_blank">HTML Program </a>
anchor tag (<a>) use to create a hyperlink
<a>
anchor tag use for links
href = (hypertext reference) attribute URL to link is clicked
target = "blank"
target attribute browser to open link a new tab (window), current page.
HTML program
This is text shown user clickable link.
</a> close the anchor tag
HTML program
This is text shown user clickable link.
</a> close the anchor tag
Step 5]
</body> and </html>
</body> close the body section
</html> close the HTML document


Post a Comment