I need to divide into groups several <li>
elements in a list, is it possible? (I know I an give each element different class names/separate into different <ul>
)
No. This is invalid HTML. Permittend content: zero or more <li> elements, eventually mixed with <ol> and <ul> elements.
The <div> tag is used to group other HTML content together. The <div> element doesn't add or change the content of your HTML. Instead, its main purpose is to provide an easy way to target and each group.
The <fieldset> tag is used to group related elements in a form. The <fieldset> tag draws a box around the related elements.
ul stands for unordered list. li stands for list item. They are the HTML tags for "bulleted" lists as opposed to "numbered" lists (which are specified by ol for ordered list).
Have you considered nested UL's? I believe this would validate:
<UL> <LI> <UL> <LI></LI> <LI></LI> <LI></LI> </UL> </LI> <LI> <UL> <LI></LI> <LI></LI> <LI></LI> <LI></LI> <LI></LI> </UL> </LI> </UL>
Your CSS trick was my first guess; too bad you can't use that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With