11 html5 sharing st bonaventure college & high school 31 may 2012

18
1 HTML5 sharing St Bonaventure College & High School 31 May 2012

Upload: edith-mathews

Post on 12-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

11

HTML5 sharing

St Bonaventure College & High School

31 May 2012

Page 2: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

2

Outline

Students’ prior knowledge Lesson design approach HTML5 topics Difficulties

Page 3: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

3

Prior knowledge

Form 2 students have learnt HTML4 (Four lessons) Know the basic HTML structure Know the usage of basic tags Know the tags should “start first, end last” Able to build a website with Notepad

Page 4: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

4

Lesson design approach

For HTML5, what should we teach?

Page 5: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

5

A web site consists of…

Five multimedia elements: Text / Graphic / Video / Audio / Animation

Links / Layout / Navigation bar / Form

Page 6: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

6

L01 Introduction to HTML5

A WYSIWYG editor like Dreamweaver?

• Basic function is limited. Need $ for advanced functions• Not user friendly

Page 7: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

7

HTML5

Text / Video / Layout / Navigation bar / Form

Editor: Notepad

Page 8: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

8

L02 Text formatting

The <font> tag is not supported in HTML5.

Use CSS to define fonts.

Page 9: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

9

L03 Using CSS generators

CSS Typeset

CSS 3.0 Maker

Page 10: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

10

L04 Scoring web site (Phase 1) Header

Navigation bar

Footer

Content(video & form)

Page 11: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

11

L05 Video generator

Options

Generated code

Video preview

Page 12: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

12

L06 Form

http://dev.opera.com/articles/view/new-form-features-in-html5/

Page 13: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

13

Difficulties (1) – using CSS

External Style Sheet<link rel="stylesheet" type="text/css" href="mystyle.css" />

Inline Styles<p style="color:sienna;margin-left:20px">This is a

paragraph.</p>

Internal Style Sheet

Page 14: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

14

Difficulties (1) – using CSS

Internal Style Sheet<head> <style type="text/css"> hr {color:sienna;} p {margin-left:20px;} body {background-image:url("images/back40.gif");} </style></head>

Page 15: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

15

Difficulties (2) – id v.s. class<!DOCTYPE html><html><head><title>Title of the document</title><style>.classname { color: #DB2E2E; font-size: 20px; font-style: italic;}</style></head>

<body><div class=“classname”>Good morning</div></body></html>

Page 16: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

16

Difficulties (2) – id v.s. class<!DOCTYPE html><html><head><title>Title of the document</title><style>#idname { color: #DB2E2E; font-size: 20px; font-style: italic;}</style></head>

<body><div id=“idname”>Good morning</div></body></html>

Page 17: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

17

Difficulties (3) – Concept of pixel What is a pixel?

100px is about 3cm on the screen

Page 18: 11 HTML5 sharing St Bonaventure College & High School 31 May 2012

18

Thank you!