HTML and CSS Reference
In-Depth Information
We need some help constructing and deconstructing <a> elements. Given your new
knowledge of the <a> element, we're hoping you can help. In each row below, you'll find some
combination of the label, destination, and the complete <a> element. Fill in any information
that is missing. The first row is done for you.
Label
Destination
What you write in HTML
Hot or Not?
hot.html
<a href="hot.html">Hot or Not?</a>
Resume
cv.html
<a href=" ">Eye Candy</a>
candy.html
mini-cooper.html
See my mini
<a href="millionaire.html"> </a>
let's play
Q: I've seen many pages where I can click on an image rather
than text. Can I use the <a> element for that?
A: Yes, if you put an <img> element between the <a> tags, then
your image will be clickable just like text. We're not going to talk
about images in depth for a few chapters, but they work just fine as
links.
Q: So I can put anything between the <a> tags and it will be
clickable? Like, say, a paragraph?
A: You can indeed put a <p> element inside an <a> element to
link an entire paragraph. You'll mostly be using text and images (or
both) within the <a> element, but if you need to link a <p> or a <h1>
element, you can. What tags will go inside other tags is a whole other
topic, but don't worry; we'll get there soon enough.
 
Search WWH ::




Custom Search