Its been a while since I’ve done any hard core web design, so I have a question for you. I’m pretty sure that there is a feature of xhtml that allows you to create a template and include that template in your other xhtml pages. What I’m trying to do is create a “main links” template that allows any page to reference the main pages of the site. I figured a template would be better to use as it would allow easy editing of those links. If I were to just hard code them on all the pages, that would be a nightmare if I had to change something.
Btw, this site is only being done in xhtml, css and javascript. I could have used something more beefy like jsf, but I just didn’t feel like it.
If anyone has any ideas on this, or suggestions on a better way to do it, it would be great.
Thanks,
Robbie
You’re probably looking at doing something with includes, which isn’t a part of XHTML but rather a server-side technology such as PHP or ASP.
See this W3School’s articles on PHP include() and require() and ASP Including files.
As far as I know, there isn’t anything in XHTML, CSS and/or JavaScript that does what you want.