In link insertion href meaning?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

In link insertion href meaning??

<a href""=></a> here

26th Jun 2017, 8:07 AM
Divya jivan
Divya jivan - avatar
3 Answers
+ 6
("A" is for "anchor", "HREF" is for "hypertext reference") The href attribute specifies the URL of the page the link goes to.
26th Jun 2017, 8:15 AM
Ekansh
+ 4
you could also use the value in the href attribute to navigate to an element on the current page (ex: at the bottom of the page you could have a "scroll to top" link) <a href="#myDiv">scroll to top</a> or if u don't want it to navigate to anything <a href="javascript:null();">my link</a> or you could even do inline JavaScript <a href="javascrpt:alert('hello world');">click me</a>
27th Jun 2017, 5:26 AM
MCJEH
MCJEH - avatar
+ 1
simple, you use tag 'a' with attribute href when you need to put a link in your web page, or an anchor... so, the 'a' is name of teg and href is attribute that specify a URL, address of another site or another HTML file in your directory... success
20th Oct 2017, 6:01 AM
Николай Андреевич
Николай Андреевич - avatar