|Validating Front Page Code..|
it's really driving me nuts
| 2:10 am on Jul 10, 2002 (gmt 0)|
I generally hand code and all of my pages look great in IE 4+, NS 4+, Opera 5+, Mozilla 1 and even Web TV V?. I go to validate my code and I'm blown away by the amount of errors.
I take a clean slate and start from scratch using FP2000 and create what looks like a clone, validate that and my God what a mess.
I there a wysiwig that will even get close to being clean code and if so what the #$%^ is it, this playing by the rules is killing me.
I would prefer to use FP2000 as
1. I already own it
2. I am somewhat familiar with it
3. I bought a $40 book to show me how to create filthy code with it :)
It is not the page in my profile, I know it stinks. I am aware that no matter what wysiwyg I use I will have to manually make changes.
What do all of you use?
See y'all in the morning
| 2:43 am on Jul 10, 2002 (gmt 0)|
I gave up on wysiwyg a long time ago. I now just use textpad and code everything by hand.
| 3:20 am on Jul 10, 2002 (gmt 0)|
Gibble, that's how I started out, believing in being a purist. I still do believe that way, and would if I could. But if I had to hand code each page I'd have had to be out of it all a long time ago.
I just spent two weeks solid fighting with Dreamweaver; I kept fixing the code by hand and it kept putting in table heights. It doesn't matter on some, but with these it was the biggest hassle I've ever been through. It was unusual because of the page setups, but it does happen. So I can sympathize.
Username, hand coding is better, but from a production standpoint the best thing is to lay it out, correct the code by hand, and use the pages as a template. If you can possibly go with eliminating font tags and use CSS you automatically get cleaner code.
I know nothing about Front Page, but there are people here who use it and love it - and their code validates and does fine. They have absolutely beautiful sites. It's a matter of knowing which features to stay away from and get around and it can do a beautiful job.
If you have the program you might as well learn to use it, staying away from proprietary features and using FTP instead of FP extensions. I don't know how, but I believe it can be done.
>See y'all in the morning
Someone will be along to get you off to a start. There are some people here who know FP backwards and forwards and they'll be glad to help out.
| 4:44 am on Jul 10, 2002 (gmt 0)|
No WYSIWYG program will code exactly like a human, but they can produce clean validatable code if used wisely.
As Marcia says, as long as you stay away from most of the "Bells and Whistles" then you will have no problems. So don't use any of the Bots, Navigation, Menus, Themes or such similar as they will dirty the code somewhat.
The only "feature" I use, and others on these fora use it as well, is the Include Page function which is like a Server Side Include only it is done before you upload. Quite Nifty.
The main thing I like about FP is the site management tools which automaticall adjust links if you move/rename a page/image, check links, and so on. Great Time Savers!
So don't listen to the Nay-Sayers too much, just learn the program, understand what works and what doesn't, and go from there.
| 4:49 am on Jul 10, 2002 (gmt 0)|
> Username, hand coding is better, but from a production standpoint the best thing is to lay it out, correct the code by hand, and use the pages as a template. If you can possibly go with eliminating font tags and use CSS you automatically get cleaner code.
I'm one of those FP Groupies. I've been using it since 1996 and have managed to figure out where the bugs are and what not to use. I've been through all of the version upgrades and am now using FP2002. Marcia hit it dead on with build a template page and then work from there.
The very first thing you need to do is set your page preferences. You do this by going to...
Tools > Page Options > HTML Source
The HTML Source tab is where you can make or break your web. Years ago I got away from the typical tabbed or indented html layout. I now use a left justified layout and will use comments when necessary to separate content.
I have my Page Options set up like this...
· Tags names are lowercase (Checked)
· Attribute names are lowercase (Checked)
· Allow line breaks within tags (Unchecked)
· Indent: 0 spaces
· Right margin: 2000 characters (prevents wrapping)
You want to make sure that the allow line breaks within tags is unchecked. If checked, you will typically run into the hanging </p> or </td> (if using tables) tags which cause spacing problems within your copy. I also feel that unbroken tags provide a cleaner path for the search engine spiders, its just a theory!
| 5:20 am on Jul 10, 2002 (gmt 0)|
I am a relative newby to FP, self-taught, and had to go through the traditional hair-pulling and head-banging necessary to get to a place where I am relatively comfortable with it, and also produce code that validates. In a way, the initial frustrations actually forced me to learn things I might not have otherwise learned. The fact that FP is frequently sloppy with its code generation pushed me to learn to hand code, or at least hand edit, something that I originally had no intention of doing.
Next is CSS2 and XHTML - eventually.
|brotherhood of LAN|
| 11:46 am on Jul 10, 2002 (gmt 0)|
From what I have used of FP2000, I think there may be some "mainstream" issues involving validation that other FP users may be able to chip in with.
It all stems from their "new page" template that lacks a DTD, and has some FP head tag fluff in it.
You will probably find that frontpage makes the same bad code again and again. IMO, the most annoying one is allowing FP to create a table where it adds more than a simple <table> ........you may get something like
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="171" height="95" id="AutoNumber1">
Pretty sad from a hand coders point of view!
Another thing I have noticed is that sometimes FP missed your opening <p> tag or forgets to close one.
I may recall other "probs brought on by FP" but no more as of yet!
One thing I recomment with FP is the Format > Style option. Save yourself a blank page with the .css extension then open the page in FP. You can create your CSS here and worry less about tags in your Frontpage daily duties because they are all pre-defined and is a matter of you putting in <table> <p> <div> or whatever. This way FP doesnt get a say in which code to put in, because you have already force fed the "style code" through a style sheet.
In general, through my use of FP I have continually broken down the components of information on a web site (just like Woz mentions with the FP includes) where a "mistake" can be corrected once and not have to be worried about site-wide.
All in all, FP and validation are not exactly hand in hand.....which may be a good thing, because it more or less forces you to get your hands dirty with the code (which is the road I'm went/going down).
One thing you may want to do is create a blank validating page with all the mandatory HTML you usually use and save it as a Frontpage Template for your own future use.
| 12:06 pm on Jul 10, 2002 (gmt 0)|
You folks are great, I have to say this. Once again the quality of responses are great. A HUGE help:)
Thats my problem, I am a purist (until very recently all of my stuff was done by hand) but now I have so many projects I need to increase my productivity.
I think that learning CSS and the template idea will get me far and I will also try all of those formatting ideas pageoneresults. I actually miss not getting my hands dirty so to speak with coding but alas I have run out of the time to be able to do it.
Thanks for the replys and think good thoughts.