[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: p tags and indenting in Html Mode
From: |
Richard Riley |
Subject: |
Re: p tags and indenting in Html Mode |
Date: |
Mon, 31 Aug 2009 13:58:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
pjb@informatimago.com (Pascal J. Bourguignon) writes:
> Tyler Smith <tyler.smith@eku.edu> writes:
>> Html mode recognizes that <p> tags don't need to be closed, so
>> successive tags get indented to the same level. But when an unclosed
>> <p> tag is followed by a heading (e.g., <h3>), the heading gets
>> indented as if it were within the previous <p>, as do all subsequent
>> tags that aren't <p> tags. In other words, the heading is indented
>> further than the <p> tags that were there before. How can I get html
>> mode to keep the indentation at the same level? I put a small example
>> below to clarify.
>>
>> I've tried google and the mail archives, but searching on html mode, p
>> tags, indenting etc. gave me lots of apparently unrelated info. Thanks
>> for your help!
>
> Close your tags! So your html becomes more compatible with xhtml.
A lot of web designers don't go anyway near xhtml because it's a pain
and doesn't work properly anywhere other than in theory :-; A google for
"xhtml not working" tells you why.
Having said that closing tags is a better idea.