HAL-PC Web Technolgies SIG

Mail List | SIG Leader

HAL-PC Intermediate HTML

HAL-PC Web Technologies SIG

Areas covered:

More tags
Tags new to HTML 4.0 & XHTML
Lists

Tags

  • <abbr> Identifies the enclosed text as an abbreviation. It has no inherited effect on text, used primarily with title for an attribute to be read by non-visual browsers. You can also define styles for it using a stylesheet.
    Example:
    <abbr title="Houston Area League of PC Users>HAL-PC</abbr>
  • <acronym> Basically the same as <abbr> above.
    Example:
    <acronym title="Houston Area League of PC Users>HAL-PC</acronym>
  • <address>
    This is a formatting tag

  • <base>specifies the base url for all relative urls within the document. A good use for this tag is when you use an external search engine such as Atomz.com
    • Example: <base href="http://wiserways.com/web-tech" target="_same>
  • <basefont> Takes the same attributes as the <font> tag: color, face, size. This tag can be used in the head to apply to the entire page or inline. It is also depreciated in favor of using CSS but maybe needed in some cases for compatibility with older browsers.
  • <isindex> A searchable index, while not a depreciated tag seldom used since there are better ways of searching a site using forms and scripting.
  • <q> Used for short inline quotations such as
    <q cite="William Shakespeare">to be or not to be</q>
  • <samp> Delimits sample output from scripts, etc.
  • <script> identifies a section of script for and accepts the following parameters
    • type= content type
      example:<script type="text/javascript">
      (required in HTML 4 spec. and used to replace language below")
    • language= language
      example: <script language="javascript">
  • <noscript> will provide an alternate for people to see when the browser they are using doesn't support client side scripting or the viewer has disabled script on their browser >
    <noscript>Your browser does not support our javascript navigation menu. Please use our site map at <a href="http://site.com/sitemap"http://site.com/sitemap</a>.</noscript>

Back to top

Formatting Tags New to HTML 4.0 and XHTML 1.0

  • <bdo> New to HTML 4.0 is used with indicate text that is read in the opposite direction of the rest of the page. For example if you a section on your page in english on a page that was otherwise in hebrew you could use:
    <bdo dir='ltr'>This sentence is in english</bdo> (I'd have done it in a language that reads left to right here but I don't have any fonts loaded for hebrew or arabic.)
  • <del> Defines text as "deleted". This tag has no inherited style information so it must be defined by use of a style statement either on the page or in an external stylesheet usually defined as:
    del { text-decoration: line-through}
  • <ins> Defines text as "inserted". Like del this tag has no inherited style and must be defined. Frequently used along with del in documents you want to show version history. Usually defined with a color such as:
    ins { color: red }

Back to top

Lists

  • <dl> Creates a definition list of terms defined using the
    • <dt> defined term tag for the item to be defined
    • <dd>definition list tag for the definition of the <dt> term
Term 1
Definition of term 1
Term 2
Definition of term 2
 
  • <dir> Creates a directory list of items identified with the <li> tag, this tag has been depreciated in favor of unordered lists

Directory List <DIR>...</DIR>

  • A-H
  • I-M
  • M-R
  • S-Z
    • <li> Defines an item in a list used with <dir>, <ol> and <ul> tags.
      • Available Attributes
        • Ordered lists value= specifies the value of the number that starts the list
        • Unordered lists type="disc" or "circle" or "square"
          • Unordered lists in stylesheets you can assign an image to be used instead of the 3 standard unordered list types as follows:
            li { list-style-image: url(images/bullet1.gif)}
    • <ul> Unordered lists defines the beginning and end of unordered lists used with <li>
      • Available attributes:
        • type="disc" or " circle" or "square"
        • compact see under ordered lists
      • This section is formatted using the default/inherited style for unordered lists. You can also use your own bullets with stylesheets by defining the <li> see above
    1. <ol> Ordered List defines the beginning and end of ordered lists used with <li>
      1. Available attributes:
        1. start="number" useful if you want to start with something other than 1
        2. type="1" or "A" or "I" or "a" or "i" for arabic numbers, uppercase letters, uppercase roman numerals, lowercase letters or lowercase roman numberals. The use of this attribute is depreciated in favor of using stylesheets.
        3. compact will display the list in the most compact manner possible but isn't widely supported by many browsers.
        4. To create a stylesheet that will display different types of ordering such as used in this section your stylesheet would look like this:
          ol { list-style-type: upper-roman}
          ol ol { list-style-type: upper-alpha}
          ol ol ol { list-style-type: lower-roma

    Back to top

    presented November 11, 2000

    About Us | Site Map | Advanced Search | Privacy Policy | Contact Us | ©1999-2006 HAL-PC Web Technologies SIG Leader Cheryl D. Wise