Session 7 More on the internet HTML and CSS Teaching Computing to GCSE Level with Python.

Slides:



Advertisements
Similar presentations
4.01 How Web Pages Work.
Advertisements

Project 1 Introduction to HTML.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
Layer 7- Application Layer
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
Browser Basics Tutorial 2 Introduction to Microsoft Internet Explorer.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Introduction 2: Internet, Intranet, and Extranet J394 – Perancangan Situs Web Program Sudi Manajemen Universitas Bina Nusantara.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
The Internet 8th Edition Tutorial 1 Browser Basics.
1st Project Introduction to HTML.
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
The Internet & The World Wide Web Notes
CSCI 323 – Web Development Chapter 1 - Setting the Scene We’re going to move through the first few chapters pretty quick since they are a review for most.
INTRODUCTION TO WEB DATABASE PROGRAMMING
IT 210 The Internet & World Wide Web introduction.
CNIT 132 Intermediate HTML and CSS Course Overview.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Chapter 1: Introduction to Web
Lecturer: Ghadah Aldehim
Lesson 2 — The Internet and the World Wide Web
CS134 Web Design & Development Introduction to the Internet Mehmud Abliz.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
1 Jordan University of Science & Technology Faculty of Computer & Information Technology Department of Computer Science CIS 100Internet.
BASIC UNDERSTANDING OF INTERNET AND WEB BRIDGE COURSE of INFORMATION & COMMUNICATION TECHNOLOGY Activity No. 8.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 1 1 Browser Basics Introduction to the Web and Web Browser Software Tutorial.
Web Engineering we define Web Engineering as follows: 1) Web Engineering is the application of systematic and proven approaches (concepts, methods, techniques,
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Communication, Networks, The internet and the Worldwide Web.
The Internet The internet is simply a worldwide computer network that uses standardised communication protocols to transmit and exchange data.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
Application Layer Honolulu Community College Cisco Academy Training Center Semester 1 Version
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Website design and structure. A Website is a collection of webpages that are linked together. Webpages contain text, graphics, sound and video clips.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Sound (analogue signal). time Sound (analogue signal) time.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Topic 6, Lesson 3: The Internet Computer Communications and Networking.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
The Internet Technological Background. Topic Objectives At the end of this topic, you should be able to do the following: Able to define the Internet.
1 UNIT 13 The World Wide Web. Introduction 2 Agenda The World Wide Web Search Engines Video Streaming 3.
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
Internet and World Wide Web Introduction to the Internet.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
* Web Servers/Clients * The HTTP Protocol
4.01 How Web Pages Work.
JavaScript and Ajax (Internet Background)
Chapter 1 Introduction to HTML.
Application Layer Honolulu Community College
Warm Handshake with Websites, Servers and Web Servers:
CNIT 131 Internet Basics & Beginning HTML
OCR Computing for GCSE © Hodder Education 2011
Introduction To Web Design
Web Design Introduction to the Internet Week One
Wednesday, September 19, 2018 What Is the Internet?
Web Design & Development
Web Server Technology Unit 10 Website Design and Development.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
* Web Servers/Clients * The HTTP Protocol
Presentation transcript:

Session 7 More on the internet HTML and CSS Teaching Computing to GCSE Level with Python

Topics today Theory The internet – more on IP addresses HTML CSS

From the specification OCR  (i) describe the nature of the Internet as a worldwide collection of computer networks  (j) describe the hardware needed to connect to the Internet including modems, routers etc  (k) explain the need for IP addressing of resources on the Internet and how this can be facilitated by the role of DNS servers  (l) explain the importance of HTML and its derivatives as a standard for the creation of web pages  (m) describe common file standards associated with the Internet such as JPG, GIF, PDF, MP3, MPEG  (n) explain the importance of compressing files that are transmitted via the Internet  (o) describe the differences between lossy and lossless compression AQA   understand the concept of coding at the server and client end   know what can be coded at the server end   know what can be coded at the client end   have experience of coding solutions to simple web application problems

Last week  The internet is a very large Wide Area Network  World-wide collection of thousands of LAN and WAN networks  The internet is a client-server network  Services available on the Internet:  World Wide Web  File Transfer Protocol (FTP) servers   Cloud technology (storage online)  A protocol is a set of pre-agreed signals, codes and rules to be used for communication between systems

Other aspects of using the web  URL (uniform resource locator)  Domain names – what the codes mean  IP addresses (and relationship with domain names)  Compression of data/file types  For GCSE: being able to develop basic web pages  (AQA only: some server-side programming involved)

Uniform Resource Locator (URL)  The global address of documents and other resources on the World Wide Web.  The first part of the address indicates what protocol to use, and the second part specifies the IP address or the domain name where the resource is located. (How, where, what)  For example, specifies a Web page that should be fetched using the HTTP protocol. How? Protocol used Where? Domain name What? Path to page

Domain Name  A domain name is a string of identifiers separated by ‘ dots ’ (full-stop)  Web Server domain names can identify the type of organisation and often the country in which the server is located.

International codes.ac academic institution.cocompany that trades in a single country.comcommercial organisation that trades internationally.edueducational establishment.govgovernment dept or related facility.netcompany providing internet access.orgnon-profitmaking, e.g. charity

UK specific codes.ltd UK limited company.schschool

Country codes A 2-character code at the end of the name shows where the host computer is located Examples:.auAustralia.esSpain.sgSingapore.ukUK

Domain Name System  The Domain Name System (DNS) was invented so users could use a memorable name to refer to a network and a host on that network.  The DNS is a hierarchical system of names and abbreviations  A Fully Qualified Domain name (FQDN) is one which uniquely identifies a host, such as mail.longroad.ac.uk  DNS servers translate FQDNs into IP Addresses.  Hosts use DNS servers to resolve domain names into IP addresses before connecting to other hosts on the Internet.

IP Addresses  Every Web site has a ‘ Home page ’ with a unique address known as its IP address  4 numbers, each in range 0 to 255, separated by full-stops. e.g  IP addresses are difficult to remember, so can use Domain Name instead  Domain name system maps the domain names onto the IP addresses

Compression Techniques  In Computer Science data compression or source coding is the process of encoding information using fewer bits than an unencoded representation would use through use of specific encoding schemes. Examples include the ZIP file format and MP3.  Compression is useful because it helps reduce the consumption of expensive resources, such as hard disk space or transmission bandwidth.

Lossy and Lossless Compression Lossless compression algorithms usually exploit statistical redundancy in such a way as to represent the sender's data more concisely without error. Lossless compression is possible because most real-world data has statistical redundancy. For example can be compressed as: 25.[9]8 Interpreted as, "twenty five point 9 eights", the original string is perfectly recreated, just written in a smaller form Lossy compression discards information which is not considered important e.g. background scenery is saved with reduced resolution, uses fewer bits for colours to which the human eye is less sensitive and uses fewer bits for low-intensity colours Decompressing a lossy compression image results in an uncompressed image that is different from the original but is close enough to be useful. Question: What data do we need lossless compression for?

HTML and CSS Students should be able to use HTML and CSS. Basic elements of a webpage: HTML – Structure and content CSS – Presentation and Design JavaScript – behaviour Good resources here: W3 Schools Google From the Ground Up course Introduction Video on CSS There are lots of videos from Google which will be particularly good for the AQA specification and looking at server-side scripting Microsoft Virtual Academy Microsoft Virtual Academy also have lots of courses on HTML5 and CSSlots of courses

Task 1 From the shared drive copy the files -basics.html -astyle.css The “basics” file does not include very much – but the css file can be edited to make it look very different. Add some additional content to the basics file in line with the css file and then edit the css file to make the file look different.

Task 2: Create a simple form in HTML First name: Last name:

Task 3: Enhance the form Use w3Schools.com to look up elements of a form Create a more sophisticated page with:  Heading  Form with -Text boxes -Radio buttons -Check boxes -Simple drop-down menu

Task 3: Responding to a form Please enter your name:

Task 3: Responding to a form #!C:\Python31\python.exe import cgi def htmlTop(): print("""Content-type:text/html\n\n Retrieving your name ""”) def htmlTail(): print(""" ""”) # main program if __name__ =="__main__”: try: htmlTop() print(“Hello there!”) htmlTail() except: cgi_print_exception()

Getting data from a form def getData(): formData = cgi.FieldStorage() firstName = formData.getvalue("firstname") return firstName # main program if __name__ =="__main__": try: htmlTop() userName = getData() print("Your name is {0}".format(userName)) htmlTail() except: cgi_print_exception()

Using Apache web server Click on XAMPP and turn Apache on Copy both files to C://Xampp/Htdocs Run by entering localHost in a web browser

Exam questions

Answer

Another question …

Answer 4 (a)

Answer 4 (b)

Another question…

Answer