Chris Hunt is correct in his definition. I cannot think of anyway to create breadcrumbs inpure HTML. You will have to use some scripting, which is not as scary as it sounds. Here are 3 good articles.
Thanks. Yes it is this type of breadcrumb I'm looking for:
Home > Forums > Programmers > Languages > HTML and CSS (Cascading Style Sheets) Forum
My pages are all HTML (no JS, PHP involved). I have a navigation bar with a number of subsections and just want to make it clear to the user where they are in the hierarchy, I realise it may not be possible in HTML alone(as Jakob's note) but if anyone knows otherwise...
If all your pages are HTML, static pages, you can always just put static breadcrumb in individual page. I guess this the easiest solution. For static site, I won't bother to have the breadcrumb generted dynamically.
Well, if you've just got flat pages, can't you just hard-code the breadcrumb trail into the right place on each page? It might not reflect the path the visitor actually took to get to that page, but it doesn't need to (that's what the back button's for). After all, I don't suppose many of us got to this page via the "Home", "Forums", "Programmers" and "Languages" pages did we?
You could then code the HTML as simply as this (for example):
[tt]
<a href="/">Home</a> &gt;
<a href="section1.htm/">Section 1</a> &gt;
<a href="sub2.htm/">Subsection 2</a> &gt;
This page
[/tt]
(though there are much slicker ways to encode it using CSS, using a rearranged <ul> if you want to be really swanky)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.