Is this the right way to structure a website?
Hi, I was wondering if this is an appriopriate way for structuring a website. I think it'll work? But I don't know if this is the right way or just another way of doing it. Any advise would be appriciated :)
I'm not sure what you are asking for.
1. Naming, class/id should say something about an element it is assigned to.
2. If you are certain that only one element will implement styles, then I suggest you use ID.
3. HTML5 adds tags like section, footer, header, aside, etc. Use those (was going to paste http://www.w3.org link here but I'm unable to connect to their website >.>). Those tags however will not work on browsers like IE8, to fix it just use http://code.google.com/p/html5shiv/.
It is up to you how you build your website. Just follow standards and it should be displayed properly on most browsers.
Like linek98 suggests, a more descriptive naming convention makes it easier to know what each div element is.
Other than that, your layout is not so bad. There are some errors that validating could help you with. See the links about validating in my signature line.
I think you are off to a good start.
|All times are GMT +1. The time now is 02:10 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.