Click here to get back home

is it acceptable to put a UL inside of a paragraph??

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
is it acceptable to put a UL inside of a paragraph?? lawrence 10-01-2004
Get Chitika Premium
Posted by lawrence on October 1, 2004, 11:01 am
Please log in for more thread options
I have a list of lists, and each lists has a heading. I want the
heading to be grouped with its list. Can I do this:

<p>
<h5>My title</h5>
<ul>
<li>books</li>
<li>dogs</li>
</ul>
</p>

<p>
<h5>habits</h5>
<ul>
<li>dancing</li>
<li>lauging</li>
</ul>
</p>


Posted by Neal on October 1, 2004, 2:55 pm
Please log in for more thread options

> <p>
> <h5>My title</h5>
> <ul>
> ...
>
> <p>
> <h5>habits</h5>
> <ul>
> ...

You've gotten good responses, but I want to point out something different.

Are you choosing h5 doe to its rendering on screen or because it's really
the fifth most important heading on the page? Generally, we assign one h1
to a page, sections of the page get h2, and sub-sections h3. h5 would
therefore be used for a sub-sub-subsection. In practice, h4, h5 and h6 are
rare, rarer, and rarest, respectively.

This is not an HTML rule per se, but simply a good practice for organizing
content for UAs which might do a table of contents automatically based on
headings, for example. h5 might actually be totally appropriate, but
consider this.

If the method of choosing the heading I suggest leads you to a heading
that doesn't look right to you on screen, use CSS to alter the rendering.


Posted by lawrence on October 1, 2004, 6:08 pm
Please log in for more thread options
>
> > <p>
> > <h5>My title</h5>
> > <ul>
> > ...
> >
> > <p>
> > <h5>habits</h5>
> > <ul>
> > ...
>
> You've gotten good responses, but I want to point out something different.
>
> Are you choosing h5 doe to its rendering on screen or because it's really
> the fifth most important heading on the page? Generally, we assign one h1
> to a page, sections of the page get h2, and sub-sections h3. h5 would
> therefore be used for a sub-sub-subsection. In practice, h4, h5 and h6 are
> rare, rarer, and rarest, respectively.

I've trouble ranking all the info on the page. How much of the detrius
of logos, template links and icons, and results information should be
given a weight in the ranking? I stumble on questions like this. I was
thinking that this info was the 5th most important on the page, but I
could also turn around and say all the headers should be h2. Hard to
judge.


Posted by Neal on October 2, 2004, 2:16 am
Please log in for more thread options

> I've trouble ranking all the info on the page. How much of the detrius
> of logos, template links and icons, and results information should be
> given a weight in the ranking? I stumble on questions like this. I was
> thinking that this info was the 5th most important on the page, but I
> could also turn around and say all the headers should be h2. Hard to
> judge.

Consider how your page would look if it was old-school - just paragraphs,
headings, lists, and links and other necessary inline markup. No
modern-looking layout (whether table-based or CSS), no images (!), no
script, no nothing. The answers will be easier to find that way.

In fact, I author my page that way to start, using hierarchical headings
and paragraphs, lists, etc. Once it is finalized, I then add images
(replacing content the image duplicates, as needed), add any needed
scripting (which will never need to be there for the page to work), apply
CSS to layout the page, change what the headings look like as needed, etc.
etc. In the no-CSS environment, the page degrades to something quite
usable. And of course, in the CSS environment it (ideally) looks pretty
much like you expected.


Posted by Darin McGrew on October 1, 2004, 6:10 pm
Please log in for more thread options
> I have a list of lists, and each lists has a heading. I want the
> heading to be grouped with its list. Can I do this:
>
> <p>
> <h5>My title</h5>
> <ul>
> <li>books</li>
> <li>dogs</li>
> </ul>
> </p>

No. The P element cannot contain block-level elements like H5 and UL. It
can contain only inline (text-level) elements.

But since this is "a list of lists", you can nest lists:

<ul>
        <li>
                <h5>My title</h5>
                <ul>
                        <li>books</li>
                        <li>dogs</li>
                </ul>
        </li>
        ...
</ul>
--
Darin McGrew, darin@TheRallyeClub.org, http://www.TheRallyeClub.org/
A gimmick car rallye is not a race, but a fun puzzle testing your
ability to follow instructions. Upcoming gimmick car rallye in
Silicon Valley: Monstah Mash 2004 (Saturday, October 2)


Similar ThreadsPosted
406 Not Acceptable - The new frames! February 26, 2006, 3:54 pm
Paragraph exceeding div boundary March 6, 2005, 2:11 pm
Closing paragraph tag required? May 18, 2006, 8:00 am
Re: Amount of space after

paragraph tag.

December 2, 2007, 7:44 pm
Re: Amount of space after

paragraph tag.

December 2, 2007, 8:05 pm
Centered fragment in a paragraph June 3, 2008, 3:53 pm
center a picture in the middle of a paragraph December 2, 2004, 10:14 pm
Re: Is it acceptable to post a URL to request review of Userability? October 11, 2007, 1:49 am
Re: Is it acceptable to post a URL to request review of Userability? October 14, 2007, 7:17 am
Blank lines and paragraph break in html May 10, 2007, 10:31 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap