html link tag explain
html link tag explain. how to link css
Example
<!Doctype html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body alink ="blue" link ="red" Vlink= "pink">
<P>click following link </p>
<a href = "https://webdesigningtheory.blogspot.com" target ="_blank">HTML tutorial</a>
</body>
</html>
Explain Program
Step 1 ]
<!DOCTYPE html>
- document type declaration.
- browser help this is an HTML5 document.
<!DOCTYPE html>
- document type declaration.
- browser help this is an HTML5 document.
Step 2 ]
. <html> ... </html>
- root element of the HTML document.
- <html> tag is part of the web page.
. <html> ... </html>
- root element of the HTML document.
- <html> tag is part of the web page.
Step 3 ]
<body> ... </body>
- HTML document that holds visible content on the page.
- A heading (<h2>)
- An input button (<input type="button">)
- list tag
- ext...
<body> ... </body>
- HTML document that holds visible content on the page.
- A heading (<h2>)
- An input button (<input type="button">)
- list tag
- ext...
Step 4]
<body aline="blue" link="red" vlink="pink">
<body> page's content
attributes define colors for links
Attribute Description color code
link color unvisited links red
vlink color visited links pink
aline color link is active (clicked) blue
Step 4]
<p> click following link </p>
<p> paragraph tag Displays the text
click following link
. <P>click
following link </p>
- <P> is a paragraph tag (should be lowercase,
but works).
- Displays
the text:
·
click following link