/    Sign up×
Community /Pin to ProfileBookmark

Here is some sample information:

[CODE]
1. Thrust
(4-0)
8. Blanks
[/CODE]

Now should the markup be

[code=html]
<p>1. Thrust</p>
<p>(4-0)</p>
<p>8. Blanks</p>
[/code]

or

[code=html]
<div>1. Thrust</div>
<div>(4-0)</div>
<div>8. Blanks</div>
[/code]

considering the lines aren’t really paragraphs?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@svidgenDec 17.2009 — P should really only be used for strictly textual "paragraphs." They should not contain other block-level elements. And even then, I'd prefer the DIV over the P. Default styles and restrictions on P's have given me some troubles in the past ...
Copy linkTweet thisAlerts:
@tracknutDec 17.2009 — I realize it isn't on your list of options, but if anything, that looks like a [B]list [/B]of things, to me.

Dave
Copy linkTweet thisAlerts:
@svidgenDec 17.2009 — Blasphemy!
Copy linkTweet thisAlerts:
@FangDec 17.2009 — The global structure of an HTML document -> div

Text -> p

Definitely the p element, unless the OP explains why random these characters appear on a page?

EDIT

http://fba.furtopia.org/History/playoffs.php?year=2009

list or table
Copy linkTweet thisAlerts:
@Mr_Initial_ManauthorDec 18.2009 — I realize it isn't on your list of options, but if anything, that looks like a [B]list [/B]of things, to me.

Dave[/QUOTE]


Well, if it were in a list, it would be like this:

[code=html]
<li>
<div class="team1">1. Thrust</div>
<div class="games">(4-0)</div>
<div class="team2">8. Blanks</div>
</li>[/code]


or

[code=html]
<li>
<p class="team1">1. Thrust</p>
<p class="games">(4-0)</p>
<p class="team2">8. Blanks</p>
</li>[/code]
Copy linkTweet thisAlerts:
@CFHuttonDec 18.2009 — I have no idea what those pieces of text have to do with each other, so no way to give you a suggestion on how to treat them.
Copy linkTweet thisAlerts:
@unigogoDec 19.2009 — I think either is acceptable.
×

Success!

Help @Mr_Initial_Man spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...