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 942135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:13:27+00:00 2026-05-15T22:13:27+00:00

Does definition list <dl> require that each <dd> will have <dt> tag? Example: option1

  • 0

Does definition list <dl> require that each <dd> will have <dt> tag?

Example:

option1 for each <dd> exist his <dt> also if <dt> empty:

<dl>
<dt></dt>
<dd>value1</dd>
<dt>name2</dt>
<dd>value2</dd>
</dl>

option2 for each <dd> not exist his <dt> if <dt> empty:

<dl>

<dd>value1</dd>
<dt>name2</dt>
<dd>value2</dd>
</dl>


Edit:

Example for when dt can be empty (its build by zend_form auto – can not be changed):

<dl> 

<dt><lable>Last Name:</label></dt> 
<dd><input type='text' size='30' /></dd>
<dt><lable></label></dt> 
<dd><input type='submit' size='30' value='submit'/></dd>
<dt><lable>Name:</label></dt> 
<dd><input type='text' size='30' /></dd>

</dl>

Thanks

  • 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-15T22:13:28+00:00Added an answer on May 15, 2026 at 10:13 pm

    HTML 4 doesn’t enforce this, neither is XHTML 1.1. They only require <dl> contains only one or more <dt> or <dd>s.

    However, HTML 5 has stricter requirement:

    zero or more of: (one or more <dt> elements, followed by one or more <dd> elements)

    Hence, your option2 will not validate in HTML 5.

    option1 is still fine, as <dt> can contain any “phrasing content”, including empty content.

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

Sidebar

Related Questions

I know that an interface does not have a body, just a method definition.
I have a custom list definition with an event receiver that overrides ItemUpdating. The
does anyone have a good definition for what a binary protocol is? and what
Which advantages have definition list ( <dd><dt> etc..) and when we should use it?
Let's say I have the following class definition : List<SomeClass>... public class SomeClass {
I have a webpart that renders random list items (from any list and list
Good tab completions means dynamically generated using reflection or whatever (that does not require
I have a list that holds objects of type dynamic. When I use the
Hey guys, does it make sense to have a submit button within the definition
I have a custom list definition created via visual studio 2010. I would like

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.