Everything2
Near Matches
Ignore Exact
Full Text
Everything2

UL

"UL" is also a: user

created by jamesc

(place) by servus (4.9 y) (print)   ?   Sun Feb 18 2001 at 19:59:33

What people call the Cambridge University library. Designed by Giles Gilbert Scott - the man who designed those red phone boxes and the Bankside power station (now the Tate Modern), it looks like an odd combination of the two.
It's big, very very big (and they're currently making it larger), due to it being a copyright library, and able to claim a copy of every book published in the UK. You'd think that with 11 million books you would be able to find the one you need, but you can be sure of someone having signed it out already.

(thing) by in10se (1.2 min) (print)   ?   1 C! Sun Jul 27 2003 at 16:17:46

ul is an HTML tag that is used to create an unordered list. This tag is useful for creating bulleted lists and other structured list types. Since HTML should be used to structure a document rather than add stylistic elements, the ul tag should not simply be used to indent text.

See also: dd, dir, dl, dt, li, menu, ol

Attributes

The ul tag does not have any required HTML attributes. It does, however have numerous allowable attributes. Some of the most commonly used attributes are now deprecated in favor of Cascading Style Sheets.

Usage

In its simplest form, to use the ul tag simply place opening and closing HTML tags around a series of list items (which use the li tag). However, it can be a little tricky when dealing with nested lists. If you have lists inside of lists, be sure that you enclose each nested list entirely within an li tag. For example:

<ul>
  <li>Top Level A</li>
  <li>Top Level B
    <ul>
      <li>Nested Level 1A</li>
      <li>Nested Level 1B
        <ul>
          <li>Nested Level 2A</li>
          <li>Nested Level 2B</li>
          <li>Nested Level 2C</li>
        </ul>
      </li>
      <li>Nested Level 1C</li>
    </ul>
  <li>Top Level C</li>
</ul>

See also: this and this.

Everything2 Support?

E2 does provide limited support for the ul tag, but it does not allow the use of any of its HTML attributes. Below is how your browser displays the example above here on Everything2:

  • Top Level A
  • Top Level B
    • Nested Level 1A
    • Nested Level 1B
      • Nested Level 2A
      • Nested Level 2B
      • Nested Level 2C
    • Nested Level 1C
  • Top Level C

Notice that even though the "type" attribute is not used, the nested lists use a different bullet style than used in the levels above. If you would like to use this tag with any of its attributes or with style sheets, you can do so in your Notelet Nodelet.

Common Browser Implementations*

Most web browsers support this tag, as it has been around since HTML 2.0. Most browsers will display the unordered lists in the same general manner though you may see minor differences between platforms, operating systems, and browsers.

Previous HTML Tag: u
Next HTML Tag: var
See Also: HTML tags and HTML attributes


* Please feel free to send me information about how other browsers implement this tag.


(thing) by m_turner (1.5 y) (print)   ?   1 C! Tue Jun 05 2001 at 2:18:28

Dating back to RFC 1866 in November of 1996 (and before, I just can't find the spec), the <ul> is used to represent a bulleted list.
5.6.1. Unordered List: UL, LI

   The <UL> represents a list of items -- typically rendered as a
   bulleted list.

   The content of a <UL> element is a sequence of <LI> elements.
   For example:

    <UL>
    <LI>First list item
    <LI>Second list item
     <p>second paragraph of second item
    <LI>Third list item
    </UL>

The example text renders as:

  • First list item
  • Second list item

    second paragraph of second item

  • Third list item

The <UL> list is one example of the three lists available within HTML:

  • Unordered information
  • Ordered information
  • Definitions
(Yes boys and girls, that is a <ul> in action).

Such a list must contain one or more list items (designated by the <li> tag). While it does not need to be closed (as of the HTML 4.01 Specification), it is helpful for XHTML and makes some parsers much happier when this is done.

For the <ul>, the start (<ul>) and end (</ul>) tags are both required. For list items, the start tag (<li>) is required, but the end tag is optional.

In unrestricted html (not E2), there are several attributes that may be used within the <ul> tag:

type = style-information
Now deprecated. Values may be one of 'disc', 'square' and 'circle'. The correct way to do this now is with the style sheet.
compact
Now deprecated. Attempt to render the list in a more compact format.
Other attributes that are universally allowed may also be put inside the <ul> and <li> tags.

As wonderful as the <ul> tag is, it can also be abused in indenting text. The correct way to do this is to use the <blockquote> tag. Likewise, the use of the <li> tag outside of a <ul> or <ol> list is invalid, even though it does give the bullet. Please don't do this.


printable version
chaos

Underwriters Laboratories HTML attributes HTML tags root log: December 2007
E2 HTML tags iHTML OL unordered list
Invalid HTML using "li" without "ol" or "ul" tags 35 mm vs APS root log: September 2007 Editor Log: January 2005
A Game of Tag geek code Li root log: November 2007
Our eyes reflect the light of dead suns Home designs and styles bulleted list urban legend
Notelet nodelet HTML tricks Invalid HTML using "h1" in "ol" or "ul" tags My cat is mentally challenged and more than a little misshapen hamburger
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
fuzzy logic
For a lawyer she was surprisingly like a child. Sometimes.
pink triangle
time
Creating a password to convince yourself you have traveled back in time
Vegemite
Democracy
Opal
manipulative magic
No Name Church
Quizro's phone smells like cigarettes and Obsession for Men (gay porn version)
A ninja's favorite drink
Alcoholism
New Writeups
locke baron
Tyan Thunder K8WE(thing)
locke baron
Udaloy class destroyer(thing)
Scaevola
Same-sex marriage(idea)
SteveMurrayFromNZ
British Standard Handful(idea)
nailbiter
nerve stapling(thing)
locke baron
Multiple Myeloma(thing)
SubSane
blonde, freckles, skinny, short(person)
arcanamundi
A Ruba'iyat for May(person)
riverrun
Timed Writing(idea)
auraseer
Fling(fiction)
StrawberryFrog
Iron Man(review)
devolution
Misogyny and Porn, East to West - An Empirical Analysis(idea)
devolution
Korea is a place that refuses to stand still(idea)
Beanie127
The Pacifist Soldier(fiction)
VergilKint
Distilled from Dreams(fiction)
This page courtesy of The Everything Development Company