开发者

Multiple <html><body> </html></body> in same file

I have a multiple html files in one file:

<html> 
     <body> 
     </body> 
     </html> 

 <html> 
     <body> 
     </body> 
     </html> 

 <html> 
     <body> 
     </body> 
     </html> 

and the result is that I get a messed up html file. How to correct this without removing tags from the rest. I am using python to generate the html file. If I use the self.response.o开发者_JS百科ut.write(function(query)) I get a nice html page.

If I use it a second time self.response.out.write(function(query2)) then the page gets distorted.


Have one HTML file per file. Anything else is invalid and won’t be processed properly.

If you’re not sure if your HTML files are valid, the W3C’s validator will tell you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜