homepage Welcome to WebmasterWorld Guest from 23.23.22.200
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Top Worst HTML Mistakes
JamesR




msg:965923
 8:11 pm on Sep 9, 2002 (gmt 0)

Starting out in webmastering, most don't really know HTML well and learn by trial and error. However, a list of common, avoidable HTML mistakes might really help a new webmaster getting a grip on the learning curve.

My top confounding HTML errors:

1) <Title>My Title<Title> - forgetting to close title tag and page shows up blank in the browser

2) Forgetting a </tr> tag. Still make this one often

3) Building a template with HTML errors and spawning a site full of these pages.

4) Mixing absolute and relative sizes in tables. One table has % sizes and others have pixel values and not integrating them correctly.

5) Calling a gif image when you meant jpg and pounding your head on the desk wondering why you can't get the image to show up.

What are yours?

 

mack




msg:965924
 8:28 pm on Sep 9, 2002 (gmt 0)

</head>
<title>my title</title>

Seam to have developed that one lately...scary

martinibuster




msg:965925
 8:51 pm on Sep 9, 2002 (gmt 0)

Renaming directories and failing to rename all the image paths to reflect the new directory.

dhdweb




msg:965926
 8:57 pm on Sep 9, 2002 (gmt 0)

<html>
<head>
<title>bla-bla</title>
</head>
<body>
yada - yada
</body>

Forgetting the "</html>" will cause some browsers to show the hour glass forever, waiting for the page to finish loading.

This will cause a bald spot on your head from scratching. :)

ritch_b




msg:965927
 9:02 pm on Sep 9, 2002 (gmt 0)

...referring to images and filenames locally, then spending hours wondering why the pages wouldn't work on any machine other than mine...

...not being able to remember whether <TD> or <TR> went first was (still is sometimes!) a good source of headaches!...

Pushycat




msg:965928
 9:33 pm on Sep 9, 2002 (gmt 0)

Not remembering what DTD is in effect for whatever website I happen to be working on. Validation stops those mistakes from going into production but I always chuckle to myself when the same errors are flagged over and over again by the w3c validation service. :)

Filipe




msg:965929
 10:44 pm on Sep 9, 2002 (gmt 0)

One that's really hard to explain to newcomers is the <table> void:

<table>
<tr><td>Text in cell</td></tr>
<tr><td>Text in cell</td></tr>
HELP! I'm lost in the void!
</table>

Why does that display like this, they ask:

HELP! I'm lost in the void!
Text in cell
Text in cell

It's because "HELP! I'm lost in the void" is in a table (between <table></table> tags), but not in between table cells <td></td>. The browser will dump that info in the "void" out on top of the table (for some browsers).

vmcknight




msg:965930
 12:23 am on Sep 10, 2002 (gmt 0)

My current baddie is to randomly capitalize file names - too many years on an NT server, I guess. Now I'm on a UNIX server, and it MATTERS! I need to tattoo "lowercase filenames" onto the back of my hand...

caine




msg:965931
 1:11 am on Sep 10, 2002 (gmt 0)

James,

I think your no. 3 by far is the worst, and most annoying mistake to make, as it has permeated accross the net, and the structural inadequcies with the code. Always check the templates several times. Just not worth the sweating and late nights sorting out hundreds of fully loaded pages (content-links), due to a lack of checking.

DiAMOndDavE




msg:965932
 5:55 am on Sep 10, 2002 (gmt 0)

...using FrontPage? ;-)

fathom




msg:965933
 6:37 am on Sep 10, 2002 (gmt 0)

Uploading the site and not looking.

Ok... forgot the graphics folder. The links worked fine though.

Marcia




msg:965934
 11:37 am on Sep 10, 2002 (gmt 0)

Forgetting the end quote, since day one.

Ove




msg:965935
 12:33 pm on Sep 10, 2002 (gmt 0)

Uploaded the page but forgot the graphics folder :)

/Ove

txbakers




msg:965936
 12:48 pm on Sep 10, 2002 (gmt 0)

I tend to forget the </script> at the end of the srcipt section.

What a mess that causes!

buckworks




msg:965937
 12:54 pm on Sep 10, 2002 (gmt 0)

I use PageMill and it often removes the </script> tag from the head. It's NOT me forgetting it, it's PageMill taking it out. Auuugh!

One of these days I should get DreamWeaver .... and trade in for a whole new batch of quirks!

gsx




msg:965938
 1:28 pm on Sep 10, 2002 (gmt 0)

Lack of body backgound color when you should put white. You never notice it normally - unless you happen to browse your site on a Mac! Looks even worse if you've remebered it on some table cells, or if some frames have it and others don't in a framed site!

BlobFisk




msg:965939
 1:42 pm on Sep 10, 2002 (gmt 0)

Not quite html, but close enough! I tend to leave out the ; on the last call in a CSS class/id (which is ok), but whenever I add something else on I sometimes forget to add it on to the one above... meaning I spend a few minutes tearing my hair out and cursing at the computer for not doing what I thought I had told it to do...

oilman




msg:965940
 6:52 pm on Sep 10, 2002 (gmt 0)

another not really html but it just happened today so...

I edited a little perl script and uploaded it to a test directory to see if worked right (it's supposed to change the date in a drop down based on the day and time from the server). I also have another version in the regular directory that does not change the date.

So, (and you can see this coming) I make the edit and upload the script to the test directory and then hit refresh on my browser and the date hasn't changed. I spend some time double checking the logic and operators and do I have enought brackets in the statement etc. Reupload - refresh - nothing. This happens over and over again.

Yup - I've been reloading the regular version of the script rather than the one I keep changing in my test directory. In the meantime I've broken every pencil on my desk and whipped a few office type sundries at the wall. AAARRGGHHH!

btw - I got it working ;)

andreasfriedrich




msg:965941
 7:49 pm on Sep 10, 2002 (gmt 0)

James wrote in his opening statement [webmasterworld.com]:

My top confounding HTML errors:

[...]

3) Building a template with HTML errors and spawning a site full of these pages.

Now I may be dense or lack some understanding of the template concept, but what is the problem apart from having the error? You just correct the template and depending on whether you use an online or offline cms you just upload the corrected template to the server or run your content through your offline cms and the error is gone on every page.

AkanDian rain




msg:965942
 7:55 pm on Sep 10, 2002 (gmt 0)

I just got finished cleaning up pages upon pages of <font><font>text</font></font>. I think this happend through some editing program that failed to recognize that a font tag already existed.

oilman




msg:965943
 8:08 pm on Sep 10, 2002 (gmt 0)

>>what is the problem apart from having the error?

he was prolly referring to non dynamic sites where you use a template and just keep "saving as" something else.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved