It is not valid in any version of HTML, see e.g. HTML 4.01 on ul
.
Browsers allow it, though, and parse it so that div
becomes a child of ul
, and they let you style the div
too. This is probably the reason why this markup has been used.
More Related Contents:
- How to center elements on the last row in CSS Grid?
- How do I escape ampersands in XML so they are rendered as entities in HTML?
- Is there an equivalent to background-size: cover and contain for image elements?
- Using margin:auto to vertically-align a div
- Displaying unicode symbols in HTML
- Responsive CSS Trapezoid Shape
- Why cannot change checkbox color whatever I do? [duplicate]
- Using HTML in jQuery UI autocomplete
- How to select a radio button by default? [duplicate]
- Do HTTP POST methods send data as a QueryString?
- Input type=password, don’t let browser remember the password
- Is it OK to use unknown HTML tags?
- Align the form to the center in Bootstrap 4 [duplicate]
- CSS for changing color of last word in h1
- Can websocket messages arrive out-of-order?
- How to have two items on opposite sides on the same line
- HTML5 i tag validity with icons
- body { overflow-x: hidden; } breaks position: sticky
- Bad value X-UA-Compatible for attribute http-equiv on element meta
- Html.BeginForm() with an absolute URL?
- Bootstrap 3 grid, does it *really* matter how many columns are in a row?
- Browser Canvas CORS Support for Cross Domain Loaded Image Manipulation
- Drop Down Menu/Text Field in one
- word-wrap break-word does not work in this example
- CSS override rules and specificity
- Question mark in the middle of a URL variable
- How to place Text and an Image next to each other in HTML?
- Placeholder not working for Internet Explorer
- How can I control the height of an Option element in Webkit?
- How to always show the vertical scrollbar in a browser?