0

Help to solve a mistake problem please.

Line 1255, Column 7: Element dl is missing a required child element.

    <dd>

I will be very strongly grateful.

Thanks and Best Regards.

UPD:

@Rolice, the open error code looks so...↓

<dl class="ctrlUnit submitUnit">
    <dd>
        <input type="submit" class="button primary" value="{xen:phrase log_in}" tabindex="104" data-loginPhrase="{xen:phrase log_in}" data-signupPhrase="{xen:phrase sign_up}" />
        <label for="ctrl_remember" class="rememberPassword" style="margin-left:5px"><input type="checkbox" name="remember" value="1" checked="checked" id="ctrl_remember" tabindex="104" /> {xen:phrase stay_logged_in}</label>
    </dd>
</dl>

...but correctly how to make and to solve a problem I don't know :(

P.S: Sorry my English.

UPD:

The problem is solved. I inserted the "dt" code before the "dd" tag and the mistake was gone in the validator. All thanks for attention. Best Regards.

Yudjin Bo
  • 29
  • 1
  • 3
  • https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl - you have to have dt, dd or both inside the DL. – Rolice Aug 16 '14 at 21:26
  • Rolice, you can help me not to break the external interface? I can't understand as correctly to make :( Code line: 1254-1259 – Yudjin Bo Aug 16 '14 at 21:45
  • I would suggest change the dl and dd to divs, I dont know if the dl allows such elements inside. `
    `
    ` => `
    ` - same for `dd`.
    – Rolice Aug 16 '14 at 22:28
  • Unfortunately writes other mistake. "Element dd not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
    Contexts in which element dd may be used: After dt or dd elements inside dl elements. Content model for element div: Flow content."
    – Yudjin Bo Aug 16 '14 at 22:38
  • You have to change them both `dl` and `dd`. Not only dl. As I said the `dd` should also become `div`. `
    ` => `
    `, `` => `
    `.
    – Rolice Aug 17 '14 at 08:17
  • @Rolice, replacing with
    and
    on
    I break the interface (imposition) :(
    – Yudjin Bo Aug 17 '14 at 17:48
  • The problem is solved. I inserted the
    code before the
    tag and the mistake was gone in the validator. All thanks for attention. Best Regards.
    – Yudjin Bo Aug 17 '14 at 17:50

1 Answers1

3

The correct usage of <dl> is like following:

<dl>
  <dt>Parent</dt>
  <dd>Child</dd>
</dl>
Bob
  • 436
  • 5
  • 13
  • I know Bob, but how to me to remake the existing code that everything remained without external changes? :( Code line: 1254-1259 – Yudjin Bo Aug 16 '14 at 21:37
  • 3
    @YudjinBo, what do you mean? This is very straight-forward solution. You cannot fix a problem without applying a fix to it. – Rolice Aug 16 '14 at 21:41
  • @YudjinBo Rolice is right... – Bob Aug 16 '14 at 22:44