![]() |
Definition and UsageFor For For Applies toThe
Browser SupportThe |
Example:
HTML
<p>An absolute URL: <a href="https://horje.com">Horje</a></p>
<p>A relative URL: <a href="tag_a.asp">The a tag</a></p>
Click on the computer, the phone, or the cup of coffee to go to a new page and read more about the topic:
Example:
HTML
<img src="https://horje.com/avatar.png" alt="Workplace" usemap="#workmap" width="400" height="379">
<map name="workmap">
<area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
<area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
<area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>
Base Example.
Example:
HTML
<head>
<base href="https://horje.com">
</head>
Link Example.
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://www.w3schools.com/tags/styles.css">
</head>
<body>
<h1>Hello World!</h1>
<h2>I am formatted with a linked style sheet.</h2>
<p>Me too!</p>
</body>
</html>
html href attribute |
How to add The href attribute specifies the link's destination | HTML Attribute |
How to add An image map, with clickable areas | HTML Attribute |
How to add Specify a base URL for all relative URLs on a page | HTML Attribute |
How to add Link to an external stylesheet | HTML Attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded: | 1 week ago |
Uploaded by: | Admin |
Views: | 30 |
Reffered: https://www.w3schools.com/tags/att_href.asp