-
[Resolved]HTML Website
i'm creating html website but i'm worried about consistency across pages(nav , side contents..etc) . In asp.net we have something like masterpage which we create navigation and the whole website skeleton then inherit this page .
How do you do this in html?
-
Re: HTML Website
Use css! Cascading style sheets hold nearly all (if not all) the information about the display of a website. If you do a search on the forums you should find plenty of examples of how to use css.
-
Re: HTML Website
If your server supports it, you can use server side includes:
Code:
<!--#include file="header.html" -->
<!--#include file="nav.html" -->
Page content...
<!--#include file="footer.html" -->
You'd house your header code in header.html, your nav in nav.html, etc. - wherever you've got code that you want to duplicate on each page, use an include.
I'm not sure why you'd want to go with plain HTML if you already know a superior solution (ASP.Net), however.
-
Re: HTML Website
I'm not sure why you'd want to go with plain HTML if you already know a superior solution (ASP.Net), however.[/QUOTE]
for many reasons, the website will contain static data and the hosting can be any linux/windows server with no .net framework requirement.
thanks guys ..got the idea