+ 3

Whats is href

4th Jul 2018, 12:30 PM
brian
5 odpowiedzi
+ 12
4th Jul 2018, 12:32 PM
Mohammad Amir Aqeel
Mohammad Amir Aqeel - avatar
+ 5
Hello, brian ! "href" is the main and necessary attribute of the A tag, indicating to the browser what action to perform when clicking on the link. For example, such a record <a href="http://google.com"> google </a> describes a link to a known search engine. In the above entry, the href attribute is inside the A tag and contains the google URL enclosed in quotation marks. Using the href attribute. Can I specify the value of href without quotes? It is recommended to use double or single quotes. However, it is allowed to set the href value without quotes. What types of values ​​can contain href? The href attribute can contain: Absolute URL - the address of a page, document or script Also you can learn more on SoloLearn lessons https://www.sololearn.com/learn/HTML/1031/
4th Jul 2018, 12:56 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 5
href is an attribute that takes URI as a value to link to certain page or section of body. link to website: <a href="www.sololearn.com" >Hello</a> Here "a" tag is used to make a link, "href" attribute is used to get link address and "Hello" is the word that will be displayed on the browser screen and it will be clickable. When you click on "Hello" word it will redirect you to the website www.sololearn.com. link to section of document: <div id="Hi" ></div> <a href="#Hi" >Hello</a> It is same as above only difference is we gave "href" value of "#Hi" where Hi is the value of id attribute of div element. Now if you click on "hello" you will be redirected to the div element. This is used if your page is very long and to avoid scrolling all the way to that div element you just have to click on hello.
4th Jul 2018, 1:35 PM
Prathamesh Sawant
Prathamesh Sawant - avatar
+ 4
brian , href stands for ' Hypertext REFerence '. link - https://stackoverflow.com/questions/20172280/what-does-href-stand-for Already Mohammad Amir Aqeel gave a GoodANSweR for your question .This is only a reference...!
4th Jul 2018, 12:52 PM
Joshua Raison
Joshua Raison - avatar
0
href = link/link src (I think)
5th Jul 2018, 9:08 PM
n3m0
n3m0 - avatar