26279 total geeks with 3498 solutions
Recent challengers:
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
MaxMouse
It's Friday... That's good enough for me!
CodeX
non stop lolz here but thats soon to end thanks to uni, surely the rest of the world is going good?
stabat
how things are going guys? Here... boring...
CodeX
I must be going wrong on the password lengths then, as long as it was done on ECB
MaxMouse
lol... the key is in hex (MD5: of the string "doit" without the "'s) and is in lower case. Maybe i should have submitted this as a challenge!

Donate
Donate and help us fund new challenges
Donate!
Due Date: May 31
May Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
Canadian regulators
welcome US Bitcoin
refugees with open
arms
Securo-boffins
uncover new GLOBAL
cyber-espionage
operation
It! Started! With!
A! GIF!... Yahoo!
Actually! Buys!
Tumblr! for! $1bn!
Petshop iPad fanboi
charged with
filming up young
model"s skirt
Amazon
cloud-watcher shows
some love for
Microsoft"s Azure
Crack Army pilot to
be first PROPER
British astronaut
IN SPAAAACE
UK.gov STILL wants
to tout pupil data
- don"t use the
word "product"
Marks & Sparks
accused of silently
bonking punters
over the tills
Schmidt: Don"t like
our tiny tax bills?
Google this...
"Change the law"
Biz bods:
Tile-tastic Windows
8? NOOO. We lust
after "mature" Win
7
Slashdot
Interviews: McAfee
Says House Fire Was
No Accident
Yahoo Pinkie-Swears
It Won"t Ruin
Tumblr
Uptick In Whooping
Cough Linked To
Subpar Vaccines
Dark Matter, WIMPS,
and NASA"s Alpha
Magnetic
Spectrometer Data
Open Source
Projects For
Beginners
NWS Announces Big
Computer Upgrade
Mageia 3 Released
Music and Movies
Could Trigger
Mobile Malware
Ask Slashdot:
Wiring Home
Furniture?
Medical Firm Sues
IRS For 4th
Amendment Violation
In Records Seizure
Article viewer

Efficient HTML



Written by:Maz
Published by:Nightscript
Published on:2004-07-09 11:49:24
Topic:Websites
Search OSI about Websites.More articles by Maz.
 viewed 9333 times send this article printer friendly

Digg this!
    Rate this article :
Unlike most tutorials this one will not teach you HTML, you can find millions of bits of information on how to write HTML but very few will teach you how to write it in a way that's efficient and easy to read.

1. Layout

You all know why I'm starting with this. I've had enough of sites with a bright yellow background and green scrolling text surrounded by GIFs and 300 images that are irrelevant to the site.

HTML provides us with enough to design a clean and useful interface that makes the site easy to browse through and fast loading. The reason it is not a good idea to start a serious site without first considering the design is because people who use computers and the internet for long periods of time generally have tired eyes and prefer duller colours (that's right, I spelled it with a "u") and fast loading sites because they don't have time to wait for your images to load when all they need is the text. Now I will list the main points that you should consider when designing your layout:

a. Consistency: Make sure all the pages have the same general layout; a navigation bar or menu somewhere on the site, and the basic things a page requires. DO NOT make a different layout for each page, this is generally bad practice and will cause people to take you less seriously.

b. Colours: It is recommended that you use web-safe colours, sometimes black text on a white background works really well, or white text on a black background. Make sure that your all your text is in one colour except for special reasons (hyperlinks, etc.). I've seen sites where the text on the background is literally unreadable and you have to highlight it with your cursor just to read it.

c. Navigation: I see this as a must, though some may not agree. But I believe a site should have a navigation system like a menu on the right or left or a nav bar at the top of a page so the user can click around and get to any part of the site easily without having to return to the main page everytime. Make sure it's a simple menu and that it agrees with the colours of your layout and font. Also, one of those "Top" hyperlinks at the bottom of a long page that take you to the top of the page are really helpfull.

d. Images/Animations: This is the most annoying. Many sites load animations and images on each page even though these images have nothing to do with the topic being discussed. This is not good practice since many of us have slow modems and need the pages to load fast so we can access the information we want. If an image is not relevant to the site do not include it. Do NOT include animations that you think are "cute", you can make a special page for only animations, and you can create a gallery for images, but don't just stick them anywhere unless they are needed to clarify something.


2. Code that is not your own

Ok, this is rarely seen but some people who put code in their sites that isn't their's and then don't bother to give the author credit for it. It's ok if you have the author's permission and they don't want their name anywhere, but if the code is written by someone and they worked hard writing it, they deserve to be mentioned when their code is put on a site. This goes for Javascript stuff and layout designs that are not your own, you can just add a small comment in your HTML document saying who the author is and where you found the code.

3. Comments

This brings us to comments, in HTML everything is pretty plain and simple but if there is something you feel should be commented lik a small script in your document then you should comment it for later reference, this will make life easier on you and on the people reading your code.

4. Neatness

BE NEAT! This is for all the people out there not using an HTML editor like FrontPage, use good programming principles, you don't need lots of indenting but make sure that different parts of the document are easy to pick out and are seperate. Don't write all your code on one line with no spaces because it blinds whoever's reading it. As I stated above, use comments and be neat. Know what you want to do before doing it.

In conclusion, these are just some simple guidelines that I think should be followed when creating a site, an easy to use site is not too much to ask for, and will convey your ideas to your readers efficiently. Hopefully this has helped someone make a better page, it was inspired by the tutorials on http://www.free2code.net . For more information on HTML go to http://www.w3.org , It's a good site with useful information.

Did you like this article? There are hundreds more.

Comments:
SAJChurchey
2004-07-13 04:47:36
Don't forget following standards. That way it can be used with a variety of browsers, screen resolutions, etc. make sure to check image placement in different screen resolutions to make your site look uniform (everything should size).
bobbykjack
2004-11-06 16:50:46
The points you discuss in this short article are correct, well stated, and should be understood by anyone working with the web. However, the title led me to believe you would be discussing efficiency-related issues such as file (especially image) size, CSS usage, caching, etc. These issues, whilst not directly related to HTML, are a key part of any web developer's knowledge.
I rate the article a 2, but I AM critical ;-)
Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)
BB Code is enabled.
Captcha Number:


Blogs: (People who have posted blogs on this subject..)
bb
IIS 6 SelfSSL and Windows 7 on Tue 29th Sep 12pm
I always used to use the selfssl tool from the iis resource kit but since moving to windows 7 (or possibly any operating system using iis6), you don't need to anymore. open iis console click the computer name (top of the tree) select 'server ce
bb
E-Snips on Thu 1st Mar 3am
E-Snips is a great site for allowing you upload and share files www.esnips.com . The interface is slick, and the client tool makes life easier. It really is one of the better 'free file upload' sites out there.
bb
Web Video on Tue 20th Feb 2pm
I enjoyed this beautifully edited video about the web and its progression. John Battelle's Blog Video
bb
Getting a good colour palette for website design on Thu 11th Jan 3am
Im enjoying using this really handy tool for picking a good palette for your website. http://www.colormatch.dk/. Im also really enjoying the following free website design template sites .. http://www.oswd.org and http://www.openwebdesign.or
bb
Google Reader on Fri 24th Nov 10am
I've just got into Google Reader. I find it a bit buggy in IE7, but im really liking having feeds from all my favourite sites (this one included) integrated into the one place. Ok, so I know its only day one ... and shit on the web has the habit of
bb
Storm Microsoft Office Training on Tue 7th Nov 5pm
my friends company storm training has a really nice looking web site and provides great offers on microsoft office training in south yorkshire, england .
bb
The Nigerian Iraqis on Sat 16th Sep 2pm
I found it amusing that the Nigerians 419er scam has turned Iraqi Dear Sir/Madam I am Mr HASSAN ANIE based in bagdad in iraq.I am the son of late major general in charge of purchase and maintainace in the past sadam hussain regime.Due to the situa
bb
The 'X' Generator on Wed 13th Sep 12pm
A while back I blogged about a concert ticket generator that I thought was hilarious .. Someone showed me a collection of these generator things here ... http://www.says-it.com/ cool huh http://img154.imageshack.us/img154/6443/ sealbk2.gif
bb
htaccess which overrides auth in a higher directory on Tue 29th Aug 11am
rj helped me with a htaccess problem today. I have a .htaccess on the root of my webserver which requires viewers to provide a username and password. I wanted a subdirectory to be public, and by default the above .htaccess was recursing down and for
bb
Medical Slang and Acronyms on Thu 24th Aug 5am
I found these Humourous Medical Slang and Acronyms rather funny. Favourites included ... Roasted Goober, PFO (Pissed and Fell Over) and PGT (Pissed and Got Thumped).

Test Yourself: (why not try testing your skill on this subject? Clicking the link will start the test.)
Is Your HTML Up To Scratch? by simms

Make sure you are ready to make your own website with this test.
Basic CSS by Conaman12

An easy test that covers your CSS skills!
Beginners HTML by Kfalcon09

Test your knowledge on very basic HTML


     
Your Ad Here
 
Copyright Open Source Institute, 2006