html

31

Upload: belal-ahmad

Post on 20-Jun-2015

97 views

Category:

Education


0 download

DESCRIPTION

short terms for learning

TRANSCRIPT

Page 1: Html
Page 2: Html

HTML (Hypertext Markup Language) is used to create document on the World Wide Web.

HTML is not a programming language, it is a markup language

A markup language is a set of markup tags

It is not case sensitive language.

Page 3: Html

v 1.0: early 90sHTML+: 1993v 2.0 (RFC 1866, forms): 1995v 3.0 (tables, frames): 1995, schism between Netscape

and Microsoftv 3.2 (style sheets): adopted 1996v 4: 1998, three versions proposed by W3C, but nothing

really adopted yetXHTML: 1999, a marriage of XML and HTMLV 5.0 : Under Construction

Page 4: Html

Operating system independent(Cross-platform compatibility )

Browser independent The user controls the browser The author controls organization

Page 5: Html

Tags are instruction that are embedded directly into the text of document.

Html Tags are signals to a browser that should do something other than just through text upon the screen.

All HTML tags begin with an open angle bracket (<) and end with close angle bracket (>).

HTML tags can be a two types :- Paired Tag Singular Tags

Page 6: Html

<HTML><HEAD></HEAD><BODY></BODY>

</HTML>

Page 7: Html

The <HTML> tag encloses all other HTML tags and associated text within your document. It is an optional tag. You can create an HTML document that omits these tags, and your browser can still read it and display it. But it is always a good form to include the start and stop tags.The format is:<HTML>Your Title and Document (contains text with HTML tags) goes here</HTML>

Page 8: Html

HEAD tag comes after the HTML start tag. It contains TITLE tagto give the document a title that displays on the browsers title barat the top.The Format is:<HEAD>

<TITLE>Your title goes here

</TITLE></HEAD>

Page 9: Html

The BODY tag contains all the text and graphics of the document with all the HTML tags that are used for control and formatting of the page.The Format is:<BODY>Your Document goes here</BODY>

Page 10: Html

Attribute are used to say something about the element that carries them and always appear on the opening tag of the element that carries them. All attributes are made-up two parts a name and a value.

The name is the property of the element that you want to set.

The value is what you want the value of property to be.

Page 11: Html

Syntax-<tagname attr_1= “value” attr_2= “value”>Content</tagname>

Example<body bgcolor=“red” text=”blue”>Text….</body>

Page 12: Html

Bgcolor Background Text Bottommargin- Topmargin- Leftmargin- Rightmargin- Link- Vlink-

Page 13: Html

Line break <br> Paragraph <p>…</p>

◦ Attribute of paragraph tag Align

Drawing line <hr>◦ Attribute of <hr> tag

Align Size (thickness) Width (length) Color

Page 14: Html

Headings <H1>,<H2>…<H6> Bold <B>..</B>. Italics <i>…</I> Underline <U>…</U> Subscript <SUB>…</SUB> Superscript <SUP>..</SUP> Delete <DEL>…</DEL> Center <CENTER>…. </CENTER> Blinking text <BLINK>..</BLINK> Marquee <MARQUEE>… </MARQUEE>

Page 15: Html

Font <FONT>…</FONT>◦ Attribute of FONT tag

Face Size (1to 7 default is 3) Color

Comment <!--message text-->

Page 16: Html

Space- &nbsp; &- &amp; >- &gt; <- &lt; ©- &copy ®- &reg

Page 17: Html

<IMG> tag is used to insert image on web page , it support .gif,.png,.jpg image file.◦ Attribute of <IMG> tag

Src Width Height Border Align Hspace Vspace Alt

Page 18: Html

<bgsound> tag is used to embed the sound file in web page.◦ Attribute of <bgsound>

Src Loop (-1….)

Page 19: Html

Ordered list <ol>..</ol>◦ Attribute of <ol> tag

Type (“1”,”i”, “I”, “a”, “A”) Start (numeric)

Unordered list <ul>..</ul>◦ Attribute of <ul> tag

type (“fillround”, “square”, “round”)◦ List item <li>..</li>

Attribute of <li> tag value

Page 20: Html

<a> ..</a> tag is used to make link in html documentthere are two types of link

Internal link External Link

◦ Attribute of <a> tag Href Target Name

Page 21: Html

Table <table></table> Table row <tr></tr> Table data <td></td> Table header<th></th> Caption <caption>

◦ Attribute of <caption> tag Align: bottom, top

Page 22: Html

◦ Border◦ Align◦ Valign◦ Width◦ Height◦ Cellpadding◦ Cellspacing

Page 23: Html

Colspan Rowspan Bgcolor Width Height

Page 24: Html

<Form></form> tag is used to create form in HTML.

Forms are used for data gathering in webpage.

It provide the full range of GUI controls It can automatically submit data collected in

its control through a web Server

Page 25: Html

Name Method

◦ Get◦ Post

Action

Page 26: Html

Text – Text fields accept a single line of text entry.◦ <Input Type=“Text” name=“t1” value=“”>

Password◦ <Input type=“password” name=“pass”

value=“”> Button

◦ <Input type=“Button” name=“but” value=“Ok”> Submit

◦ <Input type=“submit” name=“s1” value=“UPDATE”>

Page 27: Html

Checkbox◦ <input type=“checkbox” name=“c1” value=“1”

checked> Radio Button

◦ <input type=“radio” name=“r1” value=“1”>◦ (note) radio name are same for one group

TextArea◦ <textarea name=“ta1”>….</textarea>◦ Attribute of text area

Rows cols

Page 28: Html

Selection List<select >

<option> one</option><option> one</option><option> one</option>

</option>◦Attribute of select tag

SizeName

Page 29: Html

Frameset: <frameset> …</frameset>◦ It is used to dividing a webpage into sections◦ Attribute of Frameset

Rows Cols

Frame: <frame>…</frame>◦ It is used for inserting page into specific section.◦ Attribute of Frame

src name

Page 30: Html

Noresize Scrolling Marginheight Marginwidth Frameborder Border noframe

Page 31: Html