Vous êtes sur la page 1sur 13

HYPER TEXT MARKUP LANGUAGE

HTML

BACK GROUND OF HTML


Used to write to HTML documents. Its output can be viewed in any browser. Once pages are created we can upload these pages using any FTP software. The web depends upon three things URL (uniform naming scheme for locating resources over the web. Name of the machine hosting the resources. Name of the resource itself.

HISTORY OF HTML
A method where ordinary text can be converted into hypertext. Set of special codes included to control the layout and appearance of the text. HTML is not a programming language. Tells the browser, how to display the contents. Tim Berners Lee developed HTML in early 1990s. W3C is the body which controls the HTML standards. HTML is subset of SGML, originated in 1960

STRUCTURE OF HTML DOCUMENT


It have two parts on-code and an off-code. They are called as tags. Working with HTML document
Write source code using any text editor. Save file with HTML extension. View it in any web browser i.e internet explorer or netscape navigator.

TAG = refers to the HTML codes that define the element in an HTML file.
Container tag = consists of two tags, a start tag and an end tag which enclose the text they effect. Empty tag= standalone tag, a start tag and no end tag. Attribute = included with actual tag, either within start tag or an empty tag. End tag dont have attribute.

Any HTML page have


The HTML tag The Title tag The Head tag The Body tag.

<HTML> .</HTML>
The <html> tag tells the browser that this is an HTML document. The <html> tag represents the root of an HTML document. The <html> tag is the container for all other HTML elements.

<HEAD>.</HEAD>
The <head> element is a container for all the head elements. The following elements can go inside the <head> element: <title> (this element is required in the head section) <style> <base> <link> <meta> <script> <noscript>

<TITLE>.</TITLE>
The <title> tag is required in all HTML documents and it defines the title of the document. The <title> element:
Defines a title in the browser toolbar Provides a title for the page when it is added to favorites Displays a title for the page in search-engine results

<BODY>.</BODY>
The <body> tag defines the document's body. The <body> element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc. Its major attributes Alink = color (Specifies the color of an active link in a document) Background = url (Specifies a background image for a document) Bgcolor=color (Specifies the background color of a document) Link = color (Specifies the color of unvisited links in a document) Text = color (Specifies the color of the text in a document) Vlink = color (Specifies the color of visited links in a document)

<P>
The <p> tag defines a paragraph. Browsers automatically add some space (margin) before and after each <p> element. The margins can be modified with CSS (with the margin properties). Major attributes
Align = right, left, center, justify (Specifies the alignment of the text within a paragraph)

TEXT FORMATTING
<b></b>
The <b> tag specifies bold text.

<i>..</i>
The content of the <i> tag is usually displayed in italic.

<u>.</u>
The <u> tag represents some text that should be stylistically different from normal text.

<big>.</big>
Make text bigger than normal

<small></small>
The <small> tag defines smaller text.

<em>..</em>
The <em> tag is a phrase tag. It renders as emphasized text.

<samp>.</samp>
Defines sample output from a computer program

<kbd>.</kbd>
Defines keyboard input

<del>.</del>
The <del> tag defines text that has been deleted from a document.

FORMATTING THE TEXT


Making text bold, italic and under line. First way we can make use of <b>---</b>, <i>.</i>, <u>-----</u> and we can use <emphasis>.</emphasis> and <strong>..</strong> tags. Most browsers supports <b>, <i> and <u> tags. <pre></pre> used to display a block of preformatted text in fixed pitch font. Can be used to display text in tabular or columnar format.

Vous aimerez peut-être aussi