“tag href” Réponses codées

Buton html href

<!-- if you are on Window : --> 
<button onclick="window.location.href='page2.html'">
  Button
</button>

<!-- if you are on linux or macOS : -->
<button onclick="location.href='page2.html'">
  Button
</button>
Pr.Gaultier

lien html

<a href="https://www.google.com/">Link to google</a>
Hello There

Comment afficher un lien dans HTML

<a href="https://www.google.com/"> google </a>
SimTheGreat

L'attribut HREF dans HTML

<a href="https://www.google.com/">Google
naly moslih

tag href

The Attribute "href" is a HTML tag Used to Add indirect Links to a Webpage. i.e You can add links into a page by not actually displaying the link, but instead it "Embeds" the link into a piece of text.
We need to put the "href" under a Tag known as "<a>".
For Example: <a href="www.google.com">Google</a>
The text in between >Google</a> is what will be displayed in your Webpage :)
SeriousProgrammer

Réponses similaires à “tag href”

Questions similaires à “tag href”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code