1. Schulstunde, Thema dieser Stunde: Wie sieht eine ungeordnete Liste in HTML aus?
Code:
<ul>
<li>Item1</li>
<li>Item2</li>
<li>Item...</li>
</ul>
Ein Element <lo> existiert nicht! Das Dingen nennt man <ol>.
Und immer schön den Validator benutzen.
Bei einer Liste musst Du margin und padding immer auf 0 setzten. Zumindest den linken.
Zitat:
line 27 column 12 - Error: character data is not allowed here
line 27 column 32 - Error: end tag for "ul" which is not finished
line 28 column 12 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 29 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 30 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 31 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 32 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 33 column 11 - Error: element "lo" undefined
line 35 column 12 - Error: character data is not allowed here
line 35 column 32 - Error: end tag for "ul" which is not finished
line 36 column 12 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 37 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 38 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 39 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 40 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 41 column 11 - Error: element "lo" undefined
line 43 column 12 - Error: character data is not allowed here
line 43 column 32 - Error: end tag for "ul" which is not finished
line 44 column 12 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 45 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 46 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 47 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 48 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 49 column 11 - Error: element "lo" undefined
line 51 column 12 - Error: character data is not allowed here
line 51 column 32 - Error: end tag for "ul" which is not finished
line 52 column 12 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 53 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 54 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 55 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 56 column 15 - Error: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
line 57 column 11 - Error: element "lo" undefined
|
|