Can you put other tags in the HTML ul, such as H3, p?

Source: Internet
Author: User

According to the standard, UL inside should only put Li, but see colleagues have put H3, p these, so in the end can?

<ul> inside can only put <li>
But <li> can put
UL inside put other labels, not only does not conform to the semantics, in the ie7-inside also will have the question:
If the <other> tag is preceded by a <li> tag, the browser will assume that <other> is the child node of <li>. For example, <span><div></div></span> is not possible, when different browsers will have their own strategy to deal with these things.

Can you put other tags in the HTML ul, such as H3, p?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.