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

Building a site with pages that won't appear in menu bar. What do you do.

I have been thru all/most of the HTML oriented lessons and, am not sure what you do with specific types of pages.

I would like to have a site that when you click on a graphic, it opens up onto its own page. So that page won't actually be accessible unless the graphic is clicked on. Meaning it won't be in a menu area .

I am unsure if I make an .html file for each of these pages, or create a template and then use javascript to put in the graphics and text.

The idea would be for a portfolio site, to open some design work, and then have an explanation that could be several paragraphs long.

I have used some basic services before where you drag and drop to create a site and, I ended up with lots of pages but am unsure of what the best practice is.

If it is still unclear what I am going for please let me know and I will try to reword it. It makes sense to me because I know what I'm trying to find out. Thanks.

4 Answers

Hi Erik

You could wrap an <a> tag around the <img> tag, that way when someone clicks the image he will be redirected to a page. Something like this:

<a href="page.html"><img src="" alt=""></a>

Will that work for you?

That could work. I just have like 50 of those. So I'm not sure if every image should have it's own page or, if I should have them point to a page and then get populated by JS.

Maybe you want to show the pictures in a Lightbox?

Not what I'm looking for but thank you.