Reply to Re: Dreamweaver or Frontpage or Plain HTML

Your name:

Reply:


Posted by GreyWyvern on 01/13/06 17:37

And lo, Stewart Gordon didst speak in
alt.html,alt.www.webmaster,comp.infosystems.www.authoring.html:

> GreyWyvern wrote:
>
>> *My* point is that the article *recommends* using the second given code
>> snippet above as a replacement for the WYSIWYG code. *Both* examples
>> are horribly bloated.
>
> No it doesn't. Read the sentence that introduces the second code
> snippet again (assuming you ever read it at all), especially the first
> two words of it.

Here, I will quote you the relevant part of the article with my reponses:

"This whole big mess of code [the WYSIWYG block] serves only to insert a
blank paragraph for vertical spacing, accomplishable via <P></P>. All the
other tags are useless."


According to the spec, empty <p></p> tags should be ignored completely.
This is error #1: *All* the tags listed are useless.


"They're added because the editors are so dumb that if you have stuff like
font settings enabled they insist on adding them even to blank spaces. The
editors are also pretty dumb about failing to collapse redundant tags.
Even if the various font changes above were actually needed to make sure
that blank space was rendered correctly, you could have done it with:

<P ALIGN=CENTER><FONT FACE="Arial,Helvetica" SIZE="+1"
COLOR="red"><B>&nbsp;</B></FONT></P>"


This is error #2. This is certainly not the furthest you could distil an
empty paragraph tag down to while including all of the formatting given
above. The correct replacement would be:

CSS:
p.empty {
text-align:center;
font:bold 110% Arial,Helvetica;
color:red;
}

HTML
<p>&nbsp;</p>

However, even this is spurious, since the entire section of code, both CSS
and HTML, is completely unnecessary. You may respond to this saying:
"Hey, it was only an example to collapse redundant tags, not a
recommendation as to what coders should actually use." Aha, well, I offer
you the next paragraph of the article:


"Note how the three different centering tags were reduced to an attribute
of the single paragraph tag, and the three different font settings were
made into attributes of one FONT tag. This produces a shorter, cleaner,
more logical piece of code, showing the advantages of coding by hand
instead of using some silly editor!"


So, with this confirmation, WYSIWYG'ers come away with the idea that the
use of the tags above is both correct and acceptable. This is not a good
thing.

>> No. I think that if someone is going to switch from WYSIWYG to
>> hand-coding, they shouldn't start with WYSIWYG code and prune down from
>> there. Rather they should start with a blank text editor (and perhaps
>> an HTML/CSS reference guide or two) and work their way up.
>
> Assuming that, if they had made it look very "fancy" in the WYSIWYDG,
> then they don't mind that the site'll look more basic until they've
> learned the particular bits of CSS to achieve the desired level of
> fanciness.

"Fanciness" is overrated. Accessibility isn't.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/orca#sear - Orca Search: Full-featured spider
and site-search engine

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация