Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4267010
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:50:21+00:00 2026-05-21T06:50:21+00:00

After running w3Validator on HTML 5 (Experimental) windows-1252 encoding, I got the following error

  • 0

After running w3Validator on HTML 5 (Experimental) windows-1252 encoding,
I got the following error –

Line 11, column 20: Element a not
allowed as child of element dl in this
context. (Suppressing further errors
from this subtree.)

<a href="#link"><dt>Link</dt><dd>Sub heading of the link</dd></a>

If <a> can not contain child element <dl> then how should the code be used?

NOTE: the above code is used by js, so there sould not be major change in code.

UPDATE: the whole code is as below –

<div id="something">
    <dl>
        <a href="#link1"><dt>title1</dt><dd>Sub heading1</dd></a>
        <a href="#link2"><dt>title2</dt><dd>Sub heading2</dd></a>
        <a href="#link3"><dt>title3</dt><dd>Sub heading3</dd></a>
        <a href="#link4"><dt>title4</dt><dd>Sub heading4</dd></a>
        <a href="#link5"><dt>title5</dt><dd>Sub heading5</dd></a>
        <a href="#link6"><dt>title6</dt><dd>Sub heading6</dd></a>
    </dl>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:50:22+00:00Added an answer on May 21, 2026 at 6:50 am

    All the answers posted so far are wrong.

    Anchors (or <a> elements) are inline by default, yes — but you can change that by using some basic CSS:

    a {
      display: block;
    }
    

    In addition to that, as of HTML5, block level anchors are allowed. This means you can do cool things like:

    <a href="#">
     <h1>Foo</h1>
     <p>Bar</p>
    </a>
    

    And have your code validate as HTML5. (This code has always worked in browsers, it was just not valid before HTML5.)

    The real reason it doesn’t validate (and thus, the answer to your question) is very simple: <dt> and <dd> elements may only appear as direct children of a <dl> element.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After running the following lines : double d=Float.parseFloat(9.99); System.out.println(+d); I got this : 9.989999771118164
The following process does not continue after running kill -SIGCONT pid from another terminal.
After running the following SQL statements, you will see that, MySQL has automatically created
The following output appears after running some rake tasks: Loaded suite /usr/bin/rake Started Finished
Similar to this question , after running the following code the browser dialog does
Excel macros do not seem to allow the use of undo after running them.
after running python manage.py syncdb i gett an error saying unable to open database
ORIGINAL MESSAGE (now outdated): After running python setup.py install I get the following: Warning:
I have a small command line tool and after running it, I'd like to
I currently have the following ValuesQuerySet object after running the following code: sites =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.