Search
Recommended Products
Related Links


 
 

 

 

Informative Articles

Can Your Web Site Win The Tour De France?
It's over. After three grueling weeks of racing, Lance Armstrong has won what some call the world's most difficult sporting event, the Tour De France. The US newspapers gave the event a cursory notation the Monday after the finish and showed a...

Does Valid Code Matter?
Introduction Learning to use valid html code is one of those website building techniques you decide to use. It is a big step requiring the use of validators, doctype declarations and often lots of extra work. But now for the big question:...

Guns Don't Kill People - Videogames Do!
“Ban these evil games”, “Videogame violence corrupting our nation’s youth”, “video games stole my husband”. It seems everyday that the media are making more and more claims about the evils of videogames. But are these claims based on fact, or is it...

Learning HTML & HTML Editors
Learning HTML & HTML Editors by Kalina of Affordable Web Design I hold a firm belief that all webmasters should practice validating their code, so all advice I give in this site will be centered around that belief. If you'd like to...

Music Cellular Phone Ringtones
Ring tones represent an ability to customize the cellular phone experience, and customers are buying them. The worldwide market for ring tones topped $2.5 billion in 2004, very little of which was spent in the United States, where sales amounted to...

Recent Cell Phone Advancements
Cell phones have come a long way since the early days of the 1980s when they were the size of a brick and weighed almost as much. Today, cellular phones come with built-in cameras, polyphonic ringtones, and high-tech games. New 3G mobile phones...

Spider Friendly Web Pages
First off what is spider friendly navigation? Basically it is how easily search engines can read your website. This ultimately depends on the search engine that is reading your site. Some have the patience to dig deep into your site and promise to...

SVG and Flash as the same species
We can name several technologies for displaying 2D interactive vector graphics on the web however, two names rises among other contenders. These are the Macromedia’s Shock Wave Flash (SWF) and the World Wide Web Consortium’s (W3C) Scalable Vector...

Web Design Using a CMS
Web Design Using a CMS There has been a big craze lately, everybody wants their site as a database driven site or Content Management System (CMS). There are many advantages to using a CMS over ordinary static page site, the main on is...

Web usability: The basics
What is web usability & why is it important? Web usability is about making your website in such a way that your site users can find what they're looking for quickly and efficiently. A usable website can reap huge benefits on to your website and...

 
 
 
Page Structure: Headings and Lists

When HTML started, people put all sorts of things on their pages: there was a tag to say which font you wanted your text to be in, a tag to say you wanted it to be in the centre of the page, and so on. Now, though, that way of writing pages is out-of-date and very inefficient compared to keeping content and style separate using CSS.

What is CSS?

CSS stands for Cascading Style Sheets - it is basically a way of saying once what you want your pages to look like, instead of having to repeat it in HTML all the way through the document. In old style HTML, for example, this kind of code was a relatively common sight:



Welcome to my website!



I hope you enjoy your visit.



Now, though, you can remove the font tags altogether, and just have this:



Welcome to my website!



I hope you enjoy your visit.



At the top of your website, you put a style tag, like this:



Now, instead of having to say again which font you're using with every new paragraph, you've told the browser that you want every paragraph you've got to be in Arial.

Headings and Lists

Thanks to CSS, you can make documents that are more 'semantically correct' - that is, they would make sense to a human reading them, instead of having to be weighed down with lots of extra presentation code. This has two great effects: it makes web pages smaller (and so faster to download), and it makes them simpler.

On a modern web page, the only things you should ever need to include apart from paragraphs of text are headings and lists. After all, web pages are just text, graphics and navigation put together in a particular order - there's no reason for things to be done as messily as they often are.

You use headings for the title and subtitles of your page - they're the HTML tags that begin with h. You might, for example, write website title article title .

Lists, on the other hand, can be used for pretty much anything else that isn't paragraphs of text. Instead of just

 


putting links one after the other to make a navigation bar, for example, you should put them in a list, using the ul and li tags. Not only is this easier for you to read and add to, but it's also more compatible with non-graphical browsers.

A typical list looks like this:

  • item 1
  • item 2


Bold, Italic, and Images.

Of course, in practice, you'll need a few more tags. CSS lacks any good way of making individual words bold or italicised, so you can still use your b and i tags. Images, of course, still need a tag of their own too, although you might consider putting your images in a list if you have more than one.

In theory, at least, that still means that it should be perfectly possible to create a clean looking web page using only six tags: h, ul, li, b, i and img. And, yes, it is very possible - if you can stick to this attitude towards web pages, your page will be extremely clean, quick to download and fast to display. If you've ever sat and waited more than a few seconds for a page to load, you'll know how important this is.

Custom Stylesheets

One more advantage of this approach is that it lets your users view your website however they want to. There are a surprising number of users out there who are elderly or just want some consistency on the web, and they have their own CSS stylesheets to add to pages to make text bigger, for example, or make the layout simpler.

Once you've written your page cleanly, you can even offer visitors a choice of stylesheets yourself - you can write more than one and then offer an option to switch between them. This makes redesigning your page much easier, if you ever need to, since you can simply swap one set of CSS for another and even leave the old one available for any visitors that prefer it.

About the author:



Original Source: Articles-Galore.com



Information supplied and written by Lee Asher of Eclipse Domain Services

Domain Names, Hosting, Traffic and Email Solutions.