Frontpage adding unwanted code

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!
 
J

Jim Buyens

-----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) ||
|/----------------------------------------------------\|
*------------------------------------------------------*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top