View Single Post
Old 01-09-2002, 03:30 AM   #7
Dundee Slaytern
Ironworks Moderator
 

Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 42
Posts: 11,063
quote:
Originally posted by SookmaCook:
Ok, What do u mean by sequencing ??


Note, [ = <, likewise , ] = >

You did it like this,
[font color="white"]Text Message[/font][H1][font color="blue"][marquee]Text Message[/H1][/font][/marquee]

There is nothing wrong with the first part, so let's us just remove that for easier seeing, leaving us with the portion that created the error.

[H1][font color="blue"][marquee]Text Message[/H1][/font][/marquee]

Notice? You started with [H1] but you did not end with [H1]. Think of it as an onion, start with one first, then add more layers onto it, giving you something like this,

[H1][font color="blue"][marquee]Text Message[/marquee][/font][/H1]

I added the [marquee] tag first, then the [font tag], and lastly, the [H1] tag.

While it may seem minor, it can create logical errors to the browser who is trying to read the HTML code. As a general rule of thumb, when you start with "a", end with "a". This is not a concrete rule, but it makes for neat and tidy coding, neat and tidy coding is very nice. I like neat and tidy coding, did I emphasise enough on neat and tidy coding?

Besides, neat and tidy coding will help ensure that you do not run into too many bugs.

[ 01-09-2002: Message edited by: Dundee Slaytern ]

Dundee Slaytern is offline