Forum Moderators: mack
This is an example of bloated html:
<p align="left"><font face="Arial, Helvetica, sans-serif"><strong>This is some text.</strong></font></p>
<p align="left"><font face="Arial, Helvetica, sans-serif"><strong>This is another paragraph of text.</strong></font></p>
<p align="left"><font face="Arial, Helvetica, sans-serif"><strong>This is the last paragraph of text.</strong></font></p>
Using CSS, you could display the above paragraph in this manner.
<style type="text/css">
p{
font-family: Arial, Helvetica, sans-serif;
text-align: left;
font-weight: bold;
}
</style>
<p>This is some text.</p>
<p>This is another paragraph of text.</p>
<p>This is the last paragraph of text.</p>
The css styles can be held in an external file and referenced by your html document, thus leaving you with simply:
<p>This is some text.</p>
<p>This is another paragraph of text.</p>
<p>This is the last paragraph of text.</p>
A good place to learn the basics is W3schools [w3schools.com] and you can always ask questions in the CSS Forum [webmasterworld.com] when you get into difficulties.
Css also allows you to layout a site without tables.
Google for Style sheet or CSS and get a tutorial or a list of CSS element and try it, or grab one from a website to see how it works.
There are programs available for writing style sheets, but again, you have zero control over the code that is being written. This leaves you in a similar position as using a wysiwyg editor for your HTML. You just never know what are going to get.
[chami.com...]
I use Microsoft Front Page and don't do any of the coding manually. Is there a way I can use CSS without going into the html code.
There is, but there will be some limitations on what you can do through the WYSIWYG interface as opposed to switching over to HTML View and applying CSS manually.
Buz... MS FrontPage is notorious for bloated code.
Let's rephrase that to something more along these lines...
Buz... Beginning and Novice users of Microsoft FrontPage, Dreamweaver and other WYSIWYG programs are notorious for producing bloated code.
Is there a page size that you should never try to go over. I have two websites up, one averages about 6-7k and the other averages about twice that. I have one page that is essentially a long glossary page--not looked at often--that is about 35K!
Obviously the lower the better to increase your load speeds but I'm not sure if I'm doing fairly well at the 6-7K size or if I need to cut the size more to assure fast loads that don't turn people away. I've tried some "load speed testers" on the web and in programs but I get conflicting information.
Better to copy from Word, to Notepad and then into FP and then format there. Its still not perfect, but will help a lot.
If you have been doing this, do not try to fix the pages, make new ones and replace them, its much quicker than trying to clean up the mess.