Re: You've gotta love vb6
- From: "Jim Carlock" <anonymous@localhost>
- Date: Thu, 1 Feb 2007 13:57:00 -0500
"mayayana" posted...
: I see your point about the problems from sloppy
: structure. I just thought it's worth also remembering
: the whole point of the code.
<snip>...</snip>
It doesn't take all that much to write good HTML.
There's a nice little app at http://tidy.sourceforge.net/ that
helps out in this regards. It's called "tidyui". It's a dated
app that someone spent some time working on and it works
very well. You need to spend a little time learning some of
the technical jargon and how some of the options affect
affect the rewriting of the code, but once that's done it's a
rather marvelous tool for hand manipulating one page at a
time.
In fact, I propose that the following statement serves all
VB5/6 developers well...
Writing proper HTML is as easy as adding Option Explicit
to top of every page.
And the there are many free tools that already exist that help
out.
The XHTML rules come across pretty simple and the HTML
validator helps quite a bit in this regards.
(1) ALL HTML tags get set in lowercase.
(2) ALL HTML tags are either self-closing or tag-closing
and all tag-closing elements get a proper closing tag.
Self-closing tags end in "/>" or " />". Alot of people
include the space before the slash, but it's not required.
(3) ALL HTML documents require a DOCTYPE tag at the
top.
If you follow those three simple rules, the only thing that
you might run into problems with involve improperly
nested items. http://validator.w3.org/ handles the improper
nesting very well.
There might be a couple extra rules out there, those above
represent the ones I recall from memory.
Now, that said, IE is the buggiest browser I've written
HTML/CSS for. Whenever I mess with HTML I must
employ hacks to get IE to render it properly. Many need
to write various hacks or employ server side code to
detect an IE browser and change which sets of CSS get
delivered to an IE browser.
HTML life... design for Mozilla, hack to get IE to render
properly.
Life at Microsoft... design with bugs, then manage and hack
to create bugs which lead to needs to upgrade.
Hope this offends no one. Written out of and for pure
enjoyment.
--
Jim Carlock
Post replies to the group.
.
- Follow-Ups:
- Re: You've gotta love vb6
- From: Bob Butler
- Re: You've gotta love vb6
- Prev by Date: Re: Populating ComboBox
- Next by Date: Re: 10 to 20 item optimizer?
- Previous by thread: Re: Syntax Error
- Next by thread: Re: You've gotta love vb6
- Index(es):
Relevant Pages
|