CMPT 165 Unit 7 Intro to Programming - Part 5. Nov 20 th, 2015

Size: px
Start display at page:

Download "CMPT 165 Unit 7 Intro to Programming - Part 5. Nov 20 th, 2015"

Transcription

1 CMPT 165 Unit 7 Intro to Programming - Part 5 Nov 20 th, 2015

2 Admin A2: Google form for contest submission Eager to know about A3??? Additional office hours to study for midterm#2 today? My office location moved across the corridor: ASB 9812 Exercise 8: finished part 1??? Correction notes on Colour On transparency in Unit 5 Graphics Markup for Table Python: recap + new materials

3 Dynamic markup from Python scripts Example from Fig. 7.2 of Study Guide str= "Content-type: text/html" print( str ) print( ) print( "<html><head>" ) print( "<title>python did this</title>" ) print( "</head><body>" ) print( "<p>here I am</p>" ) print( "</body></html>" ) 3 Demo

4 Dynamic markup: Example str= "Content-type: text/html" print( str ) print( ) # declare a multi-line string a_markup_str =""" <html> <head> <title>my first web script</title> </head> <body> <h1>the first web script of ABC</h1> <p>this is a dynamically generated web page.</p> </body> </html> """ print( a_markup_str ) 4

5 Dynamic markup from Python scripts str= "Content-type: text/html" print( str ) print( ) markup=""" <html> <head> <title>python did this</title> </head> <body> <p>let us do some math.</p>""" print( markup ) a=100; b=20; their_sum=a+b print("<p>", a, " + ", b, " = ", their_sum, "</p>") markup2="</body></html>" print( markup2 ) 5

6 Dynamic markup from Python scripts str= "Content-type: text/html" print( str ) print( ) markup=""" <html> <head> <title>python did this</title> </head> <body> <p>let us do some math.</p>""" a=100; b=20; their_sum=a+b print("<p>", a, " + ", b, " = ", their_sum=a+b, "</p>") print("<p>", a, "&plus;", b, "&equals;", their_sum, "</p>") markup2="</body></html>" print( markup2 ) 6

7 Key concepts & terms seen so far Fundamentals Developer Interface GUI Shell Program Statements Programming essentials Variables Data Types Numeric Strings Booleans Assignment (shorthand) Functions Data Input/Output (I/O) Process Refining print statements Objects Client/server Fetching a resource Dynamic HTML Static vs. Dynamic Operations/Operator Arithmetic Concatenation Overloaded symbols 7 Governing program flow Testing Conditions If-else, elif

8 Objects (A very cool concept in programming ) Put data and its related function(s) as one collection 1. Data 2. Function(s) Data objects already available in Python: e.g. list, set, dictionaries 8

9 Some objects and built-in functions >>> str= "ABC" >>> print( str.lower() ) 'abc' >>> numbers= [1,2,23,13]; >>> print( len( numbers ) ) 4 >>> list= ["Erin", "Alma"] >>> print( sorted(list) ) ['Alma', 'Erin' ] >>> print( len( numbers ) ) 2

10 FYI

11 The list data object A collection: store a bunch of data types together under one variable name Examples: >>> prime_nums=[2, 3, 5, 7, 11]; >>> family=['mom', 'dad', 'me', 'sister'] You get/call (referred to as index ) the 1st item as follows: >>> print( family[0] ) mom Q: How to index the me in family? How about 11 in prime_nums? >>> family[2] >>> prime_nums[4] Know the syntax! Must separate each item with comma! Know the syntax! Starts at 0 So, index of n-th item is (n-1) FYI, why index starts at 0? See link:

12 The list data object Call a groups of items, e.g. second to fourth item in prime_nums >>> prime_nums=[2, 3, 5, 7, 11]; >>> prime_nums[1:4] [3, 5, 7] The 2 nd item up to the 4 th item! Index of 2 nd item: Syntax: a_list[ a : b ] Math notation: [a,b) Concatenate (to join) lists: >>> prime_nums=[2, 3, 5, 7, 13]; >>> prime_nums=[2, 3, 5, 7, 13] + [11, 17]; >>> print( prime_nums ) [2, 3, 5, 7, 13, 11, 17] 12 (2)-1=1 Index of 4 th item: (4)-1=3 But you need to specify as: prime_num[1:4] (prime_num[4] will be excluded)

13 Exercise #1 >>> a_shop = ['pen', 3.5, 'pencil', 2.5] # what is this? >>> item_ordered=0; >>> quantity_ordered=1; >>> a_shop[item_ordered ] pen >>> print( ) # do exercise! >>> print( ) # do exercise! Thanks for ordering 1 pen. Your bill comes to $3.5. >>> print("thanks for ordering", quantity_ordered, a_shop[item_ordered],".") >>> print("your bill comes to $", quantity_ordered*a_shop[ 1+item_ordered ],".") >>> # or: >>> print("your bill comes to $", quantity_ordered*a_shop[ 2 ],".") 13

14 Exercise #1: improved >>> products=['pen(s)','pencil(s)','eraser(s)'] >>> costs = [3.5, 2.5, 2] >>> item_ordered=1; >>> quantity_ordered=2; >>> products[item_ordered] pencil >>> item_ordered= ; # do exercise! >>> print( ) # do exercise! >>> print( ) # Add 7% tax Thanks for ordering 2 eraser(s). With tax, your bill comes to $4.28. >>> item_ordered=2; print(" Thanks for ordering", quantity_ordered, products[item_ordered],". ") >>> print(" With tax, your bill comes to $", quantity_ordered*costs[ item_ordered ]*1.07,". ") 14

15 Exercise #1: improved >>> products=['pen(s)','pencil(s)','eraser(s)'] >>> costs = [3.5, 2.5, 2] >>> item_ordered=1; >>> quantity_ordered=2; >>> products[item_ordered] pencil >>> item_ordered= ; # do exercise! >>> print( ) # do exercise! >>> print( ) # Add 7% tax Thanks for ordering 2 eraser(s). With tax, your bill comes to $4.28. >>> item_ordered=2; print("<p>thanks for ordering", quantity_ordered, products[item_ordered],". </p>") >>> print("<p>with tax, your bill comes to $", quantity_ordered*costs[ item_ordered ]*1.07,".</p>") 15

16 Key concepts & terms seen so far Fundamentals Developer Interface GUI Shell Program Statements Programming essentials Variables Data Types Numeric Strings Booleans Assignment (shorthand) Functions Data Input/Output (I/O) Process Refining print statements Objects Defining your own Client/server Fetching a resource Dynamic HTML Operations/Operator Arithmetic Concatenation Overloaded symbols Governing program flow Testing Conditions If-else, elif 16

17 Objects (A very cool concept in programming ) Lot s of reasons for object-oriented programming Today, we ll see one: code-reuse 17

18 Code-reuse Program_A.py y=10; def Celsius_to_Fahrenheit(x): y=x*9/5+32; return y x=5; m=celsius_to_fahrenheit(x) Program_B.py def Celsius_to_Fahrenheit(x): y=x*9/5+32; return y Not efficient. Not reusable code. Y=10; x=15*y; new_var=celsius_to_fahrenheit(x) 18

19 Code-reuse via modularization Program_A.py y=10; def Celsius_to_Fahrenheit(x): y=x*9/5+32; return y x=5; m=celsius_to_fahrenheit(x) My_functions.py def C2F(x): y=x*9/5+32; return y def F2C(x): y=(x-32)*5/9; return y Shortened as C2F and F2C Random_program_A.py import My_functions y=10; x=5; m=my_functions.c2f(x); Random_program_B.py import My_functions x=5; 19 m=my_functions.f2c(x);

20 Code-modularization Modular programming: separate functionality of a program into independent parts (i.e. modules) Functionality User programs My_functions.py def C2F(x): y=x*9/5+32; return y def F2C(x): y=(x-32)*5/9; return y Tell_weather.py import My_functions y=10\\4;#some random stuff x=y+5; p=my_functions.c2f(x); Tell_weather_USA_visitors.py import My_functions a=15; m=my_functions.f2c(a); 20

21 Steps to modularization: Code-modularization 1. Define function(s) in one file 2. Use built-in import function to load these functions into memory: syntax: import name_of_script # shorthand, as in S.G. name_of_script.function_a(); name_of_script.function_b(x,y,z); My_functions.py def C2F(x): y=x*9/5+32; return y def F2C(x): y=(x-32)*5/9; return y Random_program_A.py import My_functions y=10; x=5; m=my_functions.c2f(x); 21

22 E8 discussed

23 E8 part 2 my_first_functions.py # Write functions below def get_opening_markup(title_str, css_str): # write code to check, e.g. if-else conditions # concatenate strings accordingly, here s a start: markup=""" <html> <head> <title>""" markup += title_str markup += "</title>" # check css_str if ( ): markup += "<link href=" + css_str + "/>" markup += """ </head> <body> <h1>""" markup += title_str + "</h1>" # write more here return markup

24 my_first_functions.py E8 part 2 # Write functions below def get_opening_markup(title_str, css_str): # write code to check, e.g. if-else conditions # concatenate strings accordingly, here s a start: # write more here return markup def get_closing_markup(): # do something similar to above; no need for arguments return markup2 # Call functions with initialized variables title="my 1st dyn. webpage"; css_file= styles.css" omarkup = get_opening_markup( title, css_file ); cmarkup = get_closing_markup(); # Complete the script below print( omarkup ); print( "<p>hello world!</p>" ); print( cmarkup );

25 Questions?

26 On colour code

27 Red Green Blue Examples: Decimal Brightest green? Dark green? Brightest blue? Dark red? Purple? Dark purple? Gray? Darker gray? A B C D E F Hexadecimal 0 F F % of 16 2/10*16 = 3.2 Closet is 3 3 rd value is % of 16 3/10*16 = 4.8 Closest is 5 5-th value is 4

28 CMPT 165 Markup reviewed + HTML5

29 HTML5 Why bother? HTML is constantly evolving HTLM5 is latest version New (more semantically meaningful) markup tags: <nav> <aside> Old (vs. new) tags: New tags are introduced Some XHTML tags become deprecated* in HTML5 should not use any more, but browsers should support them Some XHTML tags become obsolete* in HTML5 should avoid as these are tags which browsers are not required to support More convenience *Details here 29

30 Question: which 3 parts are required on every markup page? 1. Document type declaration (DTD) 2. Header 3. Body <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html xmlns=" > <head> <title>page Title</title> </head> <body> <h1>page Heading</h1> </body> </html>

31 DTD in HTML5 <!DOCTYPE html> <html> <head> <title>html5: A demo</title> </head> <body> </body> </html> 31

32 DTD in HTML5 <!DOCTYPE html> <html> <head> <title>html5: A demo</title> </head> <body> </body> </html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html xmlns=" > <head> <title>page Title</title> </head> <body> <h1>page Heading</h1> </body> </html> 32

33 HTML5 Why bother? HTML is constantly evolving HTLM5 is latest version New (more semantically meaningful) markup tags: <nav> <aside> Old (vs. new) tags: New tags are introduced Some XHTML tags become deprecated* in HTML5 i.e. should not use any more, but browsers should keep supporting them Some XHTML tags become obsolete* in HTML5 i.e. should avoid as these are tags which browsers are not required to support More convenience *Details here 33

34 More semantic markup tags <nav> <a href="/html/">html</a> <a href="/css/">css</a> <a href="/js/">javascript</a> <a href="/jquery/">jquery</a> </nav> /*Default style of most browsers */ nav { display: block; } <aside> <blockquote> <p>all the world's a stage.</p> </blockquote> <p>william Shakespeare</p> </aside> 34

35 HTML4 to HTML5 Migration Typical HTML4 <div id="header"> <div id="menu"> <div id="content"> <div id="post"> <div id="footer"> Typical HTML5 <header> <nav> <section> <article> <footer> 35

36 Figures and captions made easy <figure> + <figcaption> Efficient way to mark up a figure in a document. Easier way to cite images. <figure> <img src="img_3101.jpg" alt="one early morning." width="304" /> <figcaption>one early morning. By <a href="#me">lt</a>.</figcaption> </figure> One early morning. By LT. 36

37 <time> <time datetime=" "> July 13, 2015 </time> Encode dates and times in a machine-readable way User agents* can offer these options to users: add reminders to birthday, scheduled events to user's calendar Search engines can produce smarter search results *the browsers that your users use 37

38 Some tags worthy to know about Semantic: nav aside figure figcaption time Frames: iframe, object 38

39 <iframe> To display a web page within a web page. Examples: <iframe src=" width="560" height="315" allowfullscreen></iframe> <iframe width="100%" height="750px" scrolling="no" src=" lmfnrxe/pubhtml?gid=0&single=true&widget=true&headers=false" alt="calendar with links to assignments and exercises"> </iframe> 39

CMPT 165 Notes on HTML5

CMPT 165 Notes on HTML5 CMPT 165 Notes on HTML5 Nov. 26 th, 2015 HTML5 Why bother? HTML is constantly evolving HTLM5 is latest version New (more semantically meaningful) markup tags: Old (vs. new) tags: New tags

More information

Admin. A2 due next Wed! Exercise 8 posted: should aim to finish part 1 of E8 by next Mon. so you can get help from TA s on Tues./Thurs.

Admin. A2 due next Wed! Exercise 8 posted: should aim to finish part 1 of E8 by next Mon. so you can get help from TA s on Tues./Thurs. Admin A2 due next Wed! Exercise 8 posted: should aim to finish part 1 of E8 by next Mon. so you can get help from TA s on Tues./Thurs. Please review on your own (next slides): Correction notes on Colour

More information

CMPT 165 Unit 2 Markup Part 2

CMPT 165 Unit 2 Markup Part 2 CMPT 165 Unit 2 Markup Part 2 Sept. 17 th, 2015 Edited and presented by Gursimran Sahota Today s Agenda Recap of materials covered on Tues Introduction on basic tags Introduce a few useful tags and concepts

More information

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( ) MODULE 2 HTML 5 FUNDAMENTALS HyperText > Douglas Engelbart (1925-2013) Tim Berners-Lee's proposal In March 1989, Tim Berners- Lee submitted a proposal for an information management system to his boss,

More information

CMPT 165 Unit 8 Advanced Programming - Part 2. Dec. 1 st, 2015

CMPT 165 Unit 8 Advanced Programming - Part 2. Dec. 1 st, 2015 CMPT 165 Unit 8 Advanced Programming - Part 2 Dec. 1 st, 2015 Note #1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 # MIME: must be declared in the first line a_markup_str ="""Content-type: text/html

More information

CMPT 165 Advanced XHTML & CSS Part 3

CMPT 165 Advanced XHTML & CSS Part 3 CMPT 165 Advanced XHTML & CSS Part 3 Oct 15 th, 2015 Today s Agenda Quick Recap of last week: Tree diagram Contextual selectors CSS: Inheritance & Specificity Review 1 exam question Q/A for Assignment

More information

HTML+ CSS PRINCIPLES. Getting started with web design the right way

HTML+ CSS PRINCIPLES. Getting started with web design the right way HTML+ CSS PRINCIPLES Getting started with web design the right way HTML : a brief history ❶ 1960s : ARPANET is developed... It is the first packet-switching network using TCP/IP protocol and is a precursor

More information

CMPT 165 Unit 3 CSS Part 1. Sept. 24 th, 2015

CMPT 165 Unit 3 CSS Part 1. Sept. 24 th, 2015 CMPT 165 Unit 3 CSS Part 1 Sept. 24 th, 2015 Summary of key concepts/terms Components of good website designs and why? Structure of a markup file: DTD vs. head vs. body Elements vs. tags vs. content: know

More information

Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework:

Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework: Midterm 1 on Admin Oct. 13 th (2 weeks from today) Coursework: E1 grade released: please see Karoon (TA) at his office hours (Tues at 12-1pm) E2 due tomorrow E3 posted yesterday; due this Friday 11:59pm

More information

Introduction to HTML5

Introduction to HTML5 Introduction to HTML5 History of HTML 1991 HTML first published 1995 1997 1999 2000 HTML 2.0 HTML 3.2 HTML 4.01 XHTML 1.0 After HTML 4.01 was released, focus shifted to XHTML and its stricter standards.

More information

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과 16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과 목차 HTML5 Introduction HTML5 Browser Support HTML5 Semantic Elements HTML5 Canvas HTML5 SVG HTML5 Multimedia 2 HTML5 Introduction What

More information

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS CSS Overview Part I: Portraying the Internet as a collection of online information systems Part II: Design a website using HTML/XHTML & CSS XHTML validation What is wrong?

More information

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar. GIMP WEB 2.0 MENUS Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar. Standard Navigation Bar Web 2.0 Navigation Bar Now the all-important question

More information

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar Review of HTML Chapter 3 Fundamentals of Web Development 2017 Pearson Fundamentals of Web Development http://www.funwebdev.com - 2 nd Ed. What Is HTML and Where Did It Come from? HTML HTML is defined as

More information

Introduction to WEB PROGRAMMING

Introduction to WEB PROGRAMMING Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks

More information

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION Tutorial 1 Getting Started with HTML5 HTML, CSS, and Dynamic HTML 5 TH EDITION Objectives Explore the history of the Internet, the Web, and HTML Compare the different versions of HTML Study the syntax

More information

Programmazione Web a.a. 2017/2018 HTML5

Programmazione Web a.a. 2017/2018 HTML5 Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text

More information

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5 Scripting for Multimedia LECTURE 1: INTRODUCING HTML5 HTML An acronym for Hypertext Markup Language Basic language of WWW documents HTML documents consist of text, including tags that describe document

More information

HTML & CSS November 19, 2014

HTML & CSS November 19, 2014 University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln Digital Humanities Workshop Series Center for Digital Research in the Humanities 11-19-2014 HTML & CSS November 19, 2014

More information

HTML MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

HTML MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University HTML MIS 2402 Konstantin Bauman Department of MIS Fox School of Business Temple University 2 HTML Quiz Date: 9/13/18 in two weeks from now HTML, CSS 14 steps, 25 points 1 hour 20 minutes Use class workstations

More information

HTML CS 4640 Programming Languages for Web Applications

HTML CS 4640 Programming Languages for Web Applications HTML CS 4640 Programming Languages for Web Applications 1 Anatomy of (Basic) Website Your content + HTML + CSS = Your website structure presentation A website is a way to present your content to the world,

More information

Admin & Today s Agenda

Admin & Today s Agenda Admin & Today s Agenda FYI: Boshra s and Guri s office hours switched this week Take-home exercises: any one done them??? Key materials in Unit 4 2 new concepts New tags CMPT 165 D1 (Fall 2015) 1 And before

More information

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo Note: We skipped Study Guide 1. If you d like to review it, I place a copy here: https:// people.rit.edu/~nbbigm/studyguides/sg-1.docx

More information

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0 CSI 3140 WWW Structures, Techniques and Standards Markup Languages: XHTML 1.0 HTML Hello World! Document Type Declaration Document Instance Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson

More information

HyperText Markup Language (HTML)

HyperText Markup Language (HTML) HyperText Markup Language (HTML) Mendel Rosenblum 1 Web Application Architecture Web Browser Web Server / Application server Storage System HTTP Internet LAN 2 Browser environment is different Traditional

More information

Certified HTML5 Developer VS-1029

Certified HTML5 Developer VS-1029 VS-1029 Certified HTML5 Developer Certification Code VS-1029 HTML5 Developer Certification enables candidates to develop websites and web based applications which are having an increased demand in the

More information

Markup Language. Made up of elements Elements create a document tree

Markup Language. Made up of elements Elements create a document tree Patrick Behr Markup Language HTML is a markup language HTML markup instructs browsers how to display the content Provides structure and meaning to the content Does not (should not) describe how

More information

Web Programming Week 2 Semester Byron Fisher 2018

Web Programming Week 2 Semester Byron Fisher 2018 Web Programming Week 2 Semester 1-2018 Byron Fisher 2018 INTRODUCTION Welcome to Week 2! In the next 60 minutes you will be learning about basic Web Programming with a view to creating your own ecommerce

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Wireframe :: tistory wireframe tistory.

Wireframe :: tistory wireframe tistory. Page 1 of 45 Wireframe :: tistory wireframe tistory Daum Tistory GO Home Location Tags Media Guestbook Admin 'XHTML+CSS' 7 1 2009/09/20 [ ] XHTML CSS - 6 (2) 2 2009/07/23 [ ] XHTML CSS - 5 (6) 3 2009/07/17

More information

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document

More information

introduction to XHTML

introduction to XHTML introduction to XHTML XHTML stands for Extensible HyperText Markup Language and is based on HTML 4.0, incorporating XML. Due to this fusion the mark up language will remain compatible with existing browsers

More information

Creating HTML files using Notepad

Creating HTML files using Notepad Reference Materials 3.1 Creating HTML files using Notepad Inside notepad, select the file menu, and then Save As. This will allow you to set the file name, as well as the type of file. Next, select the

More information

HTML and CSS COURSE SYLLABUS

HTML and CSS COURSE SYLLABUS HTML and CSS COURSE SYLLABUS Overview: HTML and CSS go hand in hand for developing flexible, attractively and user friendly websites. HTML (Hyper Text Markup Language) is used to show content on the page

More information

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from BEFORE CLASS If you haven t already installed the Firebug extension for Firefox, download it now from http://getfirebug.com. If you don t already have the Firebug extension for Firefox, Safari, or Google

More information

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc Design Project Site: News from Latin America Design Project i385f Special Topics in Information Architecture Instructor: Don Turnbull Elias Tzoc April 3, 2007 Design Project - 1 I. Planning [ Upper case:

More information

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1 59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi Introduction xxiii Chapter 1: Creating Structured Documents 1 A Web of Structured Documents 1 Introducing XHTML 2 Core Elements and Attributes 9 The

More information

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014 1/6/2019 12:28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014 CATALOG INFORMATION Dept and Nbr: CS 50A Title: WEB DEVELOPMENT 1 Full Title: Web Development 1 Last Reviewed:

More information

Methods for configuring Cascading Style Sheets. Applying style to element name selectors. Style Rule Basics. CMPT 165: Cascading Style Sheets

Methods for configuring Cascading Style Sheets. Applying style to element name selectors. Style Rule Basics. CMPT 165: Cascading Style Sheets CMPT 165: Cascading Style Sheets Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 7, 2011 Methods for configuring Cascading Style Sheets There are 4 method to

More information

How the Internet Works

How the Internet Works How the Internet Works The Internet is a network of millions of computers. Every computer on the Internet is connected to every other computer on the Internet through Internet Service Providers (ISPs).

More information

IT350 Web & Internet Programming. Fall 2012

IT350 Web & Internet Programming. Fall 2012 IT350 Web & Internet Programming Fall 2012 Asst. Prof. Adina Crăiniceanu http://www.usna.edu/users/cs/adina/teaching/it350/fall2012/ 2 Outline Class Survey / Role Call What is: - the web/internet? - web

More information

Introduction to Python (All the Basic Stuff)

Introduction to Python (All the Basic Stuff) Introduction to Python (All the Basic Stuff) 1 Learning Objectives Python program development Command line, IDEs, file editing Language fundamentals Types & variables Expressions I/O Control flow Functions

More information

Lecture 2: Tools & Concepts

Lecture 2: Tools & Concepts Lecture 2: Tools & Concepts CMPSCI120 Editors WIN NotePad++ Mac Textwrangler 1 Secure Login Go WIN SecureCRT, PUTTY WinSCP Mac Terminal SFTP WIN WinSCP Mac Fugu 2 Intro to unix pipes & filters file system

More information

Sample Exam 2 (Version 1) CIS 228: The Internet Prof. St. John Lehman College City University of New York 7 November 2007

Sample Exam 2 (Version 1) CIS 228: The Internet Prof. St. John Lehman College City University of New York 7 November 2007 Sample Exam 2 (Version 1) CIS 228: The Internet Prof. St. John Lehman College City University of New York 7 November 2007 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade will

More information

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

CompuScholar, Inc. Alignment to Utah's Web Development I Standards Course Title: KidCoder: Web Design Course ISBN: 978-0-9887070-3-0 Course Year: 2015 CompuScholar, Inc. Alignment to Utah's Web Development I Standards Note: Citation(s) listed may represent a subset of

More information

Title: Dec 11 3:40 PM (1 of 11)

Title: Dec 11 3:40 PM (1 of 11) ... basic iframe body {color: brown; font family: "Times New Roman"} this is a test of using iframe Here I have set up two iframes next to each

More information

Introduction to Computer Science Web Development

Introduction to Computer Science Web Development Introduction to Computer Science Web Development Flavio Esposito http://cs.slu.edu/~esposito/teaching/1080/ Lecture 3 From Last time Introduction to Set Theory implicit and explicit set notation Jaccard

More information

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14 PIC 40A Lecture 4b: New elements in HTML5 04/09/14 Copyright 2011 Jukka Virtanen UCLA 1 Sectioning elements HTML 5 introduces a lot of sectioning elements. Meant to give more meaning to your pages. People

More information

Positioning in CSS: There are 5 different ways we can set our position:

Positioning in CSS: There are 5 different ways we can set our position: Positioning in CSS: So you know now how to change the color and style of the elements on your webpage but how do we get them exactly where we want them to be placed? There are 5 different ways we can set

More information

CS 1124 Media computation. Lab 9.3 October 24, 2008 Steve Harrison

CS 1124 Media computation. Lab 9.3 October 24, 2008 Steve Harrison CS 1124 Media computation Lab 9.3 October 24, 2008 Steve Harrison Today using strings to write HTML HTML From text to HTML to XML and beyond... 3 HTML is not a programming language Using HTML is called

More information

Hyper Text Markup Language

Hyper Text Markup Language Hyper Text Markup Language HTML is a markup language. It tells your browser how to structure the webpage. HTML consists of a series of elements, which you use to enclose, or mark up different parts of

More information

HTML Overview. With an emphasis on XHTML

HTML Overview. With an emphasis on XHTML HTML Overview With an emphasis on XHTML What is HTML? Stands for HyperText Markup Language A client-side technology (i.e. runs on a user s computer) HTML has a specific set of tags that allow: the structure

More information

Part A Short Answer (50 marks)

Part A Short Answer (50 marks) Part A Short Answer (50 marks) NOTE: Answers for Part A should be no more than 3-4 sentences long. 1. (5 marks) What is the purpose of HTML? What is the purpose of a DTD? How do HTML and DTDs relate to

More information

Certified HTML Designer VS-1027

Certified HTML Designer VS-1027 VS-1027 Certification Code VS-1027 Certified HTML Designer Certified HTML Designer HTML Designer Certification allows organizations to easily develop website and other web based applications which are

More information

It is possible to create webpages without knowing anything about the HTML source behind the page.

It is possible to create webpages without knowing anything about the HTML source behind the page. What is HTML? HTML is the standard markup language for creating Web pages. HTML is a fairly simple language made up of elements, which can be applied to pieces of text to give them different meaning in

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 3 Cascading Style Sheets (CSS) Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you

More information

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS: WEBSITE PROJECT 2 PURPOSE: The purpose of this project is to begin incorporating color, graphics, and other visual elements in your webpages by implementing the HTML5 and CSS3 code discussed in chapters

More information

INTRODUCTION TO WEB USING HTML What is HTML?

INTRODUCTION TO WEB USING HTML What is HTML? Geoinformation and Sectoral Statistics Section (GiSS) INTRODUCTION TO WEB USING HTML What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language

More information

XHTML & CSS CASCADING STYLE SHEETS

XHTML & CSS CASCADING STYLE SHEETS CASCADING STYLE SHEETS What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML XHTML is almost identical to HTML 4.01 XHTML is a stricter and cleaner version

More information

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2 Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!

More information

HTML, CSS, JavaScript

HTML, CSS, JavaScript HTML, CSS, JavaScript Encoding Information: There s more! Bits and bytes encode the information, but that s not all Tags encode format and some structure in word processors Tags encode format and some

More information

Hyper Text Markup Language

Hyper Text Markup Language Hyper Text Markup Language HTML is a markup language. It tells your browser how to structure the webpage. HTML consists of a series of elements, which you use to enclose, or mark up different parts of

More information

Styles, Style Sheets, the Box Model and Liquid Layout

Styles, Style Sheets, the Box Model and Liquid Layout Styles, Style Sheets, the Box Model and Liquid Layout This session will guide you through examples of how styles and Cascading Style Sheets (CSS) may be used in your Web pages to simplify maintenance of

More information

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Web Programming and Design MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Plan for the next 5 weeks: Introduction to HTML tags Recap on HTML and creating our template file Introduction

More information

Shane Gellerman 10/17/11 LIS488 Assignment 3

Shane Gellerman 10/17/11 LIS488 Assignment 3 Shane Gellerman 10/17/11 LIS488 Assignment 3 Background to Understanding CSS CSS really stands for Cascading Style Sheets. It functions within an HTML document, so it is necessary to understand the basics

More information

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda CISC 1600 Introduction to Multi-media Computing Agenda Email Address: Course Page: Class Hours: Summer Session II 2012 Instructor : J. Raphael raphael@sci.brooklyn.cuny.edu http://www.sci.brooklyn.cuny.edu/~raphael/cisc1600.html

More information

FUNDAMENTALS OF WEB DESIGN (46)

FUNDAMENTALS OF WEB DESIGN (46) 8 Pages Contestant Number Time Rank FUNDAMENTALS OF WEB DESIGN (46) Regional 2010 Points Section Possible Awarded 20 Questions @ 5pts. 100 pts Application (Subj.) 100 pts TOTAL POINTS 200 pts Failure to

More information

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD) Skill Area 323: Design and Develop Website Multimedia and Web Design (MWD) 323.4 Use graphics and objects on Web Page (7 hrs) 323.4.1 Insert foreground features 323.4.2 Modify image attributes 323.4.3

More information

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points) CS-101 Fall 2008 Section 4 Practice Final v1.0m Name: Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points) XHTML/CSS Reference: Entities: Copyright

More information

Chapter 4. Introduction to XHTML: Part 1

Chapter 4. Introduction to XHTML: Part 1 Chapter 4. Introduction to XHTML: Part 1 XHTML is a markup language for identifying the elements of a page so a browser can render that page on a computer screen. Document presentation is generally separated

More information

Static Webpage Development

Static Webpage Development Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction

More information

Introduction to HTML

Introduction to HTML Introduction to HTML What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML describes the structure of Web pages using markup HTML elements

More information

Schenker AB. Interface documentation Map integration

Schenker AB. Interface documentation Map integration Schenker AB Interface documentation Map integration Index 1 General information... 1 1.1 Getting started...1 1.2 Authentication...1 2 Website Map... 2 2.1 Information...2 2.2 Methods...2 2.3 Parameters...2

More information

New Media Production HTML5

New Media Production HTML5 New Media Production HTML5 Modernizr, an HTML5 Detection Library Modernizr is an open source, MIT-licensed JavaScript library that detects support

More information

Create a cool image gallery using CSS visibility and positioning property

Create a cool image gallery using CSS visibility and positioning property GRC 275 A8 Create a cool image gallery using CSS visibility and positioning property 1. Create a cool image gallery, having thumbnails which when moused over display larger images 2. Gallery must provide

More information

Announcements. Paper due this Wednesday

Announcements. Paper due this Wednesday Announcements Paper due this Wednesday 1 Client and Server Client and server are two terms frequently used Client/Server Model Client/Server model when talking about software Client/Server model when talking

More information

Guidelines for doing the short exercises

Guidelines for doing the short exercises 1 Short exercises for Murach s HTML5 and CSS Guidelines for doing the short exercises Do the exercise steps in sequence. That way, you will work from the most important tasks to the least important. Feel

More information

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1 STRANDS AND STANDARDS Course Description Web Development is a course designed to guide students in a project-based environment, in the development of up-to-date concepts and skills that are used in the

More information

Module 2 (III): XHTML

Module 2 (III): XHTML INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (III): XHTML Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals alfy@kfupm.edu.sa

More information

Deccansoft Software Services

Deccansoft Software Services Deccansoft Software Services (A Microsoft Learning Partner) HTML and CSS COURSE SYLLABUS Module 1: Web Programming Introduction In this module you will learn basic introduction to web development. Module

More information

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript. Extra notes - Markup Languages Dr Nick Hayward HTML - DOM Intro A brief introduction to HTML's document object model, or DOM. Contents Intro What is DOM? Some useful elements DOM basics - an example References

More information

Introduction to Web Development

Introduction to Web Development Introduction to Web Development Lecture 1 CGS 3066 Fall 2016 September 8, 2016 Why learn Web Development? Why learn Web Development? Reach Today, we have around 12.5 billion web enabled devices. Visual

More information

HTML Overview formerly a Quick Review

HTML Overview formerly a Quick Review HTML Overview formerly a Quick Review Outline HTML into Emergence of DHTML HTML History Evolution of Web 1.0 to Web 2.0 DHTML = HTML + JavaScript + CSS Key Set of HTML Tags Basic: a, html, head, body,

More information

CS7026 CSS3. CSS3 Graphics Effects

CS7026 CSS3. CSS3 Graphics Effects CS7026 CSS3 CSS3 Graphics Effects What You ll Learn We ll create the appearance of speech bubbles without using any images, just these pieces of pure CSS: The word-wrap property to contain overflowing

More information

HTML & XHTML Tag Quick Reference

HTML & XHTML Tag Quick Reference HTML & XHTML Tag Quick Reference This reference notes some of the most commonly used HTML and XHTML tags. It is not, nor is it intended to be, a comprehensive list of available tags. Details regarding

More information

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Instructions to use the laboratory computers (room B2): 1. If the computer is off, start it with Windows (all computers have a Linux-Windows

More information

Writing Perl Programs using Control Structures Worked Examples

Writing Perl Programs using Control Structures Worked Examples Writing Perl Programs using Control Structures Worked Examples Louise Dennis October 27, 2004 These notes describe my attempts to do some Perl programming exercises using control structures and HTML Forms.

More information

Introduction to: Computers & Programming: Review prior to 1 st Midterm

Introduction to: Computers & Programming: Review prior to 1 st Midterm Introduction to: Computers & Programming: Review prior to 1 st Midterm Adam Meyers New York University Summary Some Procedural Matters Summary of what you need to Know For the Test and To Go Further in

More information

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY) CHAPTER 1: GETTING STARTED WITH HTML EXPLORING THE HISTORY OF THE WORLD WIDE WEB Network: a structure that allows devices known as nodes or hosts to be linked together to share information and services.

More information

WordPress Manual For Massachusetts Academy of Math and Science

WordPress Manual For Massachusetts Academy of Math and Science WordPress Manual For Massachusetts Academy of Math and Science September 19, 2017 Table of Contents Who should use this manual... 4 Signing into WordPress... 4 The WordPress Dashboard and Left-Hand Navigation

More information

CPET 499/ITC 250 Web Systems. Topics

CPET 499/ITC 250 Web Systems. Topics CPET 499/ITC 250 Web Systems Lecture on HTML and XHTML, Web Browsers, and Web Servers References: * Fundamentals of Web Development, 2015 ed., by Randy Connolly and Richard Hoar, from Pearson *Chapter

More information

Techno Expert Solutions An institute for specialized studies!

Techno Expert Solutions An institute for specialized studies! HTML5 and CSS3 Course Content to WEB W3C and W3C Members Why WHATWG? What is Web? HTML Basics Parts in HTML Document Editors Basic Elements Attributes Headings Basics Paragraphs Formatting Links Head CSS

More information

Create a three column layout using CSS, divs and floating

Create a three column layout using CSS, divs and floating GRC 275 A6 Create a three column layout using CSS, divs and floating Tasks: 1. Create a 3 column style layout 2. Must be encoded using HTML5 and use the HTML5 semantic tags 3. Must se an internal CSS 4.

More information

map1.html 1/1 lectures/8/src/

map1.html 1/1 lectures/8/src/ map1.html 1/1 3: map1.html 5: Demonstrates a "hello, world" of maps. 7: Computer Science E-75 8: David J. Malan 9: 10: --> 1 13:

More information

HTML. HTML Evolution

HTML. HTML Evolution Overview stands for HyperText Markup Language. Structured text with explicit markup denoted within < and > delimiters. Not what-you-see-is-what-you-get (WYSIWYG) like MS word. Similar to other text markup

More information

XML. Jonathan Geisler. April 18, 2008

XML. Jonathan Geisler. April 18, 2008 April 18, 2008 What is? IS... What is? IS... Text (portable) What is? IS... Text (portable) Markup (human readable) What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future)

More information

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Downloads: Google Chrome Browser (Free) -   Adobe Brackets (Free) - Week One Tools The Basics: Windows - Notepad Mac - Text Edit Downloads: Google Chrome Browser (Free) - www.google.com/chrome/ Adobe Brackets (Free) - www.brackets.io Our work over the next 6 weeks will

More information

Useful Python Odds and Ends. Online Data String Functions

Useful Python Odds and Ends. Online Data String Functions Useful Python Odds and Ends Online Data String Functions Mar 17, 2016 CSCI 0931 - Intro. to Comp. for the Humanities and Social Sciences 1 HW Schedule Today (HW 2-7 out) : Build concordance Hardest so

More information

ATTENTION. Read my today about the A2 design surveys + note the due dates of these too! Don t forget to go through the Study Guide as well!

ATTENTION. Read my  today about the A2 design surveys + note the due dates of these too! Don t forget to go through the Study Guide as well! ATTENTION In these slides: Review + introduced to: for, while loop Slides #23: range(a,b,c) #another built-in function Slides #28-32: Loops to help you get the bonus for A3 (make sure you understand every

More information

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB By Hassan S. Shavarani UNIT2: MARKUP AND HTML 1 IN THIS UNIT YOU WILL LEARN THE FOLLOWING Create web pages in HTML with a text editor, following

More information