Forum Moderators: open

Message Too Old, No Replies

Multiple <body> tags

         

Athrilla

1:33 pm on Apr 18, 2003 (gmt 0)

10+ Year Member



Are there any consequenses for using multiple <body> tags in a document? The reason is that the store I am using is created by a template, and I need to add things to the <body> tag.

When I tested it out in a different document, it seemed to work fine, but are there instances in which this will not work? (i.e old browsers, etc.)?

Thanks.

korkus2000

1:42 pm on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Multiple body tags are not valid. I would not use them. Some browsers will choke with them. Can you manipulate the template code to insert body elements? What do you need in the body?

kiwanji

6:11 pm on Apr 18, 2003 (gmt 0)

10+ Year Member



If you need to have different attributes in the body tag for different pages I would recommend that you create different templates for each new page type. Not the most time saving thing to do but I haven't come up with a better idea.

Athrilla

6:28 pm on Apr 18, 2003 (gmt 0)

10+ Year Member



My website links to a YahooStore, which is made up of templates, whose <body> tags I do not have access to. If it is something that could cause problems, then I will not mess with it. However, if all browsers still work well with multiple body tags, then I would like to add more to it.

korkus2000

6:32 pm on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is it you want to add to the body tag?

g1smd

6:32 pm on Apr 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Run your code through [validator.w3.org...] to find any errors, then take time to correct as many as you can.

If people have trouble viewing your site then they will shop elsewhere.