learn HTML link tag
HTML link tag
The LINK element indicates a relationship between the current document and an external LINK The LINK element indicates a relationship between the current document and an external resource. The <link> tag is the most used to the link a external style sheets:
LINK element empty (does not have closing tag), takes to the same attributes as the anchor element.
HTML link tag program
<html>
<head>
<title> Linking stylesheet</title>
<link rel="stylesheet" href="style.css">
</head>
</html>
The syntax is <link rel=" " href=" ">. rel attribute specifies to the relationship between document containing the hyperlink and the destination resources. href attributes specifies to address of the hyperlink.
HTML link tag program
Explain Program
Step 1 ]
<!DOCTYPE html>
- Declares that the document is an HTML5 document.
Step 2]
<html> & <body>
- Root and body of the HTML page. The content of the page goes inside <body>.
<html> & <body>
- Root and body of the HTML page. The content of the page goes inside <body>.
Step 3]
<head>
tag section contains metadata , resources for page.It does not display web page.
contains:
<title>
page in browser tabLinks to stylesheets or scripts and Meta tags charset, viewport, SEO data.
Step 4]
<title> link stylesheet </title>
title of the web page.
text use linking stylesheet on web browser tap
No comments:
Post a Comment