• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

Make an H1 tag a Hyperlink

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
naifyboy123
Asked:
naifyboy123
1 Solution
 
RoonaanCommented:
Try:

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

-r-
0
 
naifyboy123Author Commented:
thanks roonaan - obvious really!

cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now