rf said:
Neal
<h1> is a tag. It is the opening tag for the h1 element. The h1 element
also
has some content and a closing tag.
So the element is delimited by a tag or pair of tags, no?
The middle bit is very important. The content is not some content on the
"page" with <h1> and </h1>tags wrapped around it. It is the content of
the
h1 element.
Yes, the tag(s) plus the content (if not empty) comprise the element.
When talking about the "contents" of an HTML page we talk about the
elements
that make up that page, not the tags, which are a part of the elements.
Indeed.
An HTML tutorial should be talking about elements and how they interact.
It
should not have as its major emphasis, and in its opening paragraph, a
discussion of tags. That bit comes when we discuss what an element is.
Hmm. It would seem to me that using "tags" in a description would be
better bait than "elements" considering "tag" is a term more people have
heard of.
Of course, I agree with you rf, but using the term 'tag" isn't cause
enough to trash a site.
This confusion (coupled with the misconception that tags are actually
"commands")
Well, that's a separate issue, isn't it?
leads to things like:
<b>bold<i>bold italic</b>italic</i>
This is of course wrong but it "does" mean something if you think about
tags, or "commands" It does not make any sense at all if you think about
elements.
Well, it depends on how "tags" are taught.
In my formative days, I thought of "tags" as on-off switches. This is
probably prevalent, and certainly wrong. After I learned more, I realized
that "tags" had to be nested properly, and I began learning the rules of
nesting.
Later on I learned of "elements". I don't regret it, and I agree that
speaking of "tag" only in a paragraph about "elements" s better. But don't
be deluded into thinking that "tag"-related understanding necessarily
equates to poor nesting.
Devil's Advocate role aside, I still think that "tags" is only a
four-letter word in count only. And that any good primer should mention
"element" nore than "tag", which you did not indicate the site in
questiuon failed to do.