59
1 Introduction to HTML

1 Introduction to HTML. 2 Definitions W W W World Wide Web. HTML HyperText Markup Language The Language of Web Pages on the World Wide Web

Embed Size (px)

DESCRIPTION

3  “Normal text” surrounded by bracketed tags that tell browsers how to display web pages  Pages end with “.htm” or “.html”  HTML Editor – A word processor that has been specialized to make the writing of HTML documents more effortless.

Citation preview

Page 1: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

1

Introduction to

HTML

Page 2: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

2

Definitions W W W – World Wide Web. HTML – HyperText Markup Language –

The Language of Web Pages on the World Wide Web.

HTML is a text formatting language. URL – Uniform Resource Locator. Browser – A software program which is

used to show web pages.

Page 3: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

3

“Normal text” surrounded by bracketed tags that tell browsers how to display web pages

Pages end with “.htm” or “.html” HTML Editor – A word processor

that has been specialized to make the writing of HTML documents more effortless.

Page 4: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

4

Tags

Codes enclosed in brackets Usually paired

<TITLE>My Web Page</TITLE> Not case sensitive

<TITLE> = <title> = <TITLE>

Page 5: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

5

Starting NotePad

NotePad is the standard text editor that comes with the microsoft windows operating system. To start NotePad :

Click on the “Start” button located on your Windows task bar.

Click on “Programs” and then click on the directory menu labeled “Accessories”.

Locate the shortcut “NotePad” and click the shortcut once.

Page 6: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

6

Creating a Basic Starting Document

<HTML><HEAD>

<TITLE>AMITY University</TITLE></HEAD><BODY>

This is what is displayed.</BODY></HTML>

Page 7: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

7

Creating a Basic Starting Document

The HEAD of your document point to above window part. The TITLE of your document appears in the very top line of the user’s browser. If the user chooses to “Bookmark” your page or save as a “Favorite”; it is the TITLE that is added to the list.

The text in your TITLE should be as descriptive as possible because this is what many search engines, on the internet, use for indexing your site.

Page 8: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

8

Setting Document Properties

Document properties are controlled by attributes of the BODY element. For example, there are color settings for the background color of the page, the document’s text and different states of links.

Page 9: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

9

Edit, Save and View Cycle To preview Your Work, open a web browser and do

the following:1. Click on the menu labeled “File”.2. Locate the menu option, “Open”.

Page 10: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

10

Edit, Save and View Cycle

3. In the “Open” dialog box, click on the “Browse” button and locate your web document.

4. Click “OK” once you have selected your file.

The web browser will load the same document but with the new revisions. This process is the Edit, Save and View Cycle.

Page 11: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

11

Headings, <Hx> </Hx> Inside the BODY element, heading elements

H1 through H6 are generally used for major divisions of the document. Headings are permitted to appear in any order, but you will obtain the best results when your documents are displayed in a browser if you follow these guidelines:

1. H1: should be used as the highest level of heading, H2 as the next highest, and so forth.

2. You should not skip heading levels: e.g., an H3 should not appear after an H1, unless there is an H2 between them.

Page 12: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

12

Headings, <Hx> </Hx><HTML><HEAD><TITLE> Example Page</TITLE></HEAD><BODY><H1> Heading 1 </H1><H2> Heading 2 </H2><H3> Heading 3 </H3><H4> Heading 4 </H4><H5> Heading 5 </H5><H6> Heading 6 </H6></BODY></HTML>

Heading 1Heading 2Heading 3Heading 4Heading 5Heading 6

Page 13: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

13

Paragraphs, <P> </P>

Paragraphs allow you to add text to a document in such a way that it will automatically adjust the end of line to suite the window size of the browser in which it is being displayed. Each line of text will stretch the entire length of the window.

Page 14: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

14

Paragraphs, <P> </P><HTML><HEAD><TITLE> Example Page</TITLE></HEAD><BODY></H1> Heading 1 </H1><P> Paragraph 1, ….</P><H2> Heading 2 </H2><P> Paragraph 2, ….</P><H3> Heading 3 </H3><P> Paragraph 3, ….</P><H4> Heading 4 </H4><P> Paragraph 4, ….</P><H5> Heading 5 </H5><P> Paragraph 5, ….</P><H6> Heading 6</H6><P> Paragraph 6, ….</P></BODY></HTML>

Heading 1Paragraph 1,….

Heading 2Paragraph 2,….

Heading 3Paragraph 3,….

Heading 4Paragraph 4,….

Heading 5Paragraph 5,….

Heading 6Paragraph 6,….

Page 15: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

15

Break, <BR> Line breaks allow you to decide where the text

will break on a line or continue to the end of the window.

A <BR> is an empty Element, meaning that it may contain attributes but it does not contain content.

The <BR> element does not have a closing tag.

Page 16: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

16

Horizontal Rule, <HR>

The <HR> element causes the browser to display a horizontal line (rule) in your document.

<HR> does not use a closing tag, </HR>.

Page 17: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

17

Horizontal Rule, <HR>Attribute Description Default Value

SIZE Height of the rule in pixels 2 pixels

WIDTHWidth of the rule in pixels or percentage of screen width

100%

NOSHADEDraw the rule with a flat look instead of a 3D look

Not set(3D look)

ALIGN Aligns the line (Left, Center, Right) Center

COLOR Sets a color for the rule (IE 3.0 or later) Not set

Page 18: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

18

Horizontal Rule, <HR><HTML><HEAD><TITLE> Example Page</TITLE></HEAD><BODY><H1> Heading 1 </H1><P>Paragraph 1, <BR>Line 2 <BR><HR>Line 3 <BR></P></BODY></HTML>

Heading 1Paragraph 1,….Line 2______________________

_____Line 3

Page 19: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

19

Character Formatting

In this chapter you will learn how to enhance your page with Bold, Italics, and other character formatting options.

ObjectivesUpon completing this section, you should be able to1. Change the color and size of your text.2. Use Common Character Formatting Elements.3. Align your text.4. Add special characters.5. Use other character formatting elements.

Page 20: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

20

Bold, Italic and other Character Formatting Elements

<FONT SIZE=“+2”> Two sizes bigger</FONT> The size attribute can be set as an absolute value from 1 to 7

or as a relative value using the “+” or “-” sign. Normal text size is 3 (from -2 to +4).

<B> Bold </B> <I> Italic </I> <U> Underline </U> Color = “#RRGGBB” The COLOR attribute of the FONT

element. E.g., <FONT COLOR=“#RRGGBB”>this text has color</FONT>

Page 21: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

21

Bold, Italic and other Character Formatting Elements

<EM> Emphasis </EM> Browsers usually display this as italics.

<STRONG> STRONG </STRONG> Browsers display this as bold.

<TT> TELETYPE </TT> Text is displayed in a mono-spaced font. A typewriter text, e.g. fixed-width font.

<CITE> Citation </CITE> represents a document citation (italics). For titles of books, films, etc. Typically displayed in italics. (A Beginner's Guide to HTML)

Page 22: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

22

Bold, Italic and other Character Formatting Elements

<P> <FONT SIZE=“+1”> One Size Larger </FONT> - Normal –

<FONT SIZE=“-1”> One Size Smaller </FONT> <BR>

<B> Bold</B> - <I> italics</I> - <U> Underlined </U> -

<FONT COLOR=“#FF0000”> Colored </FONT> <BR>

<EM> Emphasized</EM> - <STRONG> Strong </STRONG> - <TT> Tele Type </TT> <BR>

One Size Larger - Normal – One Size Smaller Bold - italics - Underlined - Colored Emphasized - Strong - Tele Type

Page 23: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

23

Alignment

Some elements have attributes for alignment (ALIGN) e.g. Headings, Paragraphs and Horizontal Rules.

The Three alignment values are : LEFT, RIGHT, CENTER.

<CENTER></CENTER> Will center elements.

Page 24: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Attributes(Alignments)

• <!DOCTYPE html>• <html>• <head>• <title>Align Attribute Example</title>• </head>• <body>• <p align="left">This is left aligned</p>• <p align="center">This is center aligned</p>• <p align="right">This is right aligned</p>• </body>• </html>

24

Page 25: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML AttributesStyle tag

<html><head><title>The style Attribute</title></head><body><p style="font-family:arial; color:#FF0000;">Some

text...</p></body></html>

25

Page 26: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Attributes<html><head><title>Superscript Text Example</title></head><body><p>The following word uses a <sup>superscript</sup> typeface.</p><p>The following word uses a <sub>subscript</sub> typeface.</p><p>The following word uses a <strike>strikethrough</strike> typeface.</p><p>The following word uses a <i>italicized</i> typeface.</p><p>The following word uses a <u>underlined</u> typeface.</p<p>The following word uses a <b>bold</b> typeface.</p></body></html>

26

Page 27: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Tables<html><head><title>HTML Tables</title></head><body><table border="1"><tr><td>Row 1, Column 1</td><td>Row 1, Column 2</td></tr><tr><td>Row 2, Column 1</td><td>Row 2, Column 2</td></tr></table></body></html>

27

Page 28: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Table with values<!DOCTYPE html><html><head><title>HTML Table Header</title></head><body><table border="1"><tr><th>Name</th><th>Salary</th></tr><tr><td>Ramesh Raman</td><td>5000</td></tr><tr><td>Shabbir Hussein</td><td>7000</td></tr></table></body></html>

28

Page 29: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

29

Page 30: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Colspan and Rowspan Attributes

• You will use colspan attribute if you want to merge two or more columns into a single column. Similar way you will use rowspan if you want to merge two or more rows.

30

Page 31: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Colspan and Rowspan Attributes

<!DOCTYPE html><html><head><title>HTML Table Colspan/Rowspan</title></head><body><table border="1"><tr><th>Column 1</th><th>Column 2</th><th>Column 3</th></tr><tr><td rowspan="2">Row 1 Cell 1</td><td>Row 1 Cell 2</td><td>Row 1 Cell 3</td></tr><tr><td>Row 2 Cell 2</td><td>Row 2 Cell 3</td></tr><tr><td colspan="3">Row 3 Cell 1</td></tr></table></body></html>

31

Page 32: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

32

Page 33: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Tables Backgrounds

• bgcolor attribute - You can set background color for whole table or just for one cell.

• bordercolor - You can also set border color also using bordercolor attribute.

33

Page 34: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Tables Backgrounds<html><head><title>HTML Table Background</title></head><body><table border="1" bordercolor="green" bgcolor="yellow"><tr><th>Column 1</th><th>Column 2</th><th>Column 3</th></tr><tr><td rowspan="2">Row 1 Cell 1</td><td>Row 1 Cell 2</td><td>Row 1 Cell 3</td></tr><tr><td>Row 2 Cell 2</td><td>Row 2 Cell 3</td></tr><tr><td colspan="3">Row 3 Cell 1</td></tr></table></body></html>

34

Page 35: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Lists

• HTML offers web authors three ways for specifying lists of information. All lists must contain one or more list elements. Lists may contain:

• <ul> - An unordered list. This will list items using plain bullets.

• <ol> - An ordered list. This will use different schemes of numbers to list your items.

• <dl> - A definition list. This arranges your items in the same way as they are arranged in a dictionary.

35

Page 36: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Unordered Lists

• An unordered list is a collection of related items that have no special order or sequence. This list is created by using HTML <ul> tag. Each item in the list is marked with a bullet.

36

Page 37: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Unordered Lists• <!DOCTYPE html>• <html>• <head>• <title>HTML Unordered List</title>• </head>• <body>• <ul>• <li>Beetroot</li>• <li>Ginger</li>• <li>Potato</li>• <li>Radish</li>• </ul>• </body>• </html>

37

Page 38: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

The type Attribute

• You can use type attribute for <ul> tag to specify the type of bullet you like. By default it is a disc. Following are the possible options:

• <ul type="square"> • <ul type="disc"> • <ul type="circle">

38

Page 39: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Ordered Lists

• If you are required to put your items in a numbered list instead of bulleted then HTML ordered list will be used. This list is created by using <ol> tag. The numbering starts at one and is incremented by one for each successive ordered list element tagged with <li>.

39

Page 40: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Ordered Lists<!DOCTYPE html><html><head><title>HTML Ordered List</title></head><body><ol><li>Beetroot</li><li>Ginger</li><li>Potato</li><li>Radish</li></ol></body></html>

40

Page 41: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

The type Attribute

• You can use type attribute for <ol> tag to specify the type of numbering you like. By default it is a number. Following are the possible options:

• <ol type="1"> - Default-Case Numerals. <ol type="I"> - Upper-Case Numerals. <ol type="i"> - Lower-Case Numerals. <ol type="a"> - Lower-Case Letters. <ol type="A"> - Upper-Case Letters.

41

Page 42: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Definition Lists• HTML and XHTML support a list style which is

called definition listswhere entries are listed like in a dictionary or encyclopedia. The definition list is the ideal way to present a glossary, list of terms, or other name/value list.

• Definition List makes use of following three tags.• <dl> - Defines the start of the list• <dt> - A term• <dd> - Term definition• </dl> - Defines the end of the list

42

Page 43: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Definition Lists<!DOCTYPE html><html><head><title>HTML Definition List</title></head><body><dl><dt><b>HTML</b></dt><dd>This stands for Hyper Text Markup Language</dd><dt><b>HTTP</b></dt><dd>This stands for Hyper Text Transfer Protocol</dd></dl></body></html>

43

Page 44: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Image Insertion<! Image Insert in html><html><head><title>Using Image in Webpage</title></head><body><p>Simple Image Insert</p><img src="C:\Documents and Settings\ashima\Desktop\

apple_ex.png" /></body></html>

44

Page 45: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

45

Page 46: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Frames

• HTML frames are used to divide your browser window into multiple sections where each section can load a separate HTML document. A collection of frames in the browser window is known as a frameset. The window is divided into frames in a similar way the tables are organized: into rows and columns.

46

Page 47: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Creating Frames

• To use frames on a page we use <frameset> tag instead of <body> tag. The <frameset> tag defines how to divide the window into frames. The rows attribute of <frameset> tag defines horizontal frames and cols attribute defines vertical frames. Each frame is indicated by <frame> tag and it defines which HTML document shall open into the frame.

47

Page 48: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Frame-Row Wise<html><head><title>HTML Frames</title></head><frameset rows="10%,80%,10%"> <frame name="top" src="/html/top_frame.htm" /> <frame name="main" src="/html/main_frame.htm" /> <frame name="bottom" src="/html/bottom_frame.htm" /></frameset></html>

48

Page 49: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Frame- Column Wise

<html><head><title>HTML Frames</title></head><frameset cols="25%,50%,25%"><frame name="left" src="/html/top_frame.htm" /><frame name="center" src="/html/main_frame.htm" /><frame name="right" src="/html/bottom_frame.htm" /></frameset></html>

49

Page 50: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

50

Page 51: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Linking Documents

• A link is specified using HTML tag <a>. This tag is called anchor tag and anything between the opening <a> tag and the closing </a> tag becomes part of the link and a user can click that part to reach to the linked document. Following is the simple syntax to use <a> tag.

51

Page 52: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Linking Documents<!DOCTYPE html><html><head><title>Hyperlink Example</title></head><body><p>Click following link</p><a href="http://www.google.com">Google</a></body></html>

52

Page 53: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Linking Documents<html><head><title>Hyperlink Example</title></head><body><p>Click any of the following links</p><a href="http://www.google.com"> Google </a><br><a href="http://www.gmail.com"> Gmail </a><br><a href="http://www.facebook.com"> facebook </a></body></html>

53

Page 54: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

54

Page 55: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Html Forms

• HTML Forms are required when you want to collect some data from the site visitor. For example during user registration you would like to collect information such as name, email address, credit card, etc.

• A form will take input from the site visitor and then will post it to a back-end application such as CGI, ASP Script or PHP script etc. The back-end application will perform required processing on the passed data based on defined business logic inside the application.

55

Page 56: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

HTML Form Controls

• Text Input Controls• Checkboxes Controls• Radio Box Controls• Select Box Controls• Submit and Reset Button

56

Page 57: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Form Example<!DOCTYPE html><html><head><title>Text Input Control</title></head><body><form >First name: <input type="text" name="first_name" /><br>Last name: <input type="text" name="last_name" /><br>Password: <input type="password" name="password" /><br>Description : <br /><textarea rows="5" cols="50" name="description">Enter description here...</textarea><br><p> Select your class </p><input type="checkbox" name="MBA" > MBA<input type="checkbox" name="MCA" > MCA<input type="checkbox" name="MCom" > MCom<br><p>Select your Subjects</p><input type="radio" name="subject" value="maths"> ITM<input type="radio" name="subject" value="physics"> Accounts<br><p> Select your city </p><select name="City"><option value="Delhi" selected>Delhi</option><option value="Faridabad">Faridabad</option></select><br><br><input type="submit" name="submit" value="Submit" /><input type="reset" name="reset" value="Reset" /></form></body></html>

57

Page 58: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

58

Page 59: 1 Introduction to HTML. 2 Definitions  W W W  World Wide Web.  HTML  HyperText Markup Language  The Language of Web Pages on the World Wide Web

Queries?

59