Forum Moderators: mack
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?
<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).
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.
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 ;)
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.