In class we used an unordered list for the top nav. I know one main issue people were facing was getting the "|" in between each heading. At first, I did that by adding a span"|"/span, but Amos told me that might not be right because only li's are supposed to be in a ul.
After thinking about it, I figured a way that is technically correct: using a nested list. Here's a quick example of the code:
ul
li Coffee
ul
li | /li
/ul
/li
li Tea
ul
li | /li
/ul
/li
li Milk
/ul
Let me know if this is correct to use, although for now I am going to stick to the span until I hear otherwise.
Subscribe to:
Post Comments (Atom)
1 comment:
Hello Jon. It's an interesting point you make. I don't know what's correct, but it seems a bit strange to make separate "ul"s each consisting of just one "li". I think you could probably put everything into just one "ul" and then declare that some of the "li"s are "special".
Thanks for bringing this up! I'm going to have to change mine to incorporate this idea of tagging the separators as different "li"s from the links.
Post a Comment