</li> closing tag (#31856)

* Update index.md

* updated due to request

I added the requested <li> information as requested.

* fix: added backticks around keywords
pull/25459/head^2
DavidNachman 2018-12-16 07:02:13 -08:00 committed by Randell Dawson
parent 463df1b2ce
commit 0f58e9ece4
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ An _ordered list_ is used to describe an ordered collection of data. Browsers us
An _unordered list_ is used to describe an unordered collection of data. Browsers usually display an unordered list as a bulleted list. Create an unordered list using the `<ul>` tag.
## List items
The direct children of ordered and unordered lists must be list items. Each list item is wrapped in an `<li>` tag. A list item tag can contain [flow content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Flow_content).
The direct children of ordered and unordered lists must be list items. Each list item is wrapped in an `<li>` tag. The `li` element does not technically need a closing `</li>` tag in HTML5, but is commonly used as good practice, and to stay XHTML compliant. The `</li>` can be omitted if immediately followed by another `li` element or if there is no more content in the parent element. A list item tag can contain [flow content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Flow_content).
## Examples