html

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I know this isn't a FP question, but I thought that some of you guys might
be able to help since your so good with code. I'm looking for a good book
that explains html really clear. Maybe a xhtml book because I know that
everyone is changing to cleaner code and the code on my website is really
messy. Does anyone here know any good books?
Thanks
 
Questions:

Why do you consider the code on your web site to be messy?

What is cleaner code?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Because http://validator.w3.org/check?uri=www.bahamalouie.com (68 errors) and
lots of people have told me. Website that validate with W3 Validator are
considered cleaner code (IMO).
--
Louis Johnson MFB
Microsoft Frontpage Beginner
http://www.Bahamalouie.com


Thomas A. Rowe said:
Questions:

Why do you consider the code on your web site to be messy?

What is cleaner code?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
1. You need to add a DOCTYPE if you want to validate your pages.

2. The validators will always flag FP tags, which in most cases to do not have any impact on your
pages being displayed, however these issue are fairly easy to resolve by not using those FP
features.

4. You can eliminate many of the current errors by removing the dynanimation and adding alt and
title text to your images.

Plus you pages (at least your home page) has:

multiple body tags
multiple   (from using the space bar)
multiple :
</font><font size="1"><a href="http://www.bahamalouie.com">
<font color="#C8D9E1">BahamaLouie</font></a></font><font color="#C8D9E1" size="1"><br>

Need to study up on working with tables and CSS. Suggest you start over on this page.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Louis said:
Because http://validator.w3.org/check?uri=www.bahamalouie.com (68 errors) and
lots of people have told me. Website that validate with W3 Validator are
considered cleaner code (IMO).
 
With respect to "clean code", the only thing that w3c validation does
is say that the code
validates. Code I consider "messy" can validate perfectly, and very
clean code (again, my definition) can fail with several errors.
Question - what is clean code? w3c validation is not the answer.

Look at tutorials on www.w3schools.com

Looking at your page, there are many errors, some of which will not be
picked up by w3 validation:
no !doctype.
XHTML coding mixed in with HTML3.2 coding
Multiple instances of Spawn script - one instance is enough.
Multiple </body> tags - one is the maximum you are allowed. (this will
be picked up by w3c)
Remove spaces from file and folder names. Spaces break links in some
browsers.

Create an external CSS and style those parts where you are using <font
tags.
Move all inline styles into the external CSS.
Delete the code that starts
<font size="1"><a href="http://www.bahamalouie.com">
<font color="#C8D9E1">BahamaLouie</font></a></font>
Search engines will penalise your site, and it will confuse anyone who
accidentally clicks on one of those links.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Louis said:
Because http://validator.w3.org/check?uri=www.bahamalouie.com (68
errors) and
lots of people have told me. Website that validate with W3 Validator
are
considered cleaner code (IMO).
 
What features in FP use those tags? Ok I'm going to learn CSS and redo my
website again.
Thanks
 
I tend to disagree with this, but understand that it really depends on your
client base and the kinds of pages you build.

For me, if I ever start having layout problems, my first stop is the W3
validator. More often than not, my layout problems are caused by a stupid
mistake, that I just can't see. In my perspective, clean code is code that
is much simpler to maintain. That's important to me. Your mileage may
vary.
 
In my perspective, clean code is code that is much simpler to
maintain.
I agree with this 100%.

I have simply pointed out that "messy" code can validate against w3c
recommendations, and "clean" code may not. Validation (for the sake
of validation) says nothing about how easy it is to maintain.
 
Ronx said:
With respect to "clean code", the only thing that w3c validation does is
say that the code
validates. Code I consider "messy" can validate perfectly, and very
clean code (again, my definition) can fail with several errors.

You're right about that, but - (see below) -
Question - what is clean code? w3c validation is not the answer.

This isn't a logical conclusion to draw, to throw the baby out with the
bathwater. The W3C validator still can be a good indicator of how your code
is doing, and as such is an important tool.
 
Back
Top