+ 3

What is the meaning of "herf" in html?

16th Jul 2017, 1:39 PM
TONMOY SANTRA
TONMOY SANTRA - avatar
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>
16th Jul 2017, 1:53 PM
Dev
Dev - avatar
+ 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
16th Jul 2017, 1:42 PM
Dev
Dev - avatar
+ 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)...
16th Jul 2017, 2:02 PM
visph
visph - avatar
+ 4
thnx
16th Jul 2017, 1:58 PM
TONMOY SANTRA
TONMOY SANTRA - avatar
+ 3
klodian can u give a example with coding
18th Jul 2017, 5:49 AM
TONMOY SANTRA
TONMOY SANTRA - avatar
+ 2
can you make your speech more easy?
16th Jul 2017, 1:46 PM
TONMOY SANTRA
TONMOY SANTRA - avatar
+ 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 :(
17th Jul 2017, 6:28 AM
Klodian Lula
Klodian Lula - avatar
+ 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>
18th Jul 2017, 7:23 AM
Klodian Lula
Klodian Lula - avatar