CSCI 3100 Tutorial 2 Web Development Tools 1 HTML 5 & CSS 3 1.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

CSCI 3100 Tutorial 6 Web Development Tools 1 Cuiyun GAO 1.
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
/k/k 1212 Cascading Style Sheets Part one Marko Boon
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
DT228/3 Web Development WWW and Client server model.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Rommel Anthony Palomino Summer 2011.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
Languages for Dynamic Web Documents
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Where Do I Start REFERENCE: LEARNING WEB DESIGN (4 TH EDITION) BY ROBBINS 2012 – CHAPTER 1 (PP. 3 – 14)
What is Web Design The term “web design” has come to encompass a number of disciplines, including: Visual (graphic) design User interface and experience.
Chapter 14 Introduction to HTML
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Web Design Basic Concepts.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Chapter 1: Introduction to Web
Webpage design for researchers Dr Jim Briggs 1.
HTML tips BTM 395: Internet Programming. Components of website development Content Structure Format and design Dynamics and interactivity –Forms –Client-side.
HTML CSS JAVASCRIPT. HTML - Stands for Hyper Text Markup Language HTML is a ‘language’ that describes web pages. This language is a collection of codes.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Introduction to HTML Tutorial 1 eXtensible Markup Language (XML)
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
WEB SCIENCE. What is the difference between the Internet and the World Wide Web? Internet is the entire network of connected computers and routers used.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Introduction To HTML.  HTML stands for Hyper Text Markup Language.  HTML was developed by Tim Berners-Lee.  HTML is maintained by World Wide Web Consortium(W3C).
Session I Chapter 1 - Introduction to Web Development
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Louisa Lambregts, Louisa Lambregts
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
Web Development Process The Site Development Process Site Construction is one of the last steps.
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Asstt. Prof Sonia Sharma Computer Dept 1 HTML ( Hypertext MarkUP Language ) HTML is the lingua franca for publishing hypertext on the World Wide Web.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Introduction to the World Wide Web & Internet CIS 101.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
National College of Science & Information Technology.
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
The HTML5 logo was introduced by W3C in 2010
Dive into web development
Introduction and HTML overview
Web Systems & Technologies
Web Basics: HTML/CSS/JavaScript What are they?
Project 1 Introduction to HTML.
Objective % Select and utilize tools to design and develop websites.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Objective % Select and utilize tools to design and develop websites.
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Secure Web Programming
Computer communications
CIS 133 mashup Javascript, jQuery and XML
Web Development 101 Workshop
Client-Server Model: Requesting a Web Page
WORKSHOP A Basics in HTML/CSS.
Presentation transcript:

CSCI 3100 Tutorial 2 Web Development Tools 1 HTML 5 & CSS 3 1

Motivation 2 Why HTML5 (H5), not HTML?  Video and audio support  Cleaner code  Better interactions (url:  Game development  …

3 Why CSS3, not CSS?  Text gradient  Stylish features  Fancy ampersand  …

4 Note: Using H5 and CSS3 is also required in the project. Passive HTML web pages is not programming.

Outlines Introduction Client Side Programming Server Side Programming HTML HTML 5 CSS 3 5 It’s not a rocket science. Take it easy.

Introduction What is network (e.g. Internet)? Your computer Internet Client Server 6

What is web programming? Client Server Internet Client-Side Program (HTML/CSS/Javascri pt…) Webpage Server-Side Program (Node.js/PHP/…) 7 Note: Even though PHP is a still widely used, but our project requires more advanced techniques, which will be introduced in the subsequent tutorials.

Client Server Webpage Request 8 Client-Side Program (HTML/CSS/Javascri pt/..) Server-Side Program (JavaScript/PHP/…)

Client Server Webpage Client-Side Program (Define the website content or the requested info) Server-Side Program Respond 9

Client Server Webpage Client-Side Program (Running) Server-Side Program (Running) Interaction 10

11 A web access example: Google.com Http status codes: 302 Found: This is an example of industry practice contradicting the standard. 200 OK: Standard response for successful HTTP requests. 204 No Content: The server successfully processed the request, but is not returning any content. 404 Not Found: The requested resource could not be found but may be available again in the future. Http status codes: 302 Found: This is an example of industry practice contradicting the standard. 200 OK: Standard response for successful HTTP requests. 204 No Content: The server successfully processed the request, but is not returning any content. 404 Not Found: The requested resource could not be found but may be available again in the future. F12

Client Side Programming (Skills you must know) HTML –Used by most websites to create visually engaging webpages, user interfaces for web applications, and user interfaces for many mobile applications JavaScript (Tutorial 3 & 4) –Most websites employ it and it is supported by all modern web browsers without plug-ins –Server-side programming language, such as Node.js CSS –Style sheet language for describing the look and formatting of web pages 12

Server Side Programming (Tutorial 4) Node.js Django (Python) Perl Ruby on Rails PHP Hack ASP.NET … 13 Companies using Node.js: Applications,-and-Companies-Using-Nodehttps://github.com/nodejs/node-v0.x-archive/wiki/Projects,- Applications,-and-Companies-Using-Node

14 Programming languages used in most popular websites Refer to:

HTML What is HTML? 15  HyperText Markup Language  HTML is how two computers speak to each other over the Internet.  Written as a tag file. My Title My First Heading My First paragraph

HTML Structure of HTML Tags 16 My Title My First Heading My First paragraph.

HTML Tags: –E.g. Type of tags –html, head, body, script, title, p, a, br, div, li, ul, select, option, span, button, textarea, center, em, iframe, input, link, tr, td, table … –See list here: Good IDE: –Sublime, Webstorm, HBuilder….. –You can find more here:

HTML How to write HTML? HTML HEAD BODY TITLE SCRIPTLINK DIV …BRTABLESPAN … DIV... THTDTR… 18

19 HTML Versions VersionYear HTML1991 HTML HTML HTML XHTML2000 HTML 52014

HTML 5 Basic Tags: –Learn it here: HTML5 Tags: –Introducing new tags, e.g., canvas, video, SVG, location, … –See example: W3school: –Basic standards 20

Steps to write good web service 1.Use HTML 5 to write web page structure 2.Use CSS 3 to create fancy effect 3.Use JavaScript to provide self-define functionalities 4.Use Node.js to interact with server-side program 5.Use Database to allow log-in engine and other data recording … 21

Steps to write good web service 22 1.Use HTML 5 to write web page structure 2.Use CSS to create fancy effect 3.Use JavaScript to provide self-define functionalities 4.Use Node.js to interact with server-side program 5.Use Database to allow log-in engine and other data recording …

HTML 5 Video 23 video demo

HTML 5 Canvas is one the most important feature in HTML 5 You can use it to implement: – 2D Game (like Flash game) – Image filter, painter – Complex graphics It’s controlled by JavaScript. 24

HTML 5 Canvas 25 canvas demo <canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;"> var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.beginPath(); ctx.arc(95,50,40,0,2*Math.PI); ctx.stroke(); See APIs:

Steps to write good web service 26 1.Use HTML 5 to write web page structure 2.Use CSS 3 to create fancy effect 3.Use JavaScript to provide self-define functionalities 4.Use Node.js to interact with server-side program 5.Use Database to allow log-in engine and other data recording …

CSS 3  Cascading Style Sheets  Style can make your website fancy and well organized.  Written as a.css file, containing all the styles used in the web page. 27

CSS 3 What is style? 28 My Title <div style="width:90%; height:70%;margin-left:4%; margin-top:5px; padding:20px; background:#FFEEBB; -webkit-box-shadow:2px 2px 10px #000;"> My First Heading My First paragraph.

CSS 3 Html file 29 My Title My First Heading My First paragraph.

CSS 3 style.css 30 div{ width:90%; height:70%;margin-left:4%; margin-top:5px; padding:20px; background:#FFEEBB; -webkit-box-shadow:2px 2px 10px #000; } h1{ color: #1122BB; } p{ text-shadow: 2px 2px 2px #CCCCCC; }

CSS 3 style1.css 31 div { width:90%; height:70%; margin-left:4%; margin-top:5px; padding:20px; background:#FFEEBB; -webkit-transition: all 1s; -webkit-box-shadow:2px 2px 10px #000; border-radius:25px; } div:hover { width:50%; height:60%; background:#EEEEEE; -webkit-transform: rotate(-30deg); }

CSS 3 Please try more properties and learn to organize your website with CSS style.  2D & 3D transformation  Animations  Multi-column  Text effect  Gradient & border radius Tutorial: CSS3 provides more fancy properties for us. 32

33 Build a Registration Page

References text-styling/ text-styling/ 34