Link is a one of the most valuable part of the html. Links basically is a address of any web page or websites. In HTML links are user for
1) Connects two web pages,
2) Connects to HTML and CSS file
3) Connects to HTML and Java Scripts File
4) Connects to all the media files like as Images, Audio file, Flameworks etc.
In HTML link all types of files in the different type of tags. For CSS file link is one way and the also the Java Script file is the Other way. the List of the link tags are....
1) Connects two web pages,
2) Connects to HTML and CSS file
3) Connects to HTML and Java Scripts File
4) Connects to all the media files like as Images, Audio file, Flameworks etc.
In HTML link all types of files in the different type of tags. For CSS file link is one way and the also the Java Script file is the Other way. the List of the link tags are....
CSS file Link
For the external CSS file Link with the HTML page is so simple.Its link with the external HTML page with the CSS page. the example of the CSS link with the HTML is..
<link rel="stylesheet" type="text/css" href="example.css">
Here the rel defines the Relationship that the linked resource of the documents type.The "Type" defines that the which type documents are attached with the HTML file here the only text type and that is CSS . And the "href" defines that the Hypertext Reference it creates the link in HTML page.
the full example is...
<!DOCTYPE html>
<html>
<head>
<title>Log In</title>
<link rel="stylesheet" type="text/css" href="example.css">
</head>
<h1>Log In</h1>
</html>
Java Script File Link
Java Script can write within the html tag like as <script> Here Java Script Code </script>
If You write the java Script code with the separate page the you have to Link the java Script file to the HTML file. The basic link of the java Script is ..
<script src="example.js"></script>
Here the "src" means the Source of the page or where the page is belongs or situated. Here have to put the correct location of the Java Script Page ,If the location will wrong the java Script file will not work.The Full example of the Java Script Link is ..
<!DOCTYPE html>
<html>
<head>
<title>OOOOO</title>
<script src="example.js"></script>
</head>
<body></body>
</html>
Link your web Page with this process and make a awesome Website. Link your html page with the external css ,Java Script page with this following process and create your awesome website.
Comments
Post a Comment
Comment Here