To get a list with out either bullets or numbers [use <dl>]

Please don't do this. It would be misusing semantic tags for stylistic reasons which has been frowned upon since the turn of the millennium. Worst of all, it upsets Sir Tim.

In HTML, an unordered list (which is what you have in your last example) is semantically identified by the <ul> tag. It's what the U and the L stand for: Unordered List. If you want to present this list without any markers then all you need to do is style it as such, either via CSS or a <style> tag or (simplest) with the style attribute. eg: <ul style="list-style: none;">.

Conversely the <dl> tag is semantically for Definition Lists (or more generally for Description Lists). Since you aren't defining/describing any terms here, please don't use the tag for this.

I know you mean well and we've all had to shudder at some point as we feed horrendous input to a broken application to please some PHB but it would be bad for someone to stumble upon this thread and think that <dl> is an acceptable way of styling a list generally.


In reply to Re^6: Most efficient way to remove some text from a string (semantic HTML) by hippo
in thread Most efficient way to remove some text from a string by adamZ88

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.