<p> Tag Not Allowed In W3c Html Transitional?

Is the

tag not allowed in HTML Transitional for W3C standards? I figured that Transitionional would cut me more slack. Maybe not?

I'm referring to this declaration:

quot;-//W3C//DTD HTML 4.01 Transitional//EN" ";http://www.w3.org/TR/html4/loose.dtd">

#137835

It should. You can also use the

tag for applying syles, or the

for spacing. To be honest with you, I think only Microsoft uses the

these days. I haven't seen it in a long time, and that was in something by Microsoft.

#138009

should be valid and is intended for pieces of text.

#138033

It's just that when I validate any page with

tags using W3C's HTML validator, there are error messages saying that

is not allowed. Perhaps I ought to use

from now on to be safe with the standards. Should I use

and
instead of

and

then? How old of the IE and Netscape browsers can support

? I'm sure Mozilla always has been able to.

#138134

The difference now is that you have to close all your tags (with xhtml at least).

So you can't just use

as a spacer without doing:

You can either do that or:

paragraph-text

Also, all of this has to be contained inside a

(or maybe a , I don't remember)

#138148

I believe

has been in there since the beginning. If I'm lying then I'd say IE 3 would be other wise. Don't ask me where I got that number, I stood up and it was stuck to the chair.

#138150

yeah,

is easy, it's CSS the older browsers (NS4, IE5) have trouble with.

The hack is to link to your stylesheet, because the browsers that don't support CSS properly won't pink up the link, so won't display messed up CSS.

#138165

i belive that the

is depriciated and either

or can be used instead with the use of the

tag

in XHTML the

tag isn't allowed at all so if u plan on moving into the future of web development get in the habit of using XHTML accepted tags.

#142719

Originally posted by chimera@Apr 1 2004, 03:40 PM

It's just that when I validate any page with

tags using W3C's HTML validator, there are error messages saying that

is not allowed.  Perhaps I ought to use

from now on to be safe with the standards.  Should I use

and
instead of

and

then?  How old of the IE and Netscape browsers can support

?  I'm sure Mozilla always has been able to.

if you really want to get [a little] advanced, I'd learn some CSS (Cascading Style Sheets) and make a class that centers whatever you want to center

for instance...here is a class I use on my UCMB Website to center a table. I just use left and right margins set to auto, and that centers the table:

.photocolumn {
      background-color: transparent;
      width: 25%;
      margin-left: auto;
      margin-right: auto;
      border-width: 0px;
      color: #666666
}

hope this helps

#142721

Oh ye gods...

The paragraph (

) tag has been around since HTML 3 at least, and remains in XHTML 1.1. The div and span tags, however, are fairly new (HTML 4), and so won't be recognised be "3" browsers.

Also, don't ever count on Netscape 4.X being any help at all - treat it as a "3" browser >.<

If you didn't realise, div, paragraph, and span all have semantic uses -

  • div should be used for major divisions of the page (header, footer, body content, left navigation, etc.) and sub-dividing these into smaller "semantic" blocks (blocks whose content is strictly defined - "this is the area of the page where I put all my legal info", for example). divs may contain just text, just other elements, or some combination.
  • p should be used for paragraphs. Nothing else. Paragraphs. If it's not a paragraph of text, or something that should be part of a paragraph, then it doesn't belong in a paragraph block.
  • span should be used for applying styles to small areas of the document, and is typically the lowest-level divisor of the three - it should be used for multi-word styling, and at most, multi-line (but a p tag would likely be more suitable, unless you wish to style in the middle of a paragraph).

In other words, use p for paragraphs, and nothing else.

@wizard: You've not seen the p tag in a long time? Have you tried looking?

(If no-one noticed, those links are to the sites of four of the most respected web designers in the world)

#142759

I'm aware that we use

for paragraphs. The question created in this topic asked whether it was allowed by the W3C HTML Transitional standards, because

tags send error messages popping left and right on a validation page at the W3C.

And I generally don't like to use CSS for aligning tables. But I do use CSS heavily for everything else.

#143110