Frontpage adding unwanted code

  • Thread starter Thread starter MATTK
  • Start date Start date
M

MATTK

I write all my pages in HTML, so for example I would write this line
of code:
<span class="content">
Name: Matt<br>
Age: 27<br>
</span>

If I go into the Frontpage editor and try and add a line in between,
Frontpage changes the code to:
<span class="content">
Name: Matt
</span>
<p>
<span class="content">
<br>
Age: 27<br>
</span>

I have to use Frontpage, because the content editors don't know HTML.

How can I stop it adding all thsi code and ruining my lovely
formatting!
 
-----Original Message-----
I write all my pages in HTML, so for example I would
write this line of code:
<span class="content">
Name: Matt<br>
Age: 27<br>
</span>

If I go into the Frontpage editor and try and add a line
in between, Frontpage changes the code to:
<span class="content">
Name: Matt
</span>
<p>
<span class="content">
<br>
Age: 27<br>
</span>

I have to use Frontpage, because the content editors
don't know HTML.

How can I stop it adding all thsi code and ruining my
lovely formatting!

If the page contains this code:

<p>
<span class="content">
Name: Matt<br>
Age: 27
</span>
<p>

and you add a paragraph ending after <br>, the rule of
HTML *require* ending the <span>. The following construct
is illegal because of overalpping container boundaries.

<p><span></p><p></span></p>

To insert another <br>, tell your content editors to
press Shift+Enter.

BTW, I'm no fan of randomly-formatted, hard-to-read HTML
but I don't think anyone ever won an award for superior
code formatting.

Jim Buyens
Microsoft FrontPage MVP
(e-mail address removed)
http://www.interlacken.com
Author of:
*------------------------------------------------------*
|\----------------------------------------------------/|
|| Microsoft Office FrontPage 2003 Inside Out ||
|| Microsoft FrontPage Version 2002 Inside Out ||
|| Web Database Development Step by Step .NET Edition ||
|| Troubleshooting Microsoft FrontPage 2002 ||
|| Faster Smarter Beginning Programming ||
|| (All from Microsoft Press) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 
Back
Top