+ 3
What is the meaning of "herf" in html?
8 ответов
+ 18
@Tonmoy
If you're asking it with reference to the <a> tag, the href attribute specifies the URL of the page the link goes to.
If the href attribute is not present, the <a> tag is not a hyperlink.
<a href="https://www.sololearn.com">Link to Sololearn</a>
+ 15
The href defines the document to which the link leads. This may be a web page in the same directory, a page somewhere else on the same server, a location within the current page, or a web page—or any another kind of document—stored on another server.
For examples :
https://www.w3schools.com/tags/att_href.asp
• Note - It's 'href' :D
+ 10
'href' stand for 'hyperlink reference'... it provide the path to an external ressource linked to the html document, as external css styles (in the <link> tag) or other web (usualy html) targets to open (as in <a> tag).
It's quite different from 'src' attribute (as in media tags, firstly <img>) which is used also with an URL value, but for embeded ressources (visible content part of the root html document)...
+ 4
thnx
+ 3
klodian can u give a example with coding
+ 2
can you make your speech more easy?
+ 1
Ton, it's the link my friend. Links, you make links with the <a> Tag, which means anchor like when a ship is anchoring in a beautiful beach (a new page or website). And href is where we define the destination. So we say for example: Anchor in Saranda :p although the weather was terrible yesteday :(
+ 1
1. This is without href, it does nothing when you click on the word link:
<a>link </a>
2. Now with href when you click the word link it goes to the page of google:
<a href="http://google.com">link </a>
3. And if you want that page to be opened in a new tab of the browser add the attribute target="_blank" like this:
<a href="http://google.com" target="_blank">link </a>