Answer the question
In order to leave comments, you need to log in
HTML: Is it legal to put a DIV in the A tag?
Assuming the A tag has display:block.
doctype -> !DOCTYPE HTML
Answer the question
In order to leave comments, you need to log in
The W3C Markup Validation Service
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<a href="#"><div></div></a>
</body>
</html>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question