|
Posted by John Hosking on 12/27/07 08:04
charles cashion wrote:
> John Hosking wrote:
>> Only a bit. I was actually trying to point out that HTML isn't a
>> programming language.
>
> I have re-read my original post. I called my program an
> html program. In our shop, we write "assembly language
> programs" and "C programs" and
Fine; that's what they are. Assembly and C are programming languages.
> "html programs"
HTML is for markup. It's hardly worth calling a language, but there's
that "L" in its name, and its language-ness is fodder for a separate
discussion (or argument). But it's not for programming. HTML is for Web
pages. I don't consider anything written in HTML a program, even if it's
got some scripting (e.g., JavaScript) or animated content (e.g. Flash)
or, yes, a <form> in it (the programming in that case is server-side).
The HTML is just marked-up content. If your shop talks about "HTML
programs," now is a good time to get out of that sloppy habit and start
talking about "HTML pages" or "HTML documents" instead. I do use "HTML
code", but it still doesn't result in a program.
> and under
> dire circumstances, "machine language programs". Would
> it would be better if I said, "program written in html",
> "program written in assembly language", etc.?
>
>> and -- silly, pedantic me, I just can't help myself -- with a closing
>> </font> tag as well. They started with "<" as well.
>
> John. The program that I originally posted had six
> instances of <font... and six instances of </font>.
Yes, I see that you're right. I think I got thrown off by quickly
skimming the <font face="Times New Roman" size=6> (which also
appears six times).
>
> < is in entity. An html interpreter (aka browser)
> will produce a < glyph when it comes to it. i.e. it
> will be displayed like any other text.
Yeah, I see what you meant now. Just reading your posted code, before
you gave the URL, I just saw "broken" code, not the text you wanted in
the rendered page. My mistake.
>
> *QUESTION* How did you determine that it has 2 errors
> and a warning?
Via the W3C markup validator at http://validator.w3.org/check .
They have a CSS validator at http://jigsaw.w3.org/css-validator/ .
I get to both with a clck of my mouse when in Firefox via the Web
Developer Toolbar add-on, which I find indispensible. MS has something
similar (basically copied wholesale, but styled differently) for IE7.
http://chrispederick.com/work/web-developer/ has the Web Developer
extension. Search microsoft.com for their IE extension.
--
John
Pondering the value of the UIP: http://improve-usenet.org/
[Back to original message]
|