A Conversation for h2g2 Feedback

doubletext

Post 1

Peta

I posted an article on cookies. It looks ok - but when I preview it - it repeats twice. I have used a bit of html - so thats obviously the problem, but do you know what in html does this doubling up? I have looked at it - but can't see anything obvious. I must read my html book more carefully. Groan its about 4 ft thick. Thanks in advance.


doubletext

Post 2

StevenR

This happens because H2G2 uses XML instead of HTML. XML is more fussy about tags being closed.
For example: every <P> must have a </P>.
If this is is not done then the text can get repeated.
If you want to use a single tag like a <BR> then add a / at the end like <BR/> which is the format XML uses for unclosed tags.
The same applies to <IMG> tags (e.g <IMG SRC="filename"/&gtsmiley - winkeye
I hope this helps.


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more