How to Create Text Links in HTML (With Examples)
how to Create 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)
how to Create 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 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.
Step 2 ]
<html> and </html>
html is the root element.
<html> and </html>
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
Step 5]
</body> and </html>
</body> close the body section
</html> close the HTML document



No comments:
Post a Comment