Sie sind auf Seite 1von 6

<blockquote>

Typical rendering A typical rendering might be a slight extra left and right indent, and/or italic font. BLOCKQUOTE causes a paragraph break, and typically a line or so of white space will be allowed between it and any text before or after it. Blockquoting is similar to using the tab function on the keyboard. It will indent your text. The start tag is <BLOCKQUOTE> and the end tag is </BLOCKQUOTE>. You can even use a series of blockquotes enabling you to indent the text as many times as you need. sets blocks of text apart from the main body of text. The blocked text is indented on the right and on the left. A line space automatically is inserted before and after blocked text (that is, an entire line is skipped between blocked text and any text before and after it). Blockquoted text may be nested inside blockquoted text (one block inside of another block inside of another block).

<pre>
Text in a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks. Only width attribute is available in <pre> .which specifies the max no of characters in per line.

<div>
The <div> tag defines logical divisions (defined) in your Web page. It acts a lot like a paragraph tag, but it divides the page up into larger sections. <div> also gives you the chance to define the style of whole sections of HTML. You could define a section of your page as a call out and give that section a different style from the surrounding text. But that's not all it does! The <div> tag gives you the ability to name certain sections of your documents so that you can affect them with style sheets or Dynamic HTML. One thing to keep in mind when using the <div> tag is that it breaks paragraphs. It acts as a paragraph end/beginning, and while you can have paragraphs within a <div> you can't have a <div> inside a paragraph. The primary attributes of the <div> tag are:

id title style

align : left/right/center/justify

<htmL> <body> <div align="left" style="background:green;font-size:50px;"> <h5 >SEARCH LINKS</h5> <a target="_blank" href="www.google.com">Google</a> </div> </body> </html>

<font>
The <font> tag specifies the font face, font size, and font color of text. The <font> tag is deprecated in HTML 4, and removed from HTML5. Attributes of font are. Size = value range from 1 to 7 Color = The color value can be any of the following 16 color names: black, silver, white, gray, maroon, red, blue, green, yellow, purple, fuchsia, cyan, lime, olive, navy, teal, aqua. And hexadecimal values Yellow= #FFFF00 Red = #FF0000 Face = To change the font style from the default (Times New Roman) to a different style, simply add the attribute FACE to the opening FONT tag. As value for the FACE attribute you can use any specific font name such as "verdana", "arial", "georgia", "bookman old style", "comic sans ms" and many more. Alternatively you may use generic font styles such as "serif", "sans-serif", "cursive", "fantasy" and "monospace". The font face values are case-insensitive, i.e. it doesnt matter whether you type "Arial" or "arial".

<basefont>
The <basefont> tag is only supported by Internet Explorer.

The <basefont> element is deprecated in HTML 4.01. The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document. <p>This is the standard font color for this document.<br /> <basefont color="#ff0000" face=courier, serif /> And now the font is red. <basefont color="#000000" /> And now the font is back to normal.</p>

HTML Definition Lists


A definition list is a list of items, with a description of each item. The <dl> tag defines a definition list. The <dl> tag is used in conjunction with <dt> (defines the item in the list) and <dd> (describes the item in the list): <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl> How the HTML code above looks in a browser: Coffee - black hot drink Milk - white cold drink

<ol>
The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical. Use the <li> tag to define list items. Attributes. 1.start = Use styles instead. Specifies the start value of an ordered list 2. type =
Specifies the kind of marker to use in the list.

Use

styles

instead.

<ol type="A" start="10"> <li>bad</li> <li>good</li> </ol>

1. Item one 2. Item two 3. Item three 1. Item A 2. Item B 3. Item C 4. Item four 5. Item five
<OL> <LI> Item one <LI> Item two <LI> Item three <OL> <LI> Item A <LI> Item B <LI> Item C </OL> <LI> Item four <LI> Item five </OL>

<ul>
The <ul> tag defines an unordered (bulleted) list. Use the <ul> tag together with the <li> tag to create unordered lists.
Attributes 1. type: disc/square/circle

MENU LIST
MENU is deprecated in HTML 4 in favor of UL. The <menu> tag is used to create a list of menu choices.

<menu> <li>html</li> <li>xhtml</li> <li>css</li> </menu> html xhtml css

Directory list
At times it is beneficial to create a list of related, indented terms which are not preceded by either bullets or numbers. In such cases, non-empty directory list tags may be used: <DIR>directory list</DIR>: creates a directory listing where each entry is indented (on most browsers). Directory lists may be nested inside directory lists or inside any other types of lists (one list inside of another list inside of another list). On most browsers, a line space automatically is inserted before and after a directory list (that is, an entire line is skipped between a directory list and any text before and after it), except for (on many browsers) a list nested within another list. Note: An example of directory lists nested within an unordered list may be seen by viewing the list of hyperlinks in the HTML source code of the initial page (Teds HTML Tutorial) of this portion of my web site.

The easiest way to understand directory list tags is to see that <DIR> tags indent the text coming after them, while </DIR> tags outdent the text coming after them. The difference between <DIR> & </DIR> tags and <BLOCKQUOTE> & </BLOCKQUOTE> tags is that directory list tags indent only the left margin of the text between them, whereas blockquote tags indent both the left and right margins of the text between them.

hello bye namskar namskar bye hello

table of contents<dir> hello<dir> bye<dir> namskar<br> namskar</dir> bye</dir> hello

Das könnte Ihnen auch gefallen