html ppt

23
HTML CONTENTS THE HTML TAG THE HEAD TAG TITLES THE BODY TAG HEADERS PARAGRAPHS PREFORMATED TEXT BOLD FACE AND ITALICS LIST BLOCQUOTE CENTER SPECIAL FEATURES

Upload: hema-prasanth

Post on 04-Dec-2014

12.922 views

Category:

Education


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Html Ppt

HTML CONTENTS

THE HTML TAGTHE HEAD TAGTITLESTHE BODY TAGHEADERSPARAGRAPHSPREFORMATED TEXTBOLD FACE AND ITALICSLISTBLOCQUOTECENTERSPECIAL FEATURES

Page 2: Html Ppt

THE HTML TAG

<HTML> TAG:

Tags are contained in < > symbols. In most cases you start with the beginning tag, put in the word or words that will be affected by this tag, and at the end of the string of word(s), you place a closing tag.

Is usually placed on the first line of your document. At the end of your document you should close with the </html> tag.

The <html> tag signals the point where text should start being interpreted as HTML code.

Page 3: Html Ppt

THE HEAD TAG

Just like the header of a memo, the head of an HTML document contains special information, like its title. The head of a document is demarcated by <head> and </head> respectively.

<html><head><title>My First HTML Document</title></head>

Page 4: Html Ppt

TITLES

A title tag allows you to specify a Document Title in your browser window. When people make hotlists, this title is what they see in their list after they add your document. The format is:

<title>My First HTML Document</title>

Remember, the title usually doesn't appear in the document itself, but in a title box or bar at the top of the window.

Page 5: Html Ppt

THE BODY TAGLike you might expect, the body tags <body> and </body> define the beginning and end of the bulk of your document. All your text, images, and links will be in the body of the document.

The body should start after the head. A typical page might begin like

<html><head><title>My First HTML Document</title></head><body>

Page 6: Html Ppt

HEADERSThere are up to six levels of headers that can be used in your document, h1 through h6. Header 1 is the largest header and they get progressively smaller through header 6. Below are each of the six headers and how they usually appear in relation to one another.

<h1>This is a header 1 tag</h1>This is a header 1 tag

Headers, as you notice, not only vary in size, they are also bold and have a blank line inserted before and after them.

Page 7: Html Ppt

PARAGRAPHS

In HTML, a paragraph tag <p> should be put at the end of every paragraph of "normal" text (normal being defined as not already having a tag associated with it).

<p> causes a line break and adds a trailing blank line

<br> causes a line break with no trailing blank line

As a convenience to yourself and others who might have to edit your HTML documents, it's a very good idea to put two or three blank lines between paragraphs to facilitate editing.

Page 8: Html Ppt

PREFORMATTED TEXTThe preformatted text tag allows you to include text in your document that normally remains in a fixed-width font and retains the spaces, lines, and tabs of your source document. In other words, it leaves your text as it appears initially or just as you typed it in. Most clients collapse multiple spaces into one space, even tabs are collapsed to one space. The only way to circumvent this is to use the preformatted tag. Visually, preformatted text looks like a courier font.

<pre>this is an example

of a preformatted text tag</pre>

Page 9: Html Ppt

BOLDFACE AND ITALICS

When using these tags, you usually cannot (and probably should not) have text that is both boldface and italics; the last tag encountered is usually the tag that is displayed. For example, if you had a boldface tag followed immediately by an italic tag, the tagged word would appear in italics.

Page 10: Html Ppt

Physical tagsThis is a <b>boldface</b> tag.

This is how boldfacing appears.

This is an <i>italic</i> tag. This is how italics appear.Logical tags

This is a <strong>strongly emphasized</strong> tag.

This is a strongly emphasized tag.

This is an <em>emphasized</em> tag. This is an emphasized tag.

Page 11: Html Ppt

LISTS

There is an easy way in HTML to have numbered, unnumbered, and definition lists. In addition, you can nest lists within lists.

When using lists, you have no control over the amount of space between the bullet or list number, HTML automatically does this for you. Neither (as yet) do you have control over what type of bullet will be used as each browser is different.

Page 12: Html Ppt

UNNUMBERED LISTS

Unnumbered lists are started with the <ul> tag, followed by the actual list items, which are marked with the <li> tag. The list is ended with the ending tag </ul>.

For example, here is an unnumbered list with three items:

<ul> <li> list item 1 <li> list item 2 <li> list item 3 </ul>

Page 13: Html Ppt

NUMBERED LISTS

Here is the same list using a numbered list format:

<ol> <li> list item 1 <li> list item 2 <li> list item 3 </ol>

Page 14: Html Ppt

DEFINITION LISTS

Definition lists allow you to indent without necessarily having to use bullets.

<dl> <dt> This is a term <dd> This is a definition <dd> And yet another definition <dt> Another term <dd> Another definition </dl>

Page 15: Html Ppt

NESTED LISTSFinally, here is a nested list within an unnumbered list (we could just have easily had a nested list within a numbered list).

<ul><li> list item 1 <li> nested

item 1<ul> <li> nested

item 2 <li> nested item 1 </ul> <li> nested item 2 </ul> </ul><li> list item 2 <ul> <li> nested item 1 <li> nested item 2 </ul><li> list item 3 <ul>

Page 16: Html Ppt

BLOCKQUOTE

The blockquote tag indents the text (both on the left and right) inside the tags. The blockquote tag looks like this:

<blockquote>...</blockquote>

and displays like this:

Blockquoted text is often used for indenting big blocks of text such as quotations. The text will be indented until the ending tag is encountered. Again, note that the text here is indented on both the left and the right margins.

Page 17: Html Ppt

CENTER

You can center text, images, and headings with the center tag:

<center>This is a centered sentence</center>

This is a centered sentence.

The center tag automatically inserts a line break after the closing center tag.

Page 18: Html Ppt

HORIZONTAL RULE

To separate sections in a document, you can insert a horizontal rule tag <hr>. A horizontal rule is displayed as follows:

Page 19: Html Ppt

Addresses

The <address> tag normally appears at the end of a document and is used most frequently to mark information on contacting the author or institution that has supplied this information.

<address>Introduction to HTML / Pat Androget /

[email protected]</address>

Page 20: Html Ppt

COMMENTS

It is possible to include comments in a source HTML document that do not appear when seen through a browser. This is most useful for giving warnings and special instructions to future editors of your document.

Comments take the form:

<!-----This comment will not appear in the browser----->

Page 21: Html Ppt

STRIKE-THROUGH

Should you want it, there is a strike-through tag which displays text with a strike.

<strike>This is struck through text</strike>

displays as

This is struck through text

Page 22: Html Ppt

SPECIAL CHARACTERS

&aacute; .... á &acirc; .... â &aelig; .... æ &agrave; .... à &amp; .... & &aring; .... å &atilde; .... ã &auml; .... ä &ccedil; .... ç &eacute; .... é &ecirc; .... ê &egrave; .... è &eth; .... ð &euml; .... ë &gt; .... > &iacute; .... í &icirc; .... î &igrave; .... ì &iuml; .... ï &lt; .... < &ntilde; .... ñ &oacute; .... ó &ocirc; .... ô &ograve; .... ò &oslash; .... ø &otilde; .... õ &ouml; .... ö &quot; .... " &szlig; .... ß &thorn; .... þ &uacute; .... ú &ucirc; .... û &ugrave; .... ù &uuml; .... ü &yacute; .... ý &yuml; .... ÿ

Page 23: Html Ppt

THANK YOU