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 trial

HTML Build a Simple Website Text Editors and HTML Images and Lists

Unordered list example isnt working for me

Hi there. I have pretty much copy-pasted the example and when i refresh my browser it is supposed to give me a list, but it does not, only the image...

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head> <body> <img src="img/logo.gif" alt="Smells Like Bakin'"> <ul class="nav"> <li><a href="#">About</a></li> <li><a href="#">Cupcakes & Prices</a></li> <li><a href="#">Locations</a></li> <li class="last"><a href="#">Contact Us</a></li> </ul> </body> </html>

6 Answers

Thank you for replying! here it is:

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head> <body> <img src="img/logo.gif" alt="Smells Like Bakin'"> <ul class="nav"> <li><a href="#">About</a></li> <li><a href="#">Cupcakes & Prices</a></li> <li><a href="#">Locations</a></li> <li class="last"><a href="#">Contact Us</a></li> </ul> </body> </html>

<code> <!DOCTYPE html>

ul il Smells Like Bakin'</il> il Cupcake Company</il> il About Cupcakes</il> il Prices</il> il Locations</il> il Contact us</il> /ul </code>

is this what you are after?

Sorry I dont really know how to expand the text

You need to add the items in an unordered list like this.

"<ul>" "<il>add your item here</il>" "<il>add your item here</il>" "<il>add your item here</il>" "<il>add your item here</il>" "</ul>"

Dont add my " marks I only added them so I could write the code!

Could you copy-paste the code into your forum post?

Chris Vickers I can try doing that, but the video told me to do it in the format from my OP, and it doesnt work

Chris Vickers I can try doing that, but the video told me to do it in the format from my OP, and it doesnt work

I've done the example you have, read over the instructions again! make sure you add the ul and il tags. Maybe you missed a tag?