li ... ⁄li syntax
Syntax li
- start tag required: <li>
- end tag optional IF...: <⁄li>
<⁄li> optional IF...:
- li element is immediately followed by another li element (see the first <li> element) Syntax 1 OR
- there is no more content after li element inside the parent element, ul in our case (see the second <li> element) Syntax 1
Examples li syntax
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> </> <> <> <>... <>... </> </> </> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <!doctype html> <> <> <>...</> </> <> <> <>...</> <>...</> </> </> </> |
Video demonstration li element, syntax
HTML5 li element, syntax Tutorial
min | video details |
---|---|
00:05 | video tutorial: li element, syntax |
00:09 | adding the li element in page |
00:23 | the li element may have: - a start tag: <li> - and an end tag: <⁄li> OR - just the start tag: <li> |