?
Solved

Make an H1 tag a Hyperlink

Posted on 2006-06-03
2
Medium Priority
?
346 Views
Last Modified: 2012-05-05
is it possible to make an H1 tag a link in a valid manner?

I tried <a href="#"><h1>My Header</h1></a>

but this failed HTML validation.

thanks
0
Comment
Question by:naifyboy123
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 2000 total points
ID: 16822680
Try:

<h1><a href="#">My Header</a></h1>

-r-
0
 

Author Comment

by:naifyboy123
ID: 16822843
thanks roonaan - obvious really!

cheers
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question