Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdougw
2,853 Pointsadd an empty order list
I'm adding an empty unorder list <ul> </ul>
it keeps telling me to use a ul tag WHY?
5 Answers
Vance Rivera
18,322 PointsTechnically this should have not happened. That is what you would consider to be a bug. You should have not been able to move forward without closing your img tag. I find to be one of my best practices is to always open and close my tags before I add any attributes to them. So I would start off with <div></div>
then I would continue to start adding everything else needed. So I would eventually end up with <div id="test" class="mtTest">Example Here</div>
Stone Preston
42,016 Pointstask 3 states "Add an empty unordered list below the image."
an unordered list looks like this
<ul></ul>
it uses an <ul>
tag
also be sure you are placing the list below the image tag from task 2
Vance Rivera
18,322 PointsI would make sure that my tags are closed and cased properly. The ul is the proper html tag to use for unordered lists. A common mistake sometimes can be reading the question wrong (not saying that you are). If you are still having issues please post the exact question and I will do my best to help you out.
dougw
2,853 Pointsturns out the problem was on challenge 2 which had me add a line for img. seems i forgot the > sign at the end of that line. even though it was wrong it congratulated me so i went on to the next challenge (adding the ul. At that point it must have caught my problem from the line before. Should this have happened?
Vance Rivera
18,322 PointsTechnically this should have not happened. That is what you would consider to be a bug. You should have not been able to move forward without closing your img tag. I find to be one of my best practices is to always open and close my tags before I add any attributes to them. So I would start off with '''html <div></div>''' then I would continue to start adding everything else needed. So i would eventually end up with '''html <div class="testClass" id="MyTest">Example Text Here</div>'''
dougw
2,853 Pointsi'm typing this exactly. tells me to make sure to use a ul tag. it is under the image statement . any other thoughts
Stone Preston
42,016 Pointsyou will have to use markdown to format your code. plain html tags dont show up in teh forum