changing code

C

Charlie

Is there some way that i can stop frontpage from changing the code that I
have changed?

What I am trying to do is run my website through a html validator. And when
I make the needed changes in the html code through frontpage and then save
the changes Frontpages alters the changes that I have made to what it wants
them to be.

And I am looking for a way to stop this from happening.

I guess is there is not other option I will have to start using notepad to
create my web pages.

Any sugestion ?
 
R

Ronx

What code is being changed? FrontPage 2003 will only change code that
FP2003 has written - and some (perhaps most) of this will not validate,
particularly code related to themes and navigation components.

Earlier versions of FrontPage (FP95,FP97 and FP98) would change code at
the drop of a hat, but later versions are well behaved, except as above.
 
C

Charlie

What I was trying to do is change some of the code so that I could use inline
style ( I thank That is what is would be called) By changing some of the
propertys for the images that I have on my web site. I am trying to comply
with the rulls to go along with using style sheets. But I wanted to emabed
the code into the web page it self. But when I make the changes Frontpage
places a border around my images.

And I have another location on the page where the html validator states that
I have a <h3> that was duplicated in the code. And everytime I remove this
bit of code Frontpage reinserts it back into the code.

So I am just not sure what to do about this other then start using a text
editor like notepad.
 
R

Ronx

Post a link to the page, or post the page code here.

Inline styles are often not the best way to go (though there are
exceptions) - using an embedded style sheet in the <head> section of the
page will make maintenance easier, and the same style rule will often be
usable for many HTML elements. Inline styling will mean having to
change every html element with that style.

If FP places a border around your images where you have used a style to
remove the borders, then the style code is incorrect.

I will have to see the erroneous <h3> in context before commenting.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
C

Charlie

The web page is www.chaloracrafts.com. I thought that I would start with the
home page first and work my way through the other pages one at a time to get
the html to be validated. Although I don't really know if there is any real
benafit to having them validated. It was just something that I thought that I
would do.

I guess it would help too if I would just read a book about CSS. As to try
and find what I need to make the changes to the web pages on the internet.
 
R

Ronx

The bad news is - the page will NEVER validate. The reason is the use
of shared borders. The meta tag FrontPage uses to show which shared
borders are in the page uses an invalid syntax:

The name attribute in a meta tag should not contain spaces, and <meta
name="Microsoft Border" content="tlb, default"> does a space in
name="Microsoft Border"

There several HTML errors on the page: (I have not checked the shared
borders for errors, only the main content page.
The line numbers are approximate, and taken from Code View. I have also
not checked the style sheet.


Some of the fonts used in the page will be seen as Times or Times New
Roman. A browser will only use those fonts that are installed on the
PC.

The !doctype is incomplete. Since you are using <font..> tags, you
should use the HTML4.01 transitional doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Notice the URL in the tag.
Using this will also fix some of the validation errors, particularly the
use of border in image tags.


The <body tag is followed by </style> - remove the </style>
Around line 73, starting <div id="E5B4A681FB4C_div"
name="E5B4A681FB4C_div">
The <h3> tag is not closed - there should be a </h3> before the </div>
on line 75

On line 106, the <h3> tag is not closed before the closing </li>

Line 121 - an extra </p> which should be removed

Line 122 - the <font tag is missing the corresponding </font>

Line 124 - </p> where there should be <p>

Line 131 - An extra </font> tag

Line 132 - an extra </font> tag

Line 162 - an extra </h3> tag - this may be the spurious tag you are
having problems removing. FP will insert it to close those missing tags
elsewhere.


In your CSS, take line 30 as an example (this problem is repeated in
many places)
<p align="left" style="margin-left: 10; margin-top: 12">
Should be
<p align="left" style="margin-left: 10px; margin-top: 12px">

Any measurements in CSS styles must have the unit of measurement (except
0, which is the exception that proves the rule).

Line 140 - Get rid of the <blink> tag - this can cause epileptic fits
for users who are susceptible to this. (Only works in Netscape anyway).


There is room for a lot more work on this page - changing the font tags
to styles and moving the inline styles to an embedded style sheet, for
instance. But if the page works - slow changes are fine. I took 6
months converting my site from <font..> tags to CSS - and maintaining
the pages is much easier for the change.

The image border problem: change border="0" to style="border:none;"
for inline styles.
For embedded style sheet add this above the </head> tag:

<style type="text/css">
img {border:none;}
</style>

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
C

Charlie

Thanks! That will be a big help to me! And I was wondering about the meta tag
errors anyway.
But I will work on the other changes that you had suggested!
 

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