|
Posted by Harlan Messinger on December 15, 2006, 9:08 am
Please log in for more thread options
Kent Feiler wrote:
> I wonder if <p> should be included in the list of devalued html tags.
> As far as I can see it's nothing more than a <div> followed by a
> <br /> and it has the big disadvantage that <p> forces a following
> blank line which is often not what you want in writing. You can't, at
> least not in an obvious way, produce dialogue such as:
>
> xxxxx yyyyyyy zzzzzzzzz aaaaaaaaaa
> bb ccccccccc ddddddddd eeeeeeeeeee
> ffffffff gggggggg hhhhhh iiiiiiiiiii
> jjjjjjjjj kkkkkkkkkkk lllllllll mmmmm
> nnnnnnnnnnn oooooooo ppppppppppp
> qqqqqqqqqqqq rrrrrrrrrr
>
> sssssssss ttttttttttt uuuuuuu vvvvvvv
> wwwwwwwwww
>
> ...using <p></p> tags around the first three paragraphs. <div></div>
> however with some CSS including say, "text-indent:2em;" for the second
> two <div>s does it easily.
>
Sure, and you can do without heading tags <h1> through <h6> by just
using <div> and setting the fonts. And you can make a list without the
<ul> and <li> tags by just using tables and a bunch of bullet
characters. But that's missing the point.
HTML markup isn't about making the page look a particular way. It's
about describing the makeup of your page, because that information is
useful to browsers, to search engines, and so on. Browsers have a
default presentation for each bit of HTML markup; they put a margin on
<p> elements, for example, because it's a reasonable default
presentation, not because there's a rule that defines <p> to mean "skip
a line". The margin doesn't even have to *be* the equivalent of exactly
one blank line.
CSS is used to set the appearance differently from the browser's
default. You can use it to indent your paragraphs, space them
differently from browser defaults, make the first letter three times as
large, etc.
|