<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Free Tutorials</title>
	<atom:link href="http://www.mzwriter.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mzwriter.org</link>
	<description>Download Free Tutorials</description>
	<pubDate>Tue, 01 Jul 2008 16:18:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Creating Simple menu list in HTML</title>
		<link>http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 16:18:43 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=52</guid>
		<description><![CDATA[


 The &#60;menu&#62; tag displays a list of short choices to the reader, such as a menu of links to other documents. The browser may use a special (typically more compact) representation of items in a menu list compared with the general unordered list, or even use some sort of graphical pull-down menu to implement [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-2790139779769676";
/* 336x280, created 12/4/07 */
google_ad_slot = "6210213512";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></-> <p class="para" style="text-align: justify;">The <tt>&lt;menu&gt;</tt> tag displays a list of short choices to the reader, such as a menu of links to other documents. The browser may use a special (typically more compact) representation of items in a menu list compared with the general unordered list, or even use some sort of graphical pull-down menu to implement the menu list. If the list items are short enough, the browser may even display them in a multicolumn format, and may not append a leading bullet with each list item.</p>
<div class="sidebar" style="text-align: justify;">
<blockquote><p><tt>&lt;menu&gt;</tt>
<dl class="variablelist">
<dt class="varlistentry">Function:
</dt>
<dd>
<p class="para">Define a menu list</p>
</dd>
<dt class="varlistentry">Attributes:
</dt>
<dd>
<div class="simplelist">
<p>CLASS (Netscape) (Internet Explorer)<br />
COMPACT<br />
STYLE (Netscape) (Internet Explorer)<br />
TYPE</p>
</div>
</dd>
<dt class="varlistentry">End tag:
</dt>
<dd>
<p class="para"><tt>&lt;/menu&gt;</tt>, never omitted</p>
</dd>
<dt class="varlistentry">Contains:
</dt>
<dd>
<p class="para"><em class="emphasis">list_content</em></p>
</dd>
<dt class="varlistentry">Used in:
</dt>
<dd>
<p class="para"><em class="emphasis">block</em></p>
</dd>
</dl>
</blockquote>
</div>
<p class="para" style="text-align: justify;">Like an unordered list, define the menu list items with the <tt>&lt;li&gt;</tt> tag. When used within a menu list, however, the <tt>&lt;li&gt;</tt> tag may not contain any block element, including paragraphs, other lists, preformatted text, or forms.</p>
<p class="para" style="text-align: justify;">Compare the source text below and the Mosaic display  (Figure 8.9) with the directory  (Figure 8.8) and unordered  (Figure 8.1) list displays we presented earlier  in this chapter.</p>
<div class="screen" style="text-align: justify;">
<pre>&lt;p&gt;
Some popular kumquat recipes include:
&lt;menu&gt;
  &lt;li&gt;Pickled Kumquats
  &lt;li&gt;'Quats and 'Kraut (a holiday favorite!)
  &lt;li&gt;'Quatshakes
&lt;/menu&gt;
There are many more to please every palate!
</pre>
</div>
<div class="figure" style="text-align: justify;">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-9">Figure 8.9: Sample <tt>&lt;menu&gt;</tt> list</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0809.gif" border="0" alt="[Graphic: Figure 8-9]" width="500" height="157" align="middle" /></p>
</div>
<p class="para" style="text-align: justify;">The <tt>&lt;menu&gt;</tt> tag also has the compact attribute to produce an even more reduced list presentation, although in practice, few browsers are willing or able to implement the compacted menu list display.  Netscape, in fact, doesn&#8217;t distinguish between a menu and an unordered list.</p>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li><br><a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes" title="Ordered Lists in HTML pages">Ordered Lists in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes" title="List Formatting in HTML pages">List Formatting in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>bullet listing in HTML pages</title>
		<link>http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:44:05 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=51</guid>
		<description><![CDATA[


 The &#60;dir&#62; Tag
The designers of HTML originally dedicated the &#60;dir&#62; tag for displaying lists of files. As such, the browser, if it treats &#60;dir&#62; and &#60;ul&#62; differently at all (most don&#8217;t), expects the various list elements to be quite short, possibly no longer than 20 characters or so. Some browsers display the elements in [...]]]></description>
			<content:encoded><![CDATA[<h3 class="sect2" style="text-align: justify;"><a class="TITLE" name="HTML-CH-8-SECT-5.1">The <tt>&lt;dir&gt;</tt> Tag</a></h3>
<p class="para" style="text-align: justify;">The designers of HTML originally dedicated the <tt>&lt;dir&gt;</tt> tag for displaying lists of files. As such, the browser, if it treats <tt>&lt;dir&gt;</tt> and <tt>&lt;ul&gt;</tt> differently at all (most don&#8217;t), expects the various list elements to be quite short, possibly no longer than 20 characters or so. Some browsers display the elements in a multicolumn format and may not use a leading bullet.</p>
<div class="sidebar" style="text-align: justify;">
<blockquote><p><tt>&lt;dir&gt;</tt>
<dl class="variablelist">
<dt class="varlistentry">Function:
</dt>
<dd>
<p class="para">Define a directory list</p>
</dd>
<dt class="varlistentry">Attributes:
</dt>
<dd>
<div class="simplelist">
<p>CLASS (Netscape) (Internet Explorer)<br />
COMPACT<br />
STYLE (Netscape) (Internet Explorer)</p>
</div>
</dd>
<dt class="varlistentry">End tag:
</dt>
<dd>
<p class="para"><tt>&lt;/dir&gt;</tt>, never omitted</p>
</dd>
<dt class="varlistentry">Contains:
</dt>
<dd>
<p class="para"><em class="emphasis">list_content</em></p>
</dd>
<dt class="varlistentry">Used in:
</dt>
<dd>
<p class="para"><em class="emphasis">block</em></p>
</dd>
</dl>
</blockquote>
</div>
<p class="para" style="text-align: justify;">As with the unordered list, define directory list items with the <tt>&lt;li&gt;</tt> tag. When used within a directory list, however, the <tt>&lt;li&gt;</tt> tag may not contain any block element, including paragraphs, other lists, preformatted text, or forms.</p>
<p class="para" style="text-align: justify;">The following example puts the directory tag to its traditional task of presenting a list of filenames:</p>
<div class="screen" style="text-align: justify;">
<pre>The distribution tape has the following files on it:
&lt;dir&gt;
  &lt;li&gt;&lt;code&gt;README&lt;/code&gt;
  &lt;li&gt;&lt;code&gt;Makefile&lt;/code&gt;
  &lt;li&gt;&lt;code&gt;main.c&lt;/code&gt;
  &lt;li&gt;&lt;code&gt;config.h&lt;/code&gt;
  &lt;li&gt;&lt;code&gt;util.c&lt;/code&gt;
&lt;/dir&gt;
</pre>
</div>
<p class="para" style="text-align: justify;">Notice that we use the <tt>&lt;code&gt;</tt> tag to ensure that the filenames would be rendered in an appropriate manner (see Figure 8.8).</p>
<div class="figure" style="text-align: justify;">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-8">Figure 8.8: An example <tt>&lt;dir&gt;</tt> list</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0808.gif" border="0" alt="[Graphic: Figure 8-8]" width="500" height="185" align="middle" /></p>
</div>
<p class="para" style="text-align: justify;">Like the other formatting tags we&#8217;ve seen so far, the <tt>&lt;dir&gt;</tt> tag has an optional  compact attribute for producing an even more reduced list display, even though virtually none of the browsers is either willing or capable of compacting directory lists.</p>
<p class="para" style="text-align: justify;">You can change the style used to bullet the <tt>&lt;dir&gt;</tt> list items with the type attribute extension and the values circle, square, or disc. This behavior is identical to the type attribute in an unordered list.</p>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li><br><a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes" title="Ordered Lists in HTML pages">Ordered Lists in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes" title="List Formatting in HTML pages">List Formatting in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>Nested Lists in HTML</title>
		<link>http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:42:37 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=50</guid>
		<description><![CDATA[Except inside directories or menus, lists nested inside other lists are fine.  Menu and directory lists can be embedded within other lists.
Indents for each nested list are cumulative, so take care not to nest lists too much; the list contents could quickly turn into a thin ribbon of text flush against the right edge [...]]]></description>
			<content:encoded><![CDATA[<p class="para" style="text-align: justify;">Except inside directories or menus, lists nested inside other lists are fine.  Menu and directory lists can be embedded within other lists.</p>
<p class="para" style="text-align: justify;">Indents for each nested list are cumulative, so take care not to nest lists too much; the list contents could quickly turn into a thin ribbon of text flush against the right edge of the browser document window.</p>
<div class="sect2" style="text-align: justify;">
<h3 class="sect2"><a class="TITLE" name="HTML-CH-8-SECT-4.1">Nested Unordered Lists</a></h3>
<p class="para">The items in each nested unordered list may be preceded by a different bullet character at the discretion of the browser. For example, Internet Explorer Version 2 for the Macintosh uses an alternating series of hollow, solid circular, and square bullets for the various nests in the following source HTML text as shown in  Figure 8.6:</p>
<div class="screen">
<pre>&lt;ul&gt;
  &lt;li&gt;Morning Kumquat Delicacies
  &lt;ul&gt;
    &lt;li&gt;Hot Dishes
    &lt;ul&gt;
      &lt;li&gt;Kumquat omelet
      &lt;li&gt;Kumquat waffles
      &lt;ul&gt;
        &lt;li&gt;Country style
        &lt;li&gt;Belgian
      &lt;/ul&gt;
      &lt;li&gt;Kumquats and toast
    &lt;/ul&gt;
    &lt;li&gt;Cold Dishes
    &lt;ul&gt;
      &lt;li&gt;Kumquats and cornflakes
      &lt;li&gt;Pickled Kumquats
      &lt;li&gt;Diced Kumquats
    &lt;/ul&gt;
  &lt;/ul&gt;
&lt;/ul&gt;
</pre>
</div>
<div class="figure">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-6">Figure 8.6: Bullets change for nested unordered list items</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0806.gif" border="0" alt="[Graphic: Figure 8-6]" width="500" height="228" align="middle" /></p>
</div>
<p class="para">You can change the bullet style for each unordered list and even individual list items (see the type attribute discussion earlier in this chapter), but the repertoire of bullets is limited. For example, Internet Explorer for Windows 95 uses a solid disc regardless of the nesting level.</p>
</div>
<div class="sect2" style="text-align: justify;">
<h3 class="sect2"><a class="TITLE" name="HTML-CH-8-SECT-4.2">Nested Ordered Lists</a></h3>
<p class="para">By default, browsers number the items in ordered lists beginning with the Arabic numeral 1, nested or not. It would be great if the HTML standard numbered nested ordered lists in some rational, consecutive manner. For example, the items in the second nest of the third main ordered list might be successively numbered &#8220;3.2.1,&#8221; &#8220;3.2.2,&#8221; &#8220;3.2.3,&#8221; and so on.</p>
<p class="para">With the type and value attributes, however, you do have a lot more latitude in how you create nested ordered lists. An excellent example is the traditional style for outlining, which uses the many different ways of numbering items offered by the type attribute (see  Figure 8.7):</p>
<div class="screen">
<pre>&lt;ol type=A&gt;
  &lt;li&gt;A History of Kumquats
  &lt;ol type=1&gt;
    &lt;li&gt;Early History
    &lt;ol type=a&gt;
      &lt;li&gt;The Fossil Record
      &lt;li&gt;Kumquats: The Missing Link?
    &lt;/ol&gt;
    &lt;li&gt;Mayan Use of Kumquats
    &lt;li&gt;Kumquats in the New World
  &lt;/ol&gt;
  &lt;li&gt;Future Use of Kumquats
&lt;/ol&gt;
</pre>
</div>
<div class="figure">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-7">Figure 8.7: The type attribute lets you do traditional outlining with ordered lists</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0807.gif" border="0" alt="[Graphic: Figure 8-7]" width="500" height="234" align="middle" /></p>
</div>
</div>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li><br><a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes" title="Ordered Lists in HTML pages">Ordered Lists in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes" title="List Formatting in HTML pages">List Formatting in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>Changing the Style and Sequence of Individual List Items</title>
		<link>http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:41:35 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=49</guid>
		<description><![CDATA[Just as you can change the bullet or numbering style for all of the items in an unordered or ordered list, you also can change the style for individual items within those lists. With ordered lists, you also can change the value of the item number. As you&#8217;ll see, the combinations of changing style and [...]]]></description>
			<content:encoded><![CDATA[<p class="para" style="text-align: justify;">Just as you can change the bullet or numbering style for all of the items in an unordered or ordered list, you also can change the style for individual items within those lists. With ordered lists, you also can change the value of the item number. As you&#8217;ll see, the combinations of changing style and numbering can lead to a variety of useful list structures, particularly when included with nested lists.</p>
<div class="sect3" style="text-align: justify;">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-8-SECT-3.1.1">The type attribute</a></h4>
<p class="para">Acceptable values for the type attribute in the <a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes"><tt>&lt;li&gt;</tt> tag</a> are the same as the values for the appropriate list type: items within unordered lists may have their type set to circle, square, or disc, while items in an ordered list may have their type set to any of the values shown previously in Table 8.1. The change affects the current item and any subsequent items in the list.</p>
<p class="para">There is no way to revert back to the list&#8217;s default type once you have changed the type for a single item; you&#8217;ll need to explicitly reset the type on the next item. Thus, to make a single item in a list different from the rest, you&#8217;ll need to change two items: the actual item you want changed, and the next item, which must be changed back to the general list format.</p>
<p class="para">Figure 8.4 shows the effect that changing the type for an individual item in an ordered list has on subsequent items, as rendered by Netscape from the following source:</p>
<div class="screen">
<pre>&lt;ol&gt;
  &lt;li type=A&gt;Changing the numbering style
  &lt;li type=a&gt;Doesn't alter the order!
  &lt;li&gt; &amp;lt;-- See? It's a "c"!
  &lt;li type=I&gt;Uppercase Roman numerals!
  &lt;li type=i&gt;Lowercase Roman numerals!
  &lt;li type=1&gt;Plain ol' numbers!
&lt;/ol&gt;
</pre>
</div>
<div class="figure">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-4">Figure 8.4: Changing the numbering style for each item in an ordered list</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0804.gif" border="0" alt="[Graphic: Figure 8-4]" width="500" height="211" align="middle" /></p>
</div>
<p class="para">Notice how the type attribute changes the display style of the number, but not the value of the number itself.</p>
</div>
<div class="sect3" style="text-align: justify;">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-8-SECT-3.1.2">The value attribute</a></h4>
<p class="para">The value attribute lets you change the number of a specific list item and the ones that follow it. Since the ordered list is the only HTML list with sequentially numbered items, the value attribute is only valid when used within an <tt>&lt;li&gt;</tt> tag inside an ordered list.</p>
<p class="para">To change the current and subsequent numbers attached to each item in an ordered list, simply set the value attribute to any integer.  For example, the following source uses the value attribute to jump the numbering on items in an ordered list:</p>
<div class="screen">
<pre>&lt;ol&gt;
  &lt;li&gt;Item number 1
  &lt;li&gt;And the second
  &lt;li value=9&gt; Jump to number 9
  &lt;li&gt;And continue with 10...
&lt;/ol&gt;
</pre>
</div>
<p class="para">The results are shown as rendered by Netscape in Figure 8.5.</p>
<div class="figure">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-5">Figure 8.5: The value attribute lets you change individual item numbers in an ordered list</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0805.gif" border="0" alt="[Graphic: Figure 8-5]" width="500" height="175" align="middle" /></p>
</div>
</div>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li><br><a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes" title="Ordered Lists in HTML pages">Ordered Lists in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes" title="List Formatting in HTML pages">List Formatting in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>li tag and its use in HTML</title>
		<link>http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:40:18 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=48</guid>
		<description><![CDATA[It should be quite obvious to you by now that the &#60;li&#62; tag defines an item in a list. It&#8217;s the universal tag for HTML list items in ordered (&#60;ol&#62;) and unordered (&#60;ul&#62;) lists, as we discuss above, and for directories (&#60;dir&#62;) and menus (&#60;menu&#62;), which we discuss in detail later in this chapter.

&#60;li&#62;

Function:


Define an [...]]]></description>
			<content:encoded><![CDATA[<p class="para">It should be quite obvious to you by now that the <tt>&lt;li&gt;</tt> tag defines an item in a list. It&#8217;s the universal tag for HTML list items in ordered (<tt>&lt;ol&gt;</tt>) and unordered (<tt>&lt;ul&gt;</tt>) lists, as we discuss above, and for directories (<tt>&lt;dir&gt;</tt>) and menus (<tt>&lt;menu&gt;</tt>), which we discuss in detail later in this chapter.</p>
<div class="sidebar">
<blockquote><p><tt>&lt;li&gt;</tt>
<dl class="variablelist">
<dt class="varlistentry">Function:
</dt>
<dd>
<p class="para">Define an item within an ordered, unordered, directory, or menu list</p>
</dd>
<dt class="varlistentry">Attributes:
</dt>
<dd>
<div class="simplelist">
<p>CLASS (Netscape) (Internet Explorer)<br />
STYLE (Netscape) (Internet Explorer)<br />
TYPE<br />
VALUE</p>
</div>
</dd>
<dt class="varlistentry">End tag:
</dt>
<dd>
<p class="para"><tt>&lt;/li&gt;</tt>, usually omitted</p>
</dd>
<dt class="varlistentry">Contains:
</dt>
<dd>
<p class="para"><em class="emphasis">flow</em></p>
</dd>
<dt class="varlistentry">Used in:
</dt>
<dd>
<p class="para"><em class="emphasis">list_content</em></p>
</dd>
</dl>
</blockquote>
</div>
<p class="para">Because the end of a list element can always be inferred by the surrounding document structure, most authors omit the ending <tt>&lt;/li&gt;</tt> tags for their list elements. That makes sense because it becomes easier to add, delete, and move elements around within a list. We recommend not using the <tt>&lt;/li&gt;</tt> end tag.</p>
<p class="para">Although universal in meaning, there are some differences and restrictions to the use of the <tt>&lt;li&gt;</tt> tag for each HTML list type. In unordered and ordered lists, what follows the <tt>&lt;li&gt;</tt> tag may be nearly anything, including other lists and multiple paragraphs. Typically, if it handles indentation at all, the browser successively indents nested list items, and the content in those items is justified to the innermost indented margin.</p>
<p class="para">Directory and menu lists are another matter. They are lists of short items like a single word or simple text blurb and nothing else. Consequently, <tt>&lt;li&gt;</tt> items within <tt>&lt;dir&gt;</tt> and <tt>&lt;menu&gt;</tt> tags may not contain other lists or other block elements, including paragraphs, preformatted blocks, or forms.</p>
<p class="para">Clean documents, fully compliant with the HTML standard, should not contain any text or other document item inside the unordered, ordered, directory, or menu lists that is not contained within an <tt>&lt;li&gt;</tt> tag. Most browsers are tolerant of violations to this rule, but then you can&#8217;t hold the browser responsible for compliant rendering for exceptional cases, either.</p>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li><br><a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes" title="Ordered Lists in HTML pages">Ordered Lists in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes" title="List Formatting in HTML pages">List Formatting in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>Different Atributes of Ordered list</title>
		<link>http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:38:22 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=47</guid>
		<description><![CDATA[
The start attribute
Normally, browsers automatically number ordered list items beginning with the Arabic numeral 1. The start attribute for the &#60;ol&#62; tag lets you change that beginning value. To start numbering a list at 5, for example:

&#60;ol start=5&#62;
  &#60;li&#62; This is item number 5.
  &#60;li&#62; This is number six!
  &#60;li&#62; And so [...]]]></description>
			<content:encoded><![CDATA[<div class="sect3" style="text-align: justify;">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-8-SECT-2.1.1">The start attribute</a></h4>
<p class="para">Normally, browsers automatically number ordered list items beginning with the Arabic numeral 1. The start attribute for the <a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes"><tt>&lt;ol&gt;</tt> tag </a>lets you change that beginning value. To start numbering a list at 5, for example:</p>
<div class="screen">
<pre>&lt;ol start=5&gt;
  &lt;li&gt; This is item number 5.
  &lt;li&gt; This is number six!
  &lt;li&gt; And so forth...
&lt;/ol&gt;</pre>
</div>
</div>
<h4 class="sect3" style="text-align: justify;"><a class="TITLE" name="HTML-CH-8-SECT-2.1.2">The type attribute</a></h4>
<p class="para" style="text-align: justify;">By default, browsers number ordered list items with a sequence of Arabic numerals. Besides being able to start the sequence at some number other than 1, you can use the type attribute with the <tt>&lt;ol&gt;</tt> tag to change the numbering style itself. With the <tt>&lt;ol&gt;</tt> tag, the type attribute may have a value of &#8220;A&#8221; for numbering with capital letters, &#8220;a&#8221; for numbering with lowercase letters, &#8220;I&#8221; for capital Roman numerals, &#8220;i&#8221; for lowercase Roman numerals, or &#8220;1&#8243; for common Arabic numerals. (See Table 8.1).</p>
<p style="text-align: justify;">
<div class="table" style="text-align: justify;">
<table border="1">
<caption><a class="TITLE" name="HTML-CH-8-TAB-1">Table 8.1: HTML 3.2 type values for numbering ordered lists</a></caption>
<tbody>
<tr class="row">
<th align="left">Type Value</th>
<th align="left">Generated Style</th>
<th align="left">Sample Sequence</th>
</tr>
<tr class="row">
<td align="left">A</td>
<td align="left">Capital letters</td>
<td align="left">A, B, C, D</td>
</tr>
<tr class="row">
<td align="left">a</td>
<td align="left">Lowercase letters</td>
<td align="left">a, b, c, d</td>
</tr>
<tr class="row">
<td align="left">I</td>
<td align="left">Capital Roman numerals</td>
<td align="left">I, II, III, IV</td>
</tr>
<tr class="row">
<td align="left">i</td>
<td align="left">Lowercase Roman numerals</td>
<td align="left">i, ii, iii, iv</td>
</tr>
<tr class="row">
<td align="left">1</td>
<td align="left">Arabic numerals</td>
<td align="left">1, 2, 3, 4</td>
</tr>
</tbody>
</table>
</div>
<p class="para" style="text-align: justify;">The start and type attribute extensions work in tandem. The start attribute sets the starting value of the item integer counter at the beginning of an ordered list. The type attribute sets the actual numbering style. For example, the following ordered list starts numbering items at 8, but because the style of numbering is set to i, the first number is the lowercase Roman numeral, &#8220;viii.&#8221;  Subsequent items are numbered with the same style, each value incremented by 1 as shown in this example:</p>
<div class="screen" style="text-align: justify;">
<pre>&lt;ol start=8 type="i"&gt;
  &lt;li&gt; This is the Roman number 8.
  &lt;li&gt; The numerals increment by 1.
  &lt;li&gt; And so forth...
&lt;/ol&gt;</pre>
</div>
<p class="para" style="text-align: justify;">The results are shown in Figure 8.3.</p>
<div class="figure" style="text-align: justify;">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-3">Figure 8.3: The start and type attributes work in tandem</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0803.gif" border="0" alt="[Graphic: Figure 8-3]" width="500" height="153" align="middle" /></p>
</div>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes" title="Ordered Lists in HTML pages">Ordered Lists in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes" title="List Formatting in HTML pages">List Formatting in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>Ordered Lists in HTML pages</title>
		<link>http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:36:51 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=46</guid>
		<description><![CDATA[Use an ordered list when the sequence of the list items is important. A list of instructions is a good example, as are tables of content and lists of document footnotes or endnotes.
The &#60;ol&#62; Tag
The typical browser formats the contents of an ordered list just like an unordered list, except that the items are numbered [...]]]></description>
			<content:encoded><![CDATA[<p class="para" style="text-align: justify;">Use an ordered list when the sequence of the list items is important. A list of instructions is a good example, as are tables of content and lists of document footnotes or endnotes.</p>
<h3 class="sect2" style="text-align: justify;"><a class="TITLE" name="HTML-CH-8-SECT-2.1">The <tt>&lt;ol&gt;</tt> Tag</a></h3>
<p class="para" style="text-align: justify;">The typical browser formats the contents of an ordered list just like an unordered list, except that the items are numbered instead of bulleted. The numbering starts at one and is incremented by one for each successive ordered list element tagged with <tt>&lt;li&gt;</tt>.</p>
<div class="sidebar" style="text-align: justify;">
<blockquote><p><tt>&lt;ol&gt;</tt>
<dl class="variablelist">
<dt class="varlistentry">Function:
</dt>
<dd>
<p class="para">Define an ordered list</p>
</dd>
<dt class="varlistentry">Attributes:
</dt>
<dd>
<div class="simplelist">
<p>CLASS (Netscape) (Internet Explorer)<br />
COMPACT<br />
START<br />
STYLE (Netscape) (Internet Explorer)<br />
TYPE</p>
</div>
</dd>
<dt class="varlistentry">End tag:
</dt>
<dd>
<p class="para"><tt>&lt;/ol&gt;</tt>, never omitted</p>
</dd>
<dt class="varlistentry">Contains:
</dt>
<dd>
<p class="para"><em class="emphasis">list_content</em></p>
</dd>
<dt class="varlistentry">Used in:
</dt>
<dd>
<p class="para"><em class="emphasis">block</em></p>
</dd>
</dl>
</blockquote>
</div>
<p class="para" style="text-align: justify;">HTML 3.2 has a number of features that provide a wide variety of ordered lists. You can change the start value of the list and select any of five different numbering styles. Here is a sample ordered list:</p>
<div class="screen" style="text-align: justify;">
<pre>&lt;h3&gt;Pickled Kumquats&lt;/h3&gt;
Here's an easy way to make a delicious batch of pickled 'quats:
&lt;ol&gt;
  &lt;li&gt;Rinse 50 pounds of fresh kumquats
  &lt;li&gt;Bring eight gallons white vinegar to rolling boil
  &lt;li&gt;Add kumquats gradually, keeping vinegar boiling
  &lt;li&gt;Boil for one hour, or until kumquats are tender
  &lt;li&gt;Place in sealed jars and enjoy!
&lt;/ol&gt;
</pre>
</div>
<p class="para" style="text-align: justify;">This is rendered by Netscape as shown in Figure 8.2.</p>
<div class="figure" style="text-align: justify;">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-2">Figure 8.2: An ordered list</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0802.gif" border="0" alt="[Graphic: Figure 8-2]" width="500" height="249" align="middle" /></p>
</div>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li><br><a href="http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes" title="List Formatting in HTML pages">List Formatting in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>List Formatting in HTML pages</title>
		<link>http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:35:07 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[format]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=45</guid>
		<description><![CDATA[The &#60;ul&#62; tag signals the browser that the following content, ending with the &#60;/ul&#62; tag, is an unordered list of items. Inside, each item in the unordered list is identified by a leading &#60;li&#62; tag. Otherwise, nearly anything HTML-wise goes, including other lists, text, and multimedia elements.

&#60;ul&#62;

Function:


Define an unordered list

Attributes:



CLASS (Netscape) (Internet Explorer)
COMPACT
STYLE (Netscape) (Internet [...]]]></description>
			<content:encoded><![CDATA[<p class="para" style="text-align: justify;">The <tt>&lt;ul&gt;</tt> tag signals the browser that the following content, ending with the <tt>&lt;/ul&gt;</tt> tag, is an unordered list of items. Inside, each item in the unordered list is identified by a leading <tt>&lt;li&gt;</tt> tag. Otherwise, nearly anything HTML-wise goes, including other lists, text, and multimedia elements.</p>
<div class="sidebar" style="text-align: justify;">
<blockquote><p><tt>&lt;ul&gt;</tt>
<dl class="variablelist">
<dt class="varlistentry">Function:
</dt>
<dd>
<p class="para">Define an unordered list</p>
</dd>
<dt class="varlistentry">Attributes:
</dt>
<dd>
<div class="simplelist">
<p>CLASS (Netscape) (Internet Explorer)<br />
COMPACT<br />
STYLE (Netscape) (Internet Explorer)<br />
TYPE</p>
</div>
</dd>
<dt class="varlistentry">End tag:
</dt>
<dd>
<p class="para"><tt>&lt;/ul&gt;</tt>, never omitted</p>
</dd>
<dt class="varlistentry">Contains:
</dt>
<dd>
<p class="para"><em class="emphasis">list_content</em></p>
</dd>
<dt class="varlistentry">Used in:
</dt>
<dd>
<p class="para"><em class="emphasis">block</em></p>
</dd>
</dl>
</blockquote>
</div>
<p class="para" style="text-align: justify;">Typically, the browser adds a leading bullet character and formats each item on a new line, indented somewhat from the left margin of the document. The actual rendering of unordered lists, however, varies widely between browsers, so you shouldn&#8217;t get bent out of shape trying to attain exact positioning of the elements. For instance, some browsers treat the start of an unordered list as a new paragraph and, like the <tt>&lt;p&gt;</tt> tag, leave a blank line above the list. Other browsers simply start the list item after a simple line break. Browsers vary, too, in how much space they use between list items. For example, the following source:</p>
<div class="screen" style="text-align: justify;">
<pre>Popular Kumquat recipes:
<tt>&lt;ul&gt;</tt>
  <tt>&lt;li&gt;</tt>Pickled Kumquats
  <tt>&lt;li&gt;</tt>&#8216;Quats and &#8216;Kraut (a holiday favorite!)
  <tt>&lt;li&gt;</tt>&#8216;Quatshakes
<tt>&lt;/ul&gt;</tt>
There are so many more to please every palate!
</pre>
</div>
<p class="para" style="text-align: justify;">appears to the Mosaic user as shown in Figure 8.1.</p>
<div class="figure" style="text-align: justify;">
<h4 class="figure"><a class="TITLE" name="HTML-CH-8-FIG-1">Figure 8.1: A simple unordered list</a></h4>
<p><img src="http://mzwriter.org/images/html/figs/h2_0801.gif" border="0" alt="[Graphic: Figure 8-1]" width="480" height="145" align="middle" /></p>
</div>
<p style="text-align: justify;">Tricky HTML authors sometimes use nested unordered lists, with and without <tt>&lt;li&gt;</tt>-tagged items, to take advantage of the automatic, successive indenting. You can produce some fairly slick text segments that way. Just don&#8217;t depend on it for all browsers, including future ones. Rather, it&#8217;s best to use the border property with a style definition in the paragraph (<tt>&lt;p&gt;</tt>) or division (<tt>&lt;div&gt;</tt>) tag to indent nonlist sections of your document</p>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li><br><a href="http://www.mzwriter.org/tutorials/html/ordered-lists-in-html-pages.tutes" title="Ordered Lists in HTML pages">Ordered Lists in HTML pages</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/list-formatting-in-html-pages.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>How browsers might use link tag</title>
		<link>http://www.mzwriter.org/tutorials/html/how-browsers-might-use-link-tag.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/how-browsers-might-use-link-tag.tutes#comments</comments>
		<pubDate>Mon, 30 Jun 2008 18:24:49 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[connection]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=44</guid>
		<description><![CDATA[
How browsers might use &#60;link&#62;
Although the HTML standard does not require browsers to do anything with the information provided by the &#60;link&#62; tag, it&#8217;s not hard to envision how this information might be used to enhance the presentation of a document.
As a simple example, suppose you consistently provide &#60;link&#62; tags for each of your documents [...]]]></description>
			<content:encoded><![CDATA[<div class="sect3">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-7-SECT-7.2.5">How browsers might use <tt>&lt;link&gt;</tt></a></h4>
<p class="para">Although the HTML standard does not require browsers to do anything with the information provided by the <tt>&lt;link&gt;</tt> tag, it&#8217;s not hard to envision how this information might be used to enhance the presentation of a document.</p>
<p class="para">As a simple example, suppose you consistently provide <tt>&lt;link&gt;</tt> tags for each of your documents that define next, prev, and parent links. A browser could use this information to place a standard toolbar at the top or bottom of each document containing buttons that would jump to the appropriate related document. By relegating the task of providing simple navigational links to the browser, you are free to concentrate on the more important content of your document.</p>
<p class="para">As a more complex example, suppose a browser expects to find a <tt>&lt;link&gt;</tt> tag defining a glossary for the current document, and that this glossary document is itself a searchable document. Whenever a reader clicked on a word or phrase in the document, the browser could automatically search the glossary for the definition of the selected phrase, presenting the result in a small pop-up window.</p>
<p class="para">As the Web and HTML evolve, expect to see more and more uses of the <tt>&lt;link&gt;</tt> tag to explicitly define document relationships on the Web.</p>
</div>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/how-to-connect-two-html-pages-establishing-document-relationships.tutes" title="How to connect Two HTML pages (Establishing Document Relationships)">How to connect Two HTML pages (Establishing Document Relationships)</a></li><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/how-browsers-might-use-link-tag.tutes/feed</wfw:commentRss>
		</item>
		<item>
		<title>How to connect Two HTML pages (Establishing Document Relationships)</title>
		<link>http://www.mzwriter.org/tutorials/html/how-to-connect-two-html-pages-establishing-document-relationships.tutes</link>
		<comments>http://www.mzwriter.org/tutorials/html/how-to-connect-two-html-pages-establishing-document-relationships.tutes#comments</comments>
		<pubDate>Mon, 30 Jun 2008 18:24:03 +0000</pubDate>
		<dc:creator>Mantasha</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[connection]]></category>

		<guid isPermaLink="false">http://www.mzwriter.org/tutorials/?p=43</guid>
		<description><![CDATA[
Normally, the browser fills in the blanks of a relative URL by drawing the missing pieces from the URL of the current document. You can change that with the &#60;base&#62; tag.

&#60;base&#62;

Function:


Define the base URL for other anchors in the document

Attributes:



HREF
TARGET (Netscape) (Internet Explorer)


End tag:


None

Contains:


Nothing

Used in:


head_content




The &#60;base&#62; tag must appear only in the document header, not [...]]]></description>
			<content:encoded><![CDATA[<div class="sect2" style="text-align: justify;">
<p class="para">Normally, the browser fills in the blanks of a relative URL by drawing the missing pieces from the URL of the current document. You can change that with the <tt>&lt;base&gt;</tt> tag.</p>
<div class="sidebar">
<blockquote><p><tt>&lt;base&gt;</tt>
<dl class="variablelist">
<dt class="varlistentry">Function:
</dt>
<dd>
<p class="para">Define the base URL for other anchors in the document</p>
</dd>
<dt class="varlistentry">Attributes:
</dt>
<dd>
<div class="simplelist">
<p>HREF<br />
TARGET (Netscape) (Internet Explorer)</p>
</div>
</dd>
<dt class="varlistentry">End tag:
</dt>
<dd>
<p class="para">None</p>
</dd>
<dt class="varlistentry">Contains:
</dt>
<dd>
<p class="para">Nothing</p>
</dd>
<dt class="varlistentry">Used in:
</dt>
<dd>
<p class="para"><em class="emphasis">head_content</em></p>
</dd>
</dl>
</blockquote>
</div>
<p class="para">The <tt>&lt;base&gt;</tt> tag must appear only in the document header, not its body contents. The browser thereafter uses the specified base URL, not the current document&#8217;s URL, to resolve all relative URLs, including those found in <tt>&lt;a&gt;</tt>, <tt>&lt;img&gt;</tt>, <tt>&lt;link&gt;</tt>, and <tt>&lt;form&gt;</tt> tags. It also defines the URL that will be used to resolve queries in searchable documents containing the <tt>&lt;isindex&gt;</tt> tag.</p>
<div class="sect3">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-7-SECT-7.1.1">The href attribute</a></h4>
<p class="para">The  href attribute must have a valid URL as its value, which the browser then uses to define the absolute URL against which relative URLs are based within the document. For example, the <tt>&lt;base&gt;</tt> tag in this document head,</p>
<div class="screen">
<pre>&lt;html&gt;
&lt;head&gt;
&lt;base href="http://www.kumquat.com/"&gt;
&lt;/head&gt;
...
</pre>
</div>
<p class="para">tells the browser that any relative URLs within this document are relative to the top-level document directory on <em class="emphasis">www.kumquat.com</em>, regardless of the address and directory of the machine from which the user had retrieved the current document.</p>
<p class="para">Contrary to what you may expect, you can make the base URL relative, not absolute. The browser actually forms an absolute base URL out of this relative URL by filling in the missing pieces with the URL of the document itself. This property can be used to good advantage. For instance, in this next example,</p>
<div class="screen">
<pre>&lt;html&gt;
&lt;head&gt;
&lt;base href="/info/"&gt;
&lt;/head&gt;
...
</pre>
</div>
<p class="para">the browser will make the <tt>&lt;base&gt;</tt> URL into one that is relative to the server&#8217;s <em class="emphasis">/info/</em> directory, which probably is not the same directory of the current document. Imagine if you had to re-address every link in your document with that common directory. Not only does the <tt>&lt;base&gt;</tt> tag help you shorten those URLs in your document that have a common root, it also lets you constrain the directory from which relative references are retrieved without binding the document to a specific server.</p>
</div>
<div class="sect3">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-7-SECT-7.1.2">The target attribute</a></h4>
<p class="para">When working with documents inside frames, the target attribute with the <tt>&lt;a&gt;</tt> tag ensures that a referenced URL gets loaded into the correct frame. Similarly, the target attribute for the <tt>&lt;base&gt;</tt> tag lets you establish the default name of one of the frames or windows in which the browser is to display redirected hyperlinked documents.</p>
<p class="para">If you have no other default target for your hyperlinks within your frames, you may want to consider using &lt;base target=_top&gt;. This will ensure that links that are not specifically targeted to a frame or window will thereby load in the top-level browser window. This eliminates the embarrassing and common error of having references to pages on other sites appear within a frame on your pages, instead of within their own pages. A minor bit of HTML, to be sure, but it makes life much easier for your readership.</p>
</div>
<div class="sect3">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-7-SECT-7.1.3">Using <tt>&lt;base&gt;</tt></a></h4>
<p class="para">The most important reason for using <tt>&lt;base&gt;</tt> is to ensure that any relative URLs within the document will resolve into a correct document address, even if the document itself is moved or renamed. This is particularly important when creating a document collection. By placing the correct <tt>&lt;base&gt;</tt> tag in each document, you can move the entire collection between directories and even servers without breaking all of the links within the documents.</p>
<p class="para">You also need to use the <tt>&lt;base&gt;</tt> tag for a searchable document (<tt>&lt;isindex&gt;</tt>) if you want user queries posed to a URL different from the host document.</p>
<p class="para">Note that a document that contains both the <tt>&lt;isindex&gt;</tt> tag and other relative URLs may have problems if the relative URLs are not relative to the desired index processing URL. Since this is usually the case, do not use relative URLs in searchable documents that use the <tt>&lt;base&gt;</tt> tag to specify the query URL for the document.</p>
</div>
</div>
<h3 class="sect2" style="text-align: justify;"><a class="TITLE" name="HTML-CH-7-SECT-7.2">The <tt>&lt;link&gt;</tt> Header Element</a></h3>
<p class="para" style="text-align: justify;">Use the <tt>&lt;link&gt;</tt> tag to define the relationship between the current document and another in a Web collection.</p>
<div class="sidebar" style="text-align: justify;">
<blockquote><p><tt>&lt;link&gt;</tt>
<dl class="variablelist">
<dt class="varlistentry">Function:
</dt>
<dd>
<p class="para">Define a relationship between this document and another document</p>
</dd>
<dt class="varlistentry">Attributes:
</dt>
<dd>
<div class="simplelist">
<p>HREF<br />
REL<br />
REV<br />
TITLE<br />
TYPE (Netscape) (Internet Explorer)</p>
</div>
</dd>
<dt class="varlistentry">End tag:
</dt>
<dd>
<p class="para">None</p>
</dd>
<dt class="varlistentry">Contains:
</dt>
<dd>
<p class="para">Nothing</p>
</dd>
<dt class="varlistentry">Used in:
</dt>
<dd>
<p class="para"><em class="emphasis">head_content</em></p>
</dd>
</dl>
</blockquote>
</div>
<p class="para" style="text-align: justify;">The <tt>&lt;link&gt;</tt> tags belongs in the <tt>&lt;head&gt;</tt> content, nowhere else. The attributes of the <tt>&lt;link&gt;</tt> tag are used like those of the <tt>&lt;a&gt;</tt> tag, but their effects serve only to document the relationship between documents. The <tt>&lt;link&gt;</tt> tag has no content and no closing <tt>&lt;/link&gt;</tt> element.</p>
<div class="sect3" style="text-align: justify;">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-7-SECT-7.2.1">The href attribute</a></h4>
<p class="para">As with its other tag applications, the href attribute specifies the URL of the target <tt>&lt;link&gt;</tt> tag. It is a required attribute, too, and its value is any valid document URL. The specified document is assumed to have a relationship to the current document.</p>
</div>
<div class="sect3" style="text-align: justify;">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-7-SECT-7.2.2">The rel and rev attributes</a></h4>
<p class="para">The rel and  rev attributes express the relationship between the source and target documents. The rel attribute specifies the relationship from the source document to the target; the rev attribute specifies the relationship from the target document to the source document. Both attributes can be included in a single <tt>&lt;link&gt;</tt> tag.</p>
<p class="para">The value of either attribute is a space-separated list of relationships. The actual relationship names are not specified by the HTML standard, although some have come into common usage as listed in 7.3.1.5. For example, a document that is part of a sequence of documents might use:</p>
<div class="screen">
<pre>&lt;link href="part-14.html" rel=next rev=prev&gt;
</pre>
</div>
<p class="para">when referencing the next document in the series. The relationship from the source to the target is that of moving to the next document; the reverse relationship is that of moving to the previous document.</p>
</div>
<div class="sect3" style="text-align: justify;">
<h4 class="sect3"><a class="TITLE" name="HTML-CH-7-SECT-7.2.3">The title attribute</a></h4>
<p class="para">The  title attribute lets you specify the title of the document to which you are linking. This attribute is useful when referencing a resource that does not have a title, such as an image or a non-HTML document. In this case, the browser might use the <tt>&lt;link&gt;</tt> title when displaying the referenced document. For example,</p>
<div class="screen">
<pre>&lt;link href="pics/kumquat.gif"
  title="A photograph of the Noble Fruit"&gt;
</pre>
</div>
<p class="para">tells the browser to use the indicated title when displaying the referenced image.</p>
<p class="para">The value of the attribute is an arbitrary character string, enclosed in quotation marks.</p>
</div>
<h4 class="sect3" style="text-align: justify;"><a class="TITLE" name="HTML-CH-7-SECT-7.2.4">The type attribute</a></h4>
<p class="para" style="text-align: justify;">The  type attribute provides the MIME content type of the linked document. Supported by both Internet Explorer and Netscape, the type attribute can be used with any linked document. It is often used to define the type of linked style sheets. In this context, the value of the type attribute is usually text/css. For example,</p>
<div class="screen" style="text-align: justify;">
<pre>&lt;link href="styles/classic.css" rel=stylesheet type="text/css"&gt;
</pre>
</div>
<h3>Releted Tutorials</h3><ul class="related_post"><br><a href="http://www.mzwriter.org/tutorials/html/how-browsers-might-use-link-tag.tutes" title="How browsers might use link tag">How browsers might use link tag</a></li><br><a href="http://www.mzwriter.org/tutorials/html/creating-simple-menu-list-in-html.tutes" title="Creating Simple menu list in HTML">Creating Simple menu list in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/bullet-listing-in-html-pages.tutes" title="bullet listing in HTML pages">bullet listing in HTML pages</a></li><br><a href="http://www.mzwriter.org/tutorials/html/nested-lists-in-html.tutes" title="Nested Lists in HTML">Nested Lists in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/changing-the-style-and-sequence-of-individual-list-items.tutes" title="Changing the Style and Sequence of Individual List Items">Changing the Style and Sequence of Individual List Items</a></li><br><a href="http://www.mzwriter.org/tutorials/html/li-tag-and-its-use-in-html.tutes" title="li tag and its use in HTML">li tag and its use in HTML</a></li><br><a href="http://www.mzwriter.org/tutorials/html/different-atributes-of-ordered-list.tutes" title="Different Atributes of Ordered list">Different Atributes of Ordered list</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mzwriter.org/tutorials/html/how-to-connect-two-html-pages-establishing-document-relationships.tutes/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
