4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

© 2002 D & D Enterprises 1 Linking Images For Navigation & Clickable Image Maps.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
3.02D HTML Overview 3.02 Develop webpages.
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
HTML Tags and Their Functions
Tables Tables provide a means of organising the layout of data
Basic HTML Workshop LIS Web Team Spring 2007.
The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that.
Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
Internet Applications Development Lecture 2 L. Obead Alhadreti.
Web Development & Design Foundations with XHTML
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
Learning the Basics – Lesson 1
Dr. Alexandra I. Cristea XHTML.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
WeB application development
Website Design.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Overview  Recap  HTML. Recap  What is cloud computing?  What are application service providers (ASPs)?  Describe major functions of operating systems.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
HTML Introduction HTML
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
COMPUTERS AND INFORMATION SYSTEMS HTML. How the Web Works To access a web site  Enter its address (URL) in the address box of your browser 
Overview of HTML. Three Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
HTML (HyperText Markup Language)
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 8 Word and the Internet Robert Grauer, Keith.
CS117 Introduction to Computer Science II Lecture 1 Introduction to WWW and HTML Instructor: Li Ma Office: NBC 126 Phone: (713)
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Just Enough HTML How to Create Basic HTML Documents.
Overview of HTML/XHTML Two Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
HTML: Hyptertext Markup Language Doman’s Sections.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
CPT 499 Internet Skills for Educators Session Ten Class Notes.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Introducing the World Wide Web Internet- a structure made up of millions of interconnected computers whose users communicate with each other and share.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
Internet and World Wide Web Introduction to the Internet.
Objective % Select and utilize tools to design and develop websites.
Introduction to XHTML.
Objective % Select and utilize tools to design and develop websites.
Introduction to HTML- Basics
An Introduction to HTML Pages
Presentation transcript:

4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Reference H.M. Deitel, P.J. Deitel and T.R. Nieto, Internet and World Wide Web: How to Program, Prentice Hall, 2002

Web site development To develop a Web site, three steps: ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Web site development To develop a Web site, three steps: Obtain the appropriate equipment Web Server – hardware and software Register the Web Server to an Internet Service Provider (ISP) Obtain the IP address and DNS address Develop the contents Internet Programming

Internet Programming Web service is a kind of client / server process ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Internet Programming Web service is a kind of client / server process Need interaction between client and server Programming for providing Web service can also be divided into Client-side programming: to define the operation to be performed on the client’s machine Server-side programming: to define the operation to be performed on the server

Server-side Programming Skills that are often required: CGI PHP ASP ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Internet Database Web Server Web Client Server-side Programming Skills that are often required: CGI PHP ASP Perl Java Servlet, … Client-side Programming Skills that are often required: XHTML Javascript Java Dreamweaver Flash SMIL, XML …

4.1 XHTML – Extensible HyperText MarkUp Language ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML 4.1 XHTML – Extensible HyperText MarkUp Language

Web programming using XHTML ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML Web programming using XHTML Nowadays, there are many tools that help to develop Web page Dreamweaver, Visual studio Provide sophisticated tools to allow Web page developed in a graphical manner Finally, the job of these tools is to convert the user design to XHTML code Understanding of XHTML allows us fine tuning the codes generated by these tools understand the source of a Web page

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML What is XHTML? Unlike procedural programming languages, e.g. C, C++, XHTML is a markup language that specifies the format of document to be seen in browser XHTML has replaced the HTML as the primary means of describing the Web page content Become a World Wide Web Consortium (W3C) recommendation W3C is an industry consortium Seeks to promote standards for the evolution of the Web and interoperability between WWW products by producing specifications and reference software Compared with HTML, XHTML provides more robust, richer and extensible features

Features of XHTML Platform independent Text-based ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML Features of XHTML Platform independent The same piece of code can give the same display in Mac, Linux and Windows Text-based Program is written with ASCII characters Can be written using a text editor, such as notepad An XHTML file must have an extension of .html or .htm Information is generally enclosed inside paired tags E.g. <html> … </html> There are many tags in XHTML. They specify different information required to display the Web page content start tag end tag (with a /)

Basic Structure of XHTML ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML Basic Structure of XHTML <html> <!-- This is a comment --> <head> <title> This is title, describing the content </title> </head> <body> This is body, main part of the page </body> </html>

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML useful for validating the code to see if they meet the xhtml standard <?xml version = "1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- main.html --> <!-- Our first Web page --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Internet and WWW How to Program - Welcome </title> </head> <body> <p>Welcome to XHTML!</p> </body> </html> comment define the namespace of html define the title of the web page Example <p> - new paragraph

See the title defined in head ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML See the title defined in head That’s the content defined in body

An XHTML document can be divided into 2 sections head section ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming - XHTML An XHTML document can be divided into 2 sections head section contains information of how the page is formatted e.g. <title> … </title> can be found in head section to indicate the title of the Web page when it is shown in browser body section contains the actual page contents e.g. <p>Welcome to XHTML!</p> shows a line of text “Welcome to XHTML!” on the new paragraph

Tags Tags: case sensitive ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Tags Tags: case sensitive For XHTML, <center> is different from <CENTER> For HTML, it is case insensitive Browse will not display information within tag that does not understand Tags: no precise positioning Many start tags define attributes that provide additional information E.g. <html xmlns = "http://www.w3.org/1999/xhtml"> start tag attribute value attribute name

Common Tags – Headers Some text may be more important the others ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Common Tags – Headers Some text may be more important the others XHTML provides six headers, called header elements, for specifying the relative importance of information <h1> … </h1>, <h2> … </h2> to <h6> … </h6> It is assumed the text in <h1> is more important than that in <h2> and so on so forth By default, the size of the text that is more important is bigger

6 headers are all used to indicate the relative importance of text ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Internet and WWW How to Program - Headers</title> </head> <body> <h1>Level 1 Header</h1> <h2>Level 2 header</h2> <h3>Level 3 header</h3> <h4>Level 4 header</h4> <h5>Level 5 header</h5> <h6>Level 6 header</h6> </body> </html> 6 headers are all used to indicate the relative importance of text

Text under <h1> has the largest size ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Text under <h1> has the largest size

Meta Tag HTML interacts with the search engines through using meta tag INFORMATION TECHNOLOGY – Part I 4. Internet Programming Meta Tag HTML interacts with the search engines through using meta tag These words are compared with words in search requests <head> <meta name=“keywords” content=“lecture notes, html, form, feedback”> <meta name=“description” content = “this web site describes …”> </head> Description of a page seen on searching

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Linking Webpage One of the most important XHTML features is the hyperlink Link to another resources, such as web page, image, etc. Achieve by using the anchor tag <a>: To a web page: <a href=“http://www.eie.polyu.edu.hk”>PolyU</a> anchor attribute The name on the Web page that represents this link Value of the attribute: The address of the Web page

strong tag lets the text to be displayed with bold font ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming strong tag lets the text to be displayed with bold font Other similar tags include <u> underline and <em> italic <body> <h1>Here are my favorite sites</h1> <p><strong>Click a name to go to that page. </strong></p> <!-- Create four test hyperlinks --> <p><a href = "http://www.polyu.edu.hk">PolyU</a></p> <p><a href = "http://www.eie.polyu.edu.hk">EIE</a></p> <p><a href = "http://www.eie.polyu.edu.hk/~enpklun"> Dr Daniel Lun's Home</a></p> <p><a href = "http://www.eie.polyu.edu.hk/ ~enpklun/ENG224/ENG224.htm">ENG224 Home page</a></p> </body> Four links create Don’t introduce spaces between different parts of a URL address

This line is shown with a bold font ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming This line is shown with a bold font Four links are included

Linking Email Addresses ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Linking Email Addresses To a mail address: <a href=“mailto:enpklun@polyu.edu.hk”> Email me </a> With a subject: <a href=“mailto:enpklun@polyu.edu.hk?subject=title”> Email me Multiple recipients: <a href=“mailto:address1,address2, address3”> Email me

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Linking Images Background Image can be defined as an attribute of the body tag: <body background=“image.gif”> To show an Image inside a page: <img src=“image.gif” border=“0” height=“256” width=“256” alt=“text description of the image”/> We can create an image hyperlink <a href=“page1.html”> <img src=“image.gif” …/> </a>

Will scale to this size to display ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Will scale to this size to display <body> <p><img src = "xmlhtp.jpg" height = "238“ width = "183" alt = "XML How to Program book cover"/> <img src = "jhtp.jpg" height = "238" width = "183" alt = "Java How to Program book cover"/> </p> </body> empty element: do not markup text jhtp.jpg in fact cannot be found. With the alt attribute, the statement is displayed if the image is not found

“alt” statement (may not display the same for Netscape) ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming “alt” statement (may not display the same for Netscape) The image displayed at the specified size

Color 2 ways to specify: Use hexadecimal numbers ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Color 2 ways to specify: Use hexadecimal numbers RGB format: FF: strongest, 00 weakest #FF0000 #00FF00 #0000FF Use color names Black, White, Red, Cyan, Green, Purple, Magenta, Blue, Yellow, OrangeRed, SpringGreen, BlueViolet, Gold, DarkGoldenrod, Burlywood, …

Color Background color: ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Color Background color: <body bgcolor=“#00FF00”> … </body> <body bgcolor =“green”> … </body> Text color, links, visited links and activated links: <body bgcolor =“white” text=“black” link=“purple” vlink=“blue” alink=“yellow”> Font color: <font color=“green”> … </font>

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Formatting Text The format of displayed text can be changed by using <font> … </font> Attributes: Color: Size: Relative: +1, +2, -3, … Absolute: 10, 12, … Face: Font used Arial, Verdana, Helvetica, Times, … Multiple fonts: <font face="Arial, Helvetica, sans-serif">

background color is yellow ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming background color is yellow <body bgcolor = “#ffff00”> <p><font face="courier" color="green" size=“24”> This is a test.</font> <hr /> <font face="times" color="red" > </p> <p> <font face="arial" color="red" size=“+1”> <br /> <font face="times" color="#ff00ff" size=“+2”> <p align = center><font face="courier" size=“+3”> </body> horizontal ruler the backslash is only to improve readability See the difference between <p> and <br> the text is placed at the center

size = 24 default size size = +1, +2, +3 ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming size = 24 default size size = +1, +2, +3

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Lists Unordered list a list that does not order its items by letter or number <ul> … </ul> creates a list where each item begins with a bullet List items: <li> … </li> For example <ul> <li>Apple</li> <li>Orange</li> <li>Banana</li> </ul>

Lists Ordered list List that order their items by letter or number ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Lists Ordered list List that order their items by letter or number <ol type=“style”> … </ol> When style equals to 1: decimal, 1, 2, 3, … I: uppercase Roman, I, II, III, … i: lowercase Roman, i, ii, iii, … A: uppercase Latin, A, B, C, … a: lowercase Latin, a, b, c, … List items: <li> … </li>

Table Organize data into rows and columns Table caption Table header ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Table Organize data into rows and columns Table caption Table header Table body Table footer Table border

<table attribute=“value”> … </table> Attribute examples: ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming <table attribute=“value”> … </table> Attribute examples: border=“1”  the larger the number, the thicker is the border. “0” means no border align=“center”  the table is aligned at the center of the browser width=“60%”  to set the table width to 60% of the browser’s width Caption of the table: <caption> … </caption> Insert a table row: <tr> … </tr> The head, body and foot sections are defined by <thead> … </thead> <tbody> … </tbody> <tfoot> … </tfoot>

The use of th tag defines the content of header or footer cells ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming <table border = "1" width = "40%" align = left summary = "This table provides information about the price of fruit"> <caption><strong>Price of Fruit</strong></caption> <thead> <tr> <!-- <tr> inserts a table row --> <th>Fruit</th> <!-- insert a heading cell --> <th>Price</th> </tr> </thead> <tbody> <tr> <td>Apple</td> <!-- insert a data cell --> <td>$0.25</td> The use of th tag defines the content of header or footer cells The tr tag insert a new row

The use of th tag defines the content of header or footer cells ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming <tr> <td>Orange</td> <td>$0.50</td> </tr> <td>Banana</td> <td>$1.00</td> <td>Pineapple</td> <td>$2.00</td> </tbody> <tfoot> <tr> <th>Total</th> <th>$3.75</th> </tr> </tfoot> </table> The use of th tag defines the content of header or footer cells The use of td tag defines the content of body cells

INFORMATION TECHNOLOGY – Part I ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming

Col span and Row span colspan and rowspan allow merging columns/rows ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Col span and Row span colspan and rowspan allow merging columns/rows <colspan=“number”> data cell spans more than one column <rowspan=“number”> data cell spans more than one row

first row 2nd row 3rd row vertical alignment 4th row ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming <table border=“1” width=“60%”> <caption> Average Grades </caption> <tr> <th colspan=“4”> Report </th> </tr> <th> </th> <th> 2000 </th> <th> 2001 </th> <th> 2002 </th> <td> Maths </td> <td> A </td> <td rowspan=“2” valign=“center”> B </td> <td> C </td> <td> English </td> <td> C </td> <td> A </td> </table> first row 2nd row 3rd row vertical alignment 4th row

INFORMATION TECHNOLOGY – Part I ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Forms When browsing web sites, users often need to provide information such as email address, search keywords, etc Forms allows user to input information

App CGI Internet Web Server Web Client www.abc.com/form.htm 1 2 ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming App CGI Internet Web Server Web Client www.abc.com/form.htm 1 2 www.abc.com method = post or get action = program name (script) in server to receive the data Name = ??? and others 3

A form element is inserted into a web page by the <form> tag ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming A form element is inserted into a web page by the <form> tag <form method = “value1” action = “value2”> … </form> Attributes: method = “post” or “get” Indicates the way the Web server will organize and send you the form output post: causes changes to server data, e.g., update a database get: does not cause any changes in server-side data, e.g., make a database request action = “” Path to script, e.g., CGI

script that will be called to execute in the server use post method ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming script that will be called to execute in the server use post method <form method = “post” action = “/cgi-bin/formmail”> <input type=“radio” name=“size” value=“large” checked=“checked”/> large <input type=“radio” name=“size” value=“medium”/> medium <input type=“radio” name=“size” value=“small”/> small </form> Only the radio button of large is checked

Forms Elements inside a form are introduced by the <input> tag ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Forms Elements inside a form are introduced by the <input> tag <input> type=“hidden” name=“variable name” value=“value that sends to the server” type =“text” name=“” value =“” size=“25” type =“submit” value =“” type =“reset” value =“” type =“checkbox” value =“” name=“”

Form example I Thing that sends back to server ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Thing that sends back to server Form example I <input type=“checkbox” name=“things” value=“ham”/> Ham <input type=“checkbox” name=“things” value=“sweetcorn”/> Sweet Corn <input type=“checkbox” name=“things” value=“mushroom”/> Mushroom <input type=“checkbox” name=“things” value=“chicken”/> Chicken <input type=“checkbox” name=“things” value=“peas”/> Peas Indicate all 5 checkboxes belong to the same group The words show on screen

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Form example II Data that would send to server but do not display on screen <input type="hidden" name=“title" value="Feedback" /> <p><label>Name: <input type= "text" name= "name" size="25" maxlength="30"/> </label> </p> <input type= "submit" value="Submit your entries"/> <input type= "reset" value="Clear Your Entries"/> send the input the textbox to server clear the content of textbox

Form example III Masked by asterisk Space is counted here ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Form example III Masked by asterisk Space is counted here <p><label>Comments:<br /> <textarea name= "comments" rows="4" cols="36"> Enter your comments here. </textarea> </label></p> <p><label>Please input your password: <input name= "secret" type="password" size="25"/> </label></p> <input type= "submit" value="Submit Your Entries"/> <input type= "reset" value="Clear Your Entries"/>

ENG224 INFORMATION TECHNOLOGY – Part I 4. Internet Programming Form example IV The “selected” value here mean Amazing is selected default value <p><label>Rate our site: <select name= "rating"> <option value=“Amazing” selected="selected">Amazing</option> <option value=“3”>3</option> <option value=“2”>2</option> <option value=“1”>1</option> <option value=“0”>0</option> </select></p> <input type= "submit" value="Submit Your Entries"/> <input type= "reset" value="Clear Your Entries"/> Change to default value when reset