To be honest, I learned myself coding with FrontPage (an old version on a floppy, included in a computer magazine).
First just using the design view and the prefab FP buttons. Then I started to look “under water” in the code view, to see what was really happening in the code. That was interesting, but I didn’t understand everything. Next step: learning with Google!
On the web and in forums I discovered that FrontPage had some build-in errors. And more and more I went into the code view to make the code myself without the FP failures. In the meantime I’d read about “CSS” (Cascade Style Sheets), which was an eyeopener.
Instead of putting all styling things into a messy html, you can split it in a clean html page and a connected stylesheet with all the design matter.
And more: a stylesheet can be used for more than 1 page: it is recyclable. That means: no more typing of repeated styling code in each page (for the header, the menu-styles, the font-sizes etc.), but once for all. What is very easy too: ion case you decide some time to change the style (for instance: a new background image, or an other font type), you can do that in the 1 stylesheet, and whoooosh, it’s applied in all pages. Wonderful!
So I can advise you to go over to hand-coding the html, and to step in the world of CSS.
But I think words only aren’t enough, and made an example for you: the contact page in a new coat.
Comparing the code
The FrontPage emission:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META HTTP-EQUIV="Content-Language" CONTENT="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" Content="rainbowsedgefineart.com offers fine art for sale">
<TITLE>contact</TITLE>
<meta name="Microsoft Theme" content="clearday 011">
</HEAD>
<BODY id="main_body" background="_themes/clearday/cdbkgnd.jpg" bgcolor="#FFFFFF" text="#000000" link="#0033CC" vlink="#6699FF" alink="#00CC33"><!--mstheme--><font face="Verdana, Arial, Helvetica">
<p align="center"><img border="0" src="rainbows-edge-2.jpg" width="391" height="92" alt="Rainbow's Edge Fine Art logo"><font color="#0000FF" face="Arial" size="2"><a href="contact.htm"><br>
</a></font></p>
<h1 align="center"><!--mstheme--><font color="#000099">
<b><font color="#0000ff" size="6" face="Verdana">CONTACT THE ARTIST</font></b>
<!--mstheme--></font></h1>
<p align="center"><font face="Verdana, Arial, Helvetica"><font size="2"><a href="index.htm"><font face="Arial">Home</font></a><font face="Arial"> </font>
<font color="#0000ff" face="Arial">| <a href="bio.htm">Bio</a>
<a href="http://users.smartgb.com/g/g.php?a=s&i=g18-00040-d7"><br>
</a></font>
<font size="3" face="Arial"><br>
</font><b><font size="4" face="Arial"><i>To make an offer for Irene's artwork or
to get more details about purchases, contact the artist at:</i></font></b>
</font>
<p align="center"><font face="Verdana, Arial, Helvetica"></p>
<div align="center">
<!--mstheme--></font><table cellSpacing="0" cellPadding="10" width="60%" bgColor="#EBEBEB" border="1" bordercolordark="#6699FF" bordercolorlight="#99CCFF">
<tbody>
<tr>
<td align="center"><!--mstheme--><font face="Verdana, Arial, Helvetica">
<p align="center"><font size="4" face="Arial"><b>Irene Nowicki</b><br>
</font><font size="3" face="Arial">17950 Burbank Blvd.<br>
Suite 21<br>
Encino, CA 91316-1673</font></p>
<!--mstheme--></font></td>
<td><!--mstheme--><font face="Verdana, Arial, Helvetica"><p align="center" style="line-height: 150%"><font size="3" face="Arial">Studio: 818-757-3022<br>
Cel: 818-770-9439<br>
</font>
</font>
<font size="3" face="Arial"><a href="mailto:.......">.......</a></font></p>
<!--mstheme--></font></td>
</tr>
</tbody>
</table><!--mstheme--><font face="Verdana, Arial, Helvetica">
</div>
<!--mstheme--></font></body>
</html>
The html of the new version:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rainbow's Edge Fine Art | Contact the artist</title>
<meta name="description" content="Contact options for the artist of RainbowsEdgeFineArt.com">
<link rel="stylesheet" type="text/css" href="stylesheets/refa.css" />
</head>
<body>
<div id="header">
<a href="http://rainbowsedgefineart.com/"><img src="http://clba.nl/sitepoint/images/refa-logo-nw.png"
width="290" height="100" alt="Rainbow's Edge Fine Art logo" title=""></a>
</div>
<p id="nav"><a href="/">Home</a> | <a href="bio.htm">Bio</a></p>
<h1>CONTACT THE ARTIST</h1>
<p><strong><em>To make an offer for Irene's artwork<br>
or to get more details about purchases,<br>
contact the artist at:</em></strong></p>
<div>
<span class="box">
<strong>Irene Nowicki</strong><br>
17950 Burbank Blvd.<br>
Suite 21<br>
Encino, CA 91316-1673
</span><span class="box">
<strong> </strong><br>
Studio: 818-757-3022<br>
Cel: 818-770-9439<br>
<a href="mailto:...">.......</a>
</span>
</div>
</body>
</html>
And this is in the connected stylesheet:
/* refa.css */
/* rainbowsedgefineart.com */
html {
height: 100%;
padding-bottom: 1px;
}
body {
margin: 0;
padding-bottom: 10px;
background: url(http://clba.nl/sitepoint/images/refa-bg-nw.jpg);
font-family: arial, helvetica, verdana, sans-serif;
text-align: center;
font-size: 100.1%;
}
#header {
padding: 25px 0 0 0;
}
a img {
border: 0;
}
h1 {
color: blue;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 2em;
}
#nav {
color: blue;
}
#nav a {
margin: 0 5px;
}
p {
margin: 1em;
padding: 0;
}
.box {
width: 15em;
margin: 5px -2px;
padding: 1em 0;
background: #EBEBEB;
border: 2px ridge #C0C0C0;
display: inline-block;
}
What I did with the html:
Some other benefits of the new version, because of the flexibility of css:
- The page can be viewed in each screen size from small to big:
[CENTER][/CENTER]
- Page-size html (0,7kB) + stylesheet (0,4kB) together: 1,1kB. - That is less than the half of the old html-only version (was: 2,6kB)!
Extra:
Page speed new version (with the css and the new images): ca. 570ms for total 16,3kB (was: ca. 1.25sec for total 23.7kB).
Download time decreased with 55%.