44
Hyperlinks, Tables, Forms and Frameworks Web Authoring and Design Benjamin Kenwright

Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Hyperlinks Tables

Forms and FrameworksWeb Authoring and Design

Benjamin Kenwright

Outline

Review Previous Material

HTML Tables Forms and Frameworks

Summary

ReviewDiscussion

Email

Did everyone get an email from me

yesterday (Tuesday)

Login details quizzessubmissions

SubmissionsQuizzes

Course material (Public)

httpszjnu2017githubio

SubmissionsQuizzes

(GradedPrivate)

wwwzjnuxyz

(Login ndash Student No)

Password Emailed

Why Online Quizzes

Take the quizzes as many times as you want

Opportunity to `improversquo learn from mistakes (instead of a single passfail)

Quizzes contribute to your final mark

10-20 multiple choice questions added each week

Straightforward and help prepare for the final exam

Why Online Coursework

SubmissionsExperimentproject submission should be submitted online

Single zip for each `taskrsquo

Specified this week

Enables you access to your coursework

(eg you can review it regularlybacked up)

Lets me provide feedback guidance and comments which you can review

Submit GitHub URL

This week ndash submit GitHub URL Online

For example

ldquohttpsnamegithubiordquo

Valid default page (indexhtml)

Structure (foldersimages)

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 2: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Outline

Review Previous Material

HTML Tables Forms and Frameworks

Summary

ReviewDiscussion

Email

Did everyone get an email from me

yesterday (Tuesday)

Login details quizzessubmissions

SubmissionsQuizzes

Course material (Public)

httpszjnu2017githubio

SubmissionsQuizzes

(GradedPrivate)

wwwzjnuxyz

(Login ndash Student No)

Password Emailed

Why Online Quizzes

Take the quizzes as many times as you want

Opportunity to `improversquo learn from mistakes (instead of a single passfail)

Quizzes contribute to your final mark

10-20 multiple choice questions added each week

Straightforward and help prepare for the final exam

Why Online Coursework

SubmissionsExperimentproject submission should be submitted online

Single zip for each `taskrsquo

Specified this week

Enables you access to your coursework

(eg you can review it regularlybacked up)

Lets me provide feedback guidance and comments which you can review

Submit GitHub URL

This week ndash submit GitHub URL Online

For example

ldquohttpsnamegithubiordquo

Valid default page (indexhtml)

Structure (foldersimages)

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 3: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Email

Did everyone get an email from me

yesterday (Tuesday)

Login details quizzessubmissions

SubmissionsQuizzes

Course material (Public)

httpszjnu2017githubio

SubmissionsQuizzes

(GradedPrivate)

wwwzjnuxyz

(Login ndash Student No)

Password Emailed

Why Online Quizzes

Take the quizzes as many times as you want

Opportunity to `improversquo learn from mistakes (instead of a single passfail)

Quizzes contribute to your final mark

10-20 multiple choice questions added each week

Straightforward and help prepare for the final exam

Why Online Coursework

SubmissionsExperimentproject submission should be submitted online

Single zip for each `taskrsquo

Specified this week

Enables you access to your coursework

(eg you can review it regularlybacked up)

Lets me provide feedback guidance and comments which you can review

Submit GitHub URL

This week ndash submit GitHub URL Online

For example

ldquohttpsnamegithubiordquo

Valid default page (indexhtml)

Structure (foldersimages)

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 4: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

SubmissionsQuizzes

Course material (Public)

httpszjnu2017githubio

SubmissionsQuizzes

(GradedPrivate)

wwwzjnuxyz

(Login ndash Student No)

Password Emailed

Why Online Quizzes

Take the quizzes as many times as you want

Opportunity to `improversquo learn from mistakes (instead of a single passfail)

Quizzes contribute to your final mark

10-20 multiple choice questions added each week

Straightforward and help prepare for the final exam

Why Online Coursework

SubmissionsExperimentproject submission should be submitted online

Single zip for each `taskrsquo

Specified this week

Enables you access to your coursework

(eg you can review it regularlybacked up)

Lets me provide feedback guidance and comments which you can review

Submit GitHub URL

This week ndash submit GitHub URL Online

For example

ldquohttpsnamegithubiordquo

Valid default page (indexhtml)

Structure (foldersimages)

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 5: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Why Online Quizzes

Take the quizzes as many times as you want

Opportunity to `improversquo learn from mistakes (instead of a single passfail)

Quizzes contribute to your final mark

10-20 multiple choice questions added each week

Straightforward and help prepare for the final exam

Why Online Coursework

SubmissionsExperimentproject submission should be submitted online

Single zip for each `taskrsquo

Specified this week

Enables you access to your coursework

(eg you can review it regularlybacked up)

Lets me provide feedback guidance and comments which you can review

Submit GitHub URL

This week ndash submit GitHub URL Online

For example

ldquohttpsnamegithubiordquo

Valid default page (indexhtml)

Structure (foldersimages)

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 6: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Why Online Coursework

SubmissionsExperimentproject submission should be submitted online

Single zip for each `taskrsquo

Specified this week

Enables you access to your coursework

(eg you can review it regularlybacked up)

Lets me provide feedback guidance and comments which you can review

Submit GitHub URL

This week ndash submit GitHub URL Online

For example

ldquohttpsnamegithubiordquo

Valid default page (indexhtml)

Structure (foldersimages)

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 7: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Submit GitHub URL

This week ndash submit GitHub URL Online

For example

ldquohttpsnamegithubiordquo

Valid default page (indexhtml)

Structure (foldersimages)

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 8: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Discussion Activity

What is the best webpage on the

internet

Share examples of interesting website

and `whatrsquo makes them `amazingrsquo

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 9: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Review Question

Basic syntax for XHTML tags and

attributes is

a lttag attribute=valuegt lttaggt

b lttag attribute=valuegt lttaggt

c lttag attribute=rdquovaluerdquogt lttaggt

d lttag attribute=rdquovaluerdquogt lttaggt

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 10: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Answer

Answer d

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 11: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Review Question

What is the correct HTML for inserting

an image

a ltimg href=imagegifgt

b ltimage src=imagegifgt

c ltimggtimagegifltimggt

d ltimg src=imagegifgt

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 12: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Answer

Answer d

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 13: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Meta Data Tags

Located in the ltheadgtltheadgt section

Useful for search enginesclassification

ltmeta name=author content=your

name gt

ltmeta name=description content= gt

ltmeta charset=UTF-8gt

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 14: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Redirection

Meta tags can be used to perform the

task of HTTP headers like redirection

and refresh

ltmeta http-equiv=refresh

content=5url=httpwwwbingcomgt

Content attribute refers to the time

interval in seconds before the refresh is

performed and redirected

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 15: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Forms

Add interactivity to your web documents

by way of the ltformgt tag

Form tag you can add to your web

pages a guestbook order forms

surveys get feedback

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 16: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Form Tags

Basic construction of a HTML form is

this

ltformgt - begin a form

ltinputgt - ask for information in one of

several different ways

ltinputgt - there can be as many input

areas as you wish

ltformgt - end a form

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 17: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Form Example

ltform name=myformldquo action=ldquoserverphp method=postgt

ltinput type=checkbox gt Checkbox 1ltbr gt

ltinput type=text gt Text Field 1ltbr gt

ltinput type=submit value=SUBMIT gt

ltformgt

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 18: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Form Method

GETcontains all of the form information encoded

as part of the address

httpexamplecomfoohtmlbar=some+dataampbaz=test2B3D5Bdata5D

has limitations

POSTLarger files

Encodes and passes the data with the html request

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 19: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

HTML Form Controls

Different types of form controls that you can use to collect data using HTML formText Input Controls

Checkboxes Controls

Radio Box Controls

Select Box Controls

File Select boxes

Hidden Controls

Clickable Buttons

Submit and Reset Button

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 20: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Form Attributes amp Descriptionstype Indicates the type of input control and for text input control it

will be set to text

name Used to give a name to the control which is sent to the

server to be recognized and get the value

value This can be used to provide an initial value inside the

control

size Allows to specify the width of the text-input control in terms

of characters

maxlength Allows to specify the maximum number of characters a user

can enter into the text box

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 21: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Hidden Form Controls

Hidden form controls are used to hide

data inside the page

eg pass information in the submission

ltinput type = hidden name = pagename

value = 10 gt

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 22: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

HTML Input Elements

ltform name=myform action=mailtoyouremailemailcom

method=postgt

Check Me ltinput type=checkbox gtltbr gt

Name ltinput type=text value=David gtltbr gt

Yes ltinput type=radio gt No ltinput type=radio gtltbr gt

ltinput type=submit value=Send gt

ltinput type=reset value=Clear gt

ltformgt

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 23: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Managing Form Submission

Active Server

php python

Javascript

Show examples of this later in the course

when we start working with Javascript

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 24: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Taste of Javascript to Come

ltHTMLgt

ltHEADgt

ltTITLEgtTest InputltTITLEgt

ltSCRIPT LANGUAGE=JavaScriptgt

function testResults (form)

var TestVar = forminputboxvalue

alert (You typed + TestVar)

ltSCRIPTgt

ltHEADgt

ltBODYgt

ltFORM NAME=myform ACTION= METHOD=GETgtEnter something in the box ltBRgt

ltINPUT TYPE=text NAME=inputbox VALUE=gtltPgt

ltINPUT TYPE=button NAME=button Value=Click onClick=testResults(thisform)gt

ltFORMgt

ltBODYgt

ltHTMLgt

Try this HTML outhellip

Notice that the form has no action=______

attribute Without that attribute the form will

submit to the same web page that contains the form

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 25: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Example

lthtmlgt

ltform name=myFormgt

ltinput type=button name=mybutton value=Press

Me onClick=alert(Hello World)gt

ltformgt

lthtmlgt

Note key attributes of a form (ie type name value )

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 26: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Discussion Activity

Explain from your own experience

where you would use forms

Eg where on your website would you

have a form

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 27: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Tables amp Website Layouts

Shows an image of a simple website

layout using html tables

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 28: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Tables amp Layout

Tables are supported older browsers

Simple and easy to implement

Can become complex for more intricate

websites (ie wersquoll talk about CSS scripts

later)

For instance when creating a website

layout it is better to avoid nested tables

Nesting tables can lead to complex tables

layouts and increase in page load time

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 29: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Example

website logo

content area

navigation options on

the right side

footer at the bottom

location

(copyrightdetails)

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 30: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

lthtmlgt

ltheadgtltheadgt

ltbody gt

lttable border=2 bordercolor=red width=98 align=centergt

lttrgtlttd align=center colspan=2gt

ltbrgtltbrgtltbrgt

WEBSITE NAME

ltbrgtltbrgtltbrgt

lttdgtlttrgt

lttrgtlttd width=70 align=centergt

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

You Can write your main content here

ltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgtltbrgt

lttdgtlttd width=30 align=centergt

MENU

lttdgtlttrgt

lttrgtlttd align=center colspan=3gt ltbrgt

FOOTER

ltbrgtlttdgtlttrgt

lttablegt

ltbodygt

lthtmlgt

Try this HTML outhellip

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 31: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Practical Task

This Weeks Practical Exercises

Create a website using only `Tablesrsquo

Control the table widthsheights

Background images for cells

Upload your Table webpage GitHub

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 32: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Question

Form attribute type for hiding data is

a) secret

b) blank

c) hidden

d) passive

e) mask

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 33: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Answer

c) hidden

ltinput type=hidden name=pagename value=10 gt

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 34: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Interesting HTML Tags (Audio)

Sound

ltaudio loop autoplay id=audio-examplegt

ltsource src=wp-

contentuploadsflamingosmp3gt ltaudiogt

Add controls attributes for letting the user

control the sound (stopstartvolume)

ltaudio controlsgtltsource

src=httpswwwcomputerhopecomjargo

nmexamplemp3 gtltaudiogt

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 35: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Preview Audio amp Javascript

ltDOCTYPE htmlgt

lthtmlgt

ltbodygt

ltaudio id=player src=horsemp3gtltaudiogt

ltbrgtltbrgtltbutton onclick=documentgetElementById(player)play()gtPlayltbuttongt

ltbutton onclick=documentgetElementById(player)pause()gtPauseltbuttongt

ltbutton onclick=documentgetElementById(player)volume+=01gtVolume Upltbuttongt

ltbutton onclick=documentgetElementById(player)volume-=01gtVolume Downltbuttongt

ltbodygt

lthtmlgt

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 36: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Interesting HTML Tags

(Background Image)lt-- Add background image to your page --gt

lthtmlgt

ltheadgt

ltstyle type=textcssgt

body background-imageurl(myimagegif)

ltstylegt

ltheadgt

ltbodygt

Hello

ltbodygt

lthtmlgt

httpwwww3schoolcomcntiytaspf=csse_background-image

Preview of CSS

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 37: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Interesting HTML Tags

(Tool Tips)

ltspan title=ldquoSee this is the tooltip

)rdquogtMove your mouse over meltspangt

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 38: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Question

An acronym for Joint Photographic Experts Group refers to a type of file format used for images that appear on web pages Many photographs are saved with the JPEG file format

a) jpg

b) powder

c) png

d) view

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 39: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Answer

a) jpg

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 40: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Question

Web page content that does not change

or allow user interaction has dynamic

content

a) True

b) False

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 41: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Answer

b) False

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 42: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

This Week

Review Slides

Read Associated Chapters

Update Website (GitHub)

Submit your GitHub URL

wwwzjnuxyz

Online Quizzes

Practical Tasks

Table Layout Webpage

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 43: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

Summary

HTML Tables Forms and Frameworks

Version Control

Hands-OnPractical

QuestionsDiscussion

Page 44: Hyperlinks, Tables, Forms and Frameworks€¦ · Forms and Frameworks Web Authoring and Design Benjamin Kenwright. Outline Review Previous Material HTML Tables, Forms and Frameworks

QuestionsDiscussion