쉽지 않은 ul li 문제점
크심
리스트에 li 속성을 많이 씁니다.ol
li1/li
li2/li
ol
li3/li
/ol
/ol
- 1
- 2
- 3
이렇게 나오는것으로 해서 많은 분들이 쓰고 계실터인데요...
이 부분이 w3 validator에서 에러로 체크되고 있습니다. end tag for X omitted, but OMITTAG NO was specified ✉
You may have neglected to close an element, or perhaps you meant to self-close an element, that is, ending it with / instead of .
Line 21, column 6: end tag for li omitted, but OMITTAG NO was specified pre /ol/pre테그가 닫히지 않았다는 메시지가 뜨는데요.이부분에 해결방안을 좀 알려주시면 감사하겠습니다.
+ 추가찾아보니 w3.org에 list in html페이지에 예재로 이런게 제공되네요.. 뭐가 문제인지.. 원DEPRECATED EXAMPLE:
preUL
LI ... Level one, number one...
OL
LI ... Level two, number one...
LI ... Level two, number two...
OL start=10
LI ... Level three, number one...
/OL
LI ... Level two, number three...
/OL
LI ... Level one, number two...
/UL
/pre
-
밝은빛누리예 2025-06-16
ul
liCoffee/li
liTea
ul
liBlack tea/li
liGreen tea /li
/ul
/li
liMilk/li
/ul
w3schools.com - 요기 사이트에서 가져온 예문입니다.
제가 알기론 저런식으로 쓰여야 할듯합니다. -
청력 2025-06-16
ol
li1/li
li2/li
liol
li3/li
/ol
/li
/ol
ul 이나 ol 엔 li 외엔 올 수 없습니다