But most of the time I see
<div> tags used where a
<p> or some other tag that actually has
meaning would be better. The problem with (or the point of)
<div> and
<span>. tags is that they don't have any meaning.
This means that you are putting information (content) in a 'block' that appears to have no meaning at all.
Though I can see the use of the construct in some cases, just applying <div> and <span> anywhere you want a layout change is bad practice.
For instance, this:
<p>
<span class="bold">Some header</span><br>
Some paragraph.
</p>
Is much better written:
<h3>Some header</h3>
<p>
Some paragraph.
</p>
- Don't laugh too hard at the above example, I've seen plenty of this in real sites made by supposedly professional companies.
Joost.
--
#!/usr/bin/perl -w
use strict;$;=
";Jtunsitr pa;ngo;t1h\$e;r. )p.e(r;ls ;h;a;c.k^e;rs
";$_=$;;do{$..=chop}while(chop);$_=$;;eval$.;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.