What is HREF | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is HREF

5th Oct 2018, 7:16 PM
Irham Rizqan Zakiy
Irham Rizqan Zakiy - avatar
5 Answers
+ 2
The HREF is an attribute of the anchor tag, which is also used to identify sections within a document. The HREF contains two components: the URL, which is the actual link, and the clickable text that appears on the page, called the "anchor text Definition and Usage. The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination. By default, links will appear as follows in all browsers: An unvisited link is underlined and blue
8th Oct 2018, 4:38 AM
deepak sharma
deepak sharma - avatar
0
it's the place in a link that refers to the website or id you want it to refer to syntax : href="#myId" or href="https://www.example.com" important is that the link has to start with http or https
5th Oct 2018, 7:59 PM
Roel
Roel - avatar
0
thank you
5th Oct 2018, 8:00 PM
Irham Rizqan Zakiy
Irham Rizqan Zakiy - avatar
0
you're welcome
5th Oct 2018, 8:00 PM
Roel
Roel - avatar
0
What does the href attribute contain? the URL of the page to be transferred whether the new page should be opened in the same or a new window the name of the web page to be transferred
17th Dec 2021, 11:20 AM
Rustam Fayzullayev
Rustam Fayzullayev - avatar