Lesson 12: simple links

SITE MAP | by HTMLisEasy.com

et's learn about links.

It's really very simple. We'll make a link to Yahoo. Start with this...

<body>
Go to Yahoo!
</body>

Then add a pair of anchor tags.

<body>
Go to <a>Yahoo!</a>
</body>

Add the URL and you're done! URL stands for Uniform Resource Locator. That's a big fancy phrase that the computer people came up with. They tend to do that a lot. A URL is just an address on the web. You specify it like so: href="url". And since Yahoo's URL is https://www.yahoo.com/ our link ends up like so...

<body>
Go to <a href="https://www.yahoo.com/">Yahoo!</a>
</body>

Let's do one more.

<body>
Go to CNN
</body>

<body>
Go to <a href="https://www.cnn.com/">CNN</a>
</body>

Bài viết liên quan