White Space in HTML

S

SueF

When I saw so many recommendations to use tables, I created tables and
started moving all my text and images into them. During learning process I
realized I should have only *one* table set up with rows & columns as needed.
I did that, moving text and images as appropriate, then removed the extra
tables.

Now I notice (example:
www.hellscanyonchamber.com/businesses/lodging/cornlodgehtm) that there are
huge areas of white space in the html. Is it safe to remove all that? Other
pages don't have that much white space between the sections of code.

Thanks for advice.
 
J

JDR

Sue,

I am assuming you are refering to this page:
http://www.hellscanyonchamber.com/cornlodge.htm

Yes, you can remove the whitespace without any problem. FP 03 has the
option to optimize html when publishing to the destination server, but it
appears you are using FP 2000, so I believe you'll have to edit this in html
view (Can't remember if 00 has optimize option).

JDR
*********************
 
S

SueF

Thank you. Yes, right page despite my goof. I am using FP2000 and it does not
appear to have the optimize option. Since I'm just learning, I thought I'd
keep the web in 2000 until I'm more familiar with the process and have had a
chance to explore 2003 with some test webs.

I really appreciate your help with this ... was hesitant to mess around with
the html.
 
T

Tom J

SueF said:
Thank you. Yes, right page despite my goof. I am using FP2000 and it does
not
appear to have the optimize option. Since I'm just learning, I thought I'd
keep the web in 2000 until I'm more familiar with the process and have had
a
chance to explore 2003 with some test webs.

I really appreciate your help with this ... was hesitant to mess around
with > the html.

It's always OK to mess with code or anything else AFTER you have saved under
another nake so you can get it back when you reach the point of no return.
Tom J
 
J

JDR

Sue,

As Tom mentioned, feel free to work with the html, it's how you learn.

Just create a directory (Folder) in your FrontPage web called "Backup", copy
the file you are going to work on into the Backup directory. Now work with
your file and when ready to go to File > Preview in Browser.

If everything is functioning properly, publish to your destination server
and then test it again.

If for some reason the file gets messed up and you aren't sure what to do,
you just restore it with your backup..

When developing sites it is also important to understand what the code is
doing, and being comfortable within the html view is the first step..

Have fun and remember it's only code, your house will not blow up if you
make a mistake :--))

JDR
**************
 
M

Miklos

Why can't they get Front Page to optimize as a TOOL instead of during
publishing?
It would be more useful.
 
S

Stefan B Rusynko

Because many of the optimizations would make your FP web non-functional in FP (depending on which design time / run time components
you used)
- and good luck "editing" a page in Code view w/ all white space removed from the code




| Why can't they get Front Page to optimize as a TOOL instead of during
| publishing?
| It would be more useful.
|
|
| "JDR" wrote:
|
| > Sue,
| >
| > As Tom mentioned, feel free to work with the html, it's how you learn.
| >
| > Just create a directory (Folder) in your FrontPage web called "Backup", copy
| > the file you are going to work on into the Backup directory. Now work with
| > your file and when ready to go to File > Preview in Browser.
| >
| > If everything is functioning properly, publish to your destination server
| > and then test it again.
| >
| > If for some reason the file gets messed up and you aren't sure what to do,
| > you just restore it with your backup..
| >
| > When developing sites it is also important to understand what the code is
| > doing, and being comfortable within the html view is the first step..
| >
| > Have fun and remember it's only code, your house will not blow up if you
| > make a mistake :--))
| >
| > JDR
| > **************
| >
| > "SueF" wrote:
| >
| > > Thank you. Yes, right page despite my goof. I am using FP2000 and it does not
| > > appear to have the optimize option. Since I'm just learning, I thought I'd
| > > keep the web in 2000 until I'm more familiar with the process and have had a
| > > chance to explore 2003 with some test webs.
| > >
| > > I really appreciate your help with this ... was hesitant to mess around with
| > > the html.
| > >
| > > JDR" wrote:
| > >
| > > > Sue,
| > > >
| > > > I am assuming you are refering to this page:
| > > > http://www.hellscanyonchamber.com/cornlodge.htm
| > > >
| > > > Yes, you can remove the whitespace without any problem. FP 03 has the
| > > > option to optimize html when publishing to the destination server, but it
| > > > appears you are using FP 2000, so I believe you'll have to edit this in html
| > > > view (Can't remember if 00 has optimize option).
| > > >
| > > > JDR
| > > > *********************
| > > >
| > > > "SueF" wrote:
| > > >
| > > > > When I saw so many recommendations to use tables, I created tables and
| > > > > started moving all my text and images into them. During learning process I
| > > > > realized I should have only *one* table set up with rows & columns as needed.
| > > > > I did that, moving text and images as appropriate, then removed the extra
| > > > > tables.
| > > > >
| > > > > Now I notice (example:
| > > > > www.hellscanyonchamber.com/businesses/lodging/cornlodgehtm) that there are
| > > > > huge areas of white space in the html. Is it safe to remove all that? Other
| > > > > pages don't have that much white space between the sections of code.
| > > > >
| > > > > Thanks for advice.
| > > > > --
| > > > > Sue
 
M

Miklos

But dreamweaver has a real time code cleaner. I think Front Page could have
something similar to it.
 
T

Tom Pepper Willett

Submit your suggestion to MS:
https://support.microsoft.com/common/survey.aspx?scid=sw;en;1208&showpage=1&ws=search
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
How to ask a newsgroup question:
http://support.microsoft.com/kb/555375
===
| But dreamweaver has a real time code cleaner. I think Front Page could
have
| something similar to it.
|
|
| "Stefan B Rusynko" wrote:
|
| > Because many of the optimizations would make your FP web non-functional
in FP (depending on which design time / run time components
| > you used)
| > - and good luck "editing" a page in Code view w/ all white space removed
from the code
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Why can't they get Front Page to optimize as a TOOL instead of during
| > | publishing?
| > | It would be more useful.
| > |
| > |
| > | "JDR" wrote:
| > |
| > | > Sue,
| > | >
| > | > As Tom mentioned, feel free to work with the html, it's how you
learn.
| > | >
| > | > Just create a directory (Folder) in your FrontPage web called
"Backup", copy
| > | > the file you are going to work on into the Backup directory. Now
work with
| > | > your file and when ready to go to File > Preview in Browser.
| > | >
| > | > If everything is functioning properly, publish to your destination
server
| > | > and then test it again.
| > | >
| > | > If for some reason the file gets messed up and you aren't sure what
to do,
| > | > you just restore it with your backup..
| > | >
| > | > When developing sites it is also important to understand what the
code is
| > | > doing, and being comfortable within the html view is the first
step..
| > | >
| > | > Have fun and remember it's only code, your house will not blow up if
you
| > | > make a mistake :--))
| > | >
| > | > JDR
| > | > **************
| > | >
| > | > "SueF" wrote:
| > | >
| > | > > Thank you. Yes, right page despite my goof. I am using FP2000 and
it does not
| > | > > appear to have the optimize option. Since I'm just learning, I
thought I'd
| > | > > keep the web in 2000 until I'm more familiar with the process and
have had a
| > | > > chance to explore 2003 with some test webs.
| > | > >
| > | > > I really appreciate your help with this ... was hesitant to mess
around with
| > | > > the html.
| > | > >
| > | > > JDR" wrote:
| > | > >
| > | > > > Sue,
| > | > > >
| > | > > > I am assuming you are refering to this page:
| > | > > > http://www.hellscanyonchamber.com/cornlodge.htm
| > | > > >
| > | > > > Yes, you can remove the whitespace without any problem. FP 03
has the
| > | > > > option to optimize html when publishing to the destination
server, but it
| > | > > > appears you are using FP 2000, so I believe you'll have to edit
this in html
| > | > > > view (Can't remember if 00 has optimize option).
| > | > > >
| > | > > > JDR
| > | > > > *********************
| > | > > >
| > | > > > "SueF" wrote:
| > | > > >
| > | > > > > When I saw so many recommendations to use tables, I created
tables and
| > | > > > > started moving all my text and images into them. During
learning process I
| > | > > > > realized I should have only *one* table set up with rows &
columns as needed.
| > | > > > > I did that, moving text and images as appropriate, then
removed the extra
| > | > > > > tables.
| > | > > > >
| > | > > > > Now I notice (example:
| > | > > > > www.hellscanyonchamber.com/businesses/lodging/cornlodgehtm)
that there are
| > | > > > > huge areas of white space in the html. Is it safe to remove
all that? Other
| > | > > > > pages don't have that much white space between the sections of
code.
| > | > > > >
| > | > > > > Thanks for advice.
| > | > > > > --
| > | > > > > Sue
| >
| >
| >
 
P

P@tty Ayers

And I use that thing about every five minutes all day. :)

--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
 
R

Ronx

A limited code optimiser is available at any time - in Code View, right
click and choose Optimise HTML.

The Optimise HTML function basically removes unnecessary code from the HTML.
The code removed can be comments, leading spaces (used to indent tags and
make the code more readable for editing) and the bloat inserted into web
pages by Word.

Great care is required when optimising. Removing all comments, for
example,
makes a published web site useless for backup purposes (in case your local
copy is lost or corrupted) since it will also remove the comments defining
webbots (include files and the like). Also removing all whitespace can
make
the page unusable in some browsers. NN4 cannot cope with line lengths
greater than about 4000 characters - removing all whitespace removes all
the
carriage returns from the HTML code, making one very long line of code.

In my opinion, the safest optimisation that should be done is:
Remove leading whitespace
Remove Generated HTML - Generator and Prog Id Tags
Remove Generated HTML - Word HTML

Removing anything else could damage the site, or impair its use as a
backup.
 

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