Forum Moderators: phranque

Message Too Old, No Replies

Garbage Code

What's safe to remove?

         

diggle

12:24 pm on Mar 14, 2003 (gmt 0)

10+ Year Member



Hi,
On another topic on this site, the question of garbage code was brought up.
Does it help to remove it?
I use Front Page 2000 on my site. Microsoft throws up the following as soon as you open a new page :

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<meta name="Microsoft Border" content="b, default">
</head>
Is any of it necessary - apart from the "head" code?
Could you remove any of this - and would it be beneficial to do so?

Thanks.

Allen

1:27 pm on Mar 14, 2003 (gmt 0)

10+ Year Member



I would get rid of:
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
and
<meta name="Microsoft Border" content="b, default">

and change the content of the <title></title> tags to something relevent.

Allen

diggle

1:31 pm on Mar 14, 2003 (gmt 0)

10+ Year Member



Thanks for that Allen.
I take it that this won't affect the look of the page on various browsers or the way it is spidered?
Does anyone know what the point of this code is?

fathom

1:32 pm on Mar 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Those are some - add any Comment Tags to that list of removing <!-- something meaningly -->

In addition, <font></font> and move to external CSS if you haven't already.

Javascripts move to external as well.

korkus2000

1:32 pm on Mar 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To let everyone know it was created in Frontpage.

Allen

1:33 pm on Mar 14, 2003 (gmt 0)

10+ Year Member



Don't know about the Microsoft Border - never seen that one, but these two:
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
basically tell the browser what program created the page, and AFAIK they are never used, even by search engines.

Probably used by M$ to help them find out how many poor people can't afford DreamWeaver :P

Allen

rogerd

2:21 pm on Mar 14, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The border tag keeps lets you know which borders you are using on that page (in this case, the bottom one). I don't know if FP relies on this tag when you update a border, but if you want to delete it I'd test it by deleting it on one page and then updating the border on another page. You wouldn't want to de-link all of your borders. I've nver really checked to see if this tag is essential, though.

diggle

4:47 pm on Mar 14, 2003 (gmt 0)

10+ Year Member



Thanks for that
So, to sum up, it is safe just to get rid of:

<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">