Web Programming Pre-01A Web Programming Technologies. Aryo Pinandito, ST, M.MT

Similar documents
Introduction to WEB PROGRAMMING

CS WEB TECHNOLOGY

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

Scripting for Multimedia LECTURE 5: INTRODUCING CSS3

CS144 Notes: Web Standards

MRK260. Week Two. Graphic and Web Design

Hypertext Markup Language, or HTML, is a markup

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

CGS 3066: Spring 2015 JavaScript Reference

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

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

Data Visualization (CIS/DSC 468)

Mobile Application Development Concept

INTERNET PROGRAMMING XML

Index LICENSED PRODUCT NOT FOR RESALE

Data Visualization (CIS 468)

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

ASP.NET AJAX adds Asynchronous JavaScript and XML. ASP.NET AJAX was up until the fall of 2006 was known by the code-known of Atlas.

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

GRAPHIC WEB DESIGNER PROGRAM

Basics of Web Technologies

Introduction to XML. M2 MIA, Grenoble Université. François Faure

Data formats. { "firstname": "John", "lastname" : "Smith", "age" : 25, "address" : { "streetaddress": "21 2nd Street",

Web Design and Application Development

HTML CS 4640 Programming Languages for Web Applications

A network is a group of two or more computers that are connected to share resources and information.

Assignments (4) Assessment as per Schedule (2)

User Interaction: XML and JSON

Three Ways to Use CSS:

Creating and Building Websites

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

HTML and CSS COURSE SYLLABUS

Data Visualization (DSC 530/CIS )

Comp 426 Midterm Fall 2013

AJAX ASYNCHRONOUS JAVASCRIPT AND XML. Laura Farinetti - DAUIN

Web Site Development with HTML/JavaScrip

Chapter 1: Getting Started. You will learn:

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Designing for Web Using Markup Language and Style Sheets

PIC 40A. Midterm 1 Review

UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

AIM. 10 September

The Nature of the Web

What is XML? XML is designed to transport and store data.

Introduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University


JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

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

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

Course Outline Advanced Web Design

Introduction to XML 3/14/12. Introduction to XML

Background of HTML and the Internet


XHTML & CSS CASCADING STYLE SHEETS

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

Local area network (LAN) Wide area networks (WANs) Circuit. Circuit switching. Packets. Based on Chapter 2 of Gary Schneider.

WML2.0 TUTORIAL. The XHTML Basic defined by the W3C is a proper subset of XHTML, which is a reformulation of HTML in XML.

User Interaction: XML and JSON

This tutorial will help both students as well as professionals who want to make their websites or personal blogs more attractive.

Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013

Unveiling the Basics of CSS and how it relates to the DataFlex Web Framework

Data Visualization (DSC 530/CIS )

Document Object Model. Overview

Web Standards Mastering HTML5, CSS3, and XML

JSON is a light-weight alternative to XML for data-interchange JSON = JavaScript Object Notation

MTA EXAM HTML5 Application Development Fundamentals

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

CITS1231 Web Technologies. Introduction to Cascading Style Sheets

Navigation. Websites need a formalized system of links to allow users to navigate the site

Languages in WEB. E-Business Technologies. Summer Semester Submitted to. Prof. Dr. Eduard Heindl. Prepared by

Aleph - Web Opac Accessibility. Accessibility in Aleph500 Web OPAC

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Semantic Web Lecture Part 1. Prof. Do van Thanh

Standard 1 The student will author web pages using the HyperText Markup Language (HTML)

Html basics Course Outline

Website Development with HTML5, CSS and Bootstrap

Data Visualization (DSC 530/CIS )

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

Introduction to Web Technologies

CS/COE 1520

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

MARKUP LANGUAGES. A brief history of Markup languages

HTML, XHTML, and CSS. Sixth Edition. Chapter 1. Introduction to HTML, XHTML, and

Course Outline Advanced Web Design

Creating Web Pages with HTML-Level III Tutorials HTML 6.01

5/19/2015. Objectives. JavaScript, Sixth Edition. Introduction to the World Wide Web (cont d.) Introduction to the World Wide Web

JavaScript Context. INFO/CSE 100, Spring 2005 Fluency in Information Technology.

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p.

Time: 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups as directed. Group A.

User Interaction: XML and JSON

Optimize HPC - Application Efficiency on Many Core Systems

Chapter 3 Style Sheets: CSS

8. Markup Languages. Characteristics of Computer-Use Markup Languages. Markup. Markup language- History

Lesson 5 Introduction to Cascading Style Sheets

HTML. Mendel Rosenblum. CS142 Lecture Notes - HTML

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

Transcription:

Web Programming Pre-01A Web Programming Technologies Aryo Pinandito, ST, M.MT

Document Formats: The evolution of HTML

HTML HyperText Markup Language Primary document type for the web Transmitted using the HyperText Transfer Protocol Client sends request string (with parameters) Server returns a document Stateless protocol Describes document content and structure Precise formatting directives added later Content and structure in same document Browser or formatter responsible for rendering Can partially render malformed documents Different browsers render differently 3

HTML structure HTML document is a text based representation of a tree of tags General structure: <OUTERTAG attribute1= val1 attribute2= val2 > <INNERTAG attribute3= val3 >some text</innertag> </OUTERTAG> 4

HTML evolution HTML 1 [early '90s] Invented by Tim Berners-Lee of CERN Aimed as standard format to faciliate collaboration between physicists Based on the SGML framework Old ISO standard for structuring documents Tags for paragraphs, headings, lists, etc. HTML added the hyperlinks, thus creating the web Rendered on prototype formatters 5

HTML evolution HTML+ [mid '94] First W3 conference [5/94] HTML+ presented HTML 2 [7/94-11/95] HTML 3.0 draft proposed [95] HTML 3.2 [1/97] HTML 4 [12/97] Stylesheet support <object> tag for multimedia and embedded objects Adapted by IE (market leader) Slow adaptation by Netscape XML 1.0 standard [2/98] XHTML 1.0 [1/00, 8/02] XHTML 1.1 6

HTML5

HTML5: What's New? New Structures More Semantics More Elements More Attributes Supports Dynamic Pages Tags that break usability become obsolete. 3D with Web GL Coupled with CSS3 SVG WOFF

Limitations of HTML No support for accessibility until HTML 4 No support for internationalization until HTML 4 No dynamic content in original definition No inherent support for different display configurations (e.g., grayscale screen) Except for alt tag for images Added in CSS2 No separation of data, structure and formatting Until version 4 With HTML5 web has become more dynamic 9

Other Document Formats?

Wireless Markup Language (WML) Markup language for WAP browsers WAP = Wireless Application Protocol Based on limited HTML, uses XML notation Uses WMLScript scripting language, based on JavaScript A page is called a "deck", displayed in individual sections called "cards" Tasks are used to perform events Variables used to maintain state between cards 11

JSON (JavaScript Object Notation) A lightweight format that is used for data interchanging. It is also a subset of JavaScript's Object Notation (the way objects are built in JavaScript) { } "firstname": "John", "lastname": "Smith", "address": { "streetaddress": "21 2nd Street", "city": "New York", "postalcode": 10021 }, "phonenumbers": [ "212 555-1234","646 555-4567" ]

Extensible Markup Language (XML) A markup language that defines a set of rules for encoding documents in a format that is both humanreadable and machine-readable. <?xml version="1.0" encoding="utf-8"?> <note> <to>tove</to> <from>jani</from> <heading>reminder</heading> <body>don't forget me this weekend!</body> </note>

Client-side: Cascading Style Sheets

Why CSS? HTML was not meant to support styling information But browsers started supporting inline style changes to make web look better Inline styling information is problematic Difficult to change Lack of consistency No support for different display formats Bloats pages No support for some styling features 15

Connecting HTML to CSS HTML document typically refers to external style sheet <HEAD> <LINK rel="stylesheet" type="text/css href="fluorescent.css"> </HEAD> Style sheets can be embedded: <HEAD><STYLE type="text/css"> <!-- CSS DEFINITIONS.. --> </STYLE></HEAD> 16

Connecting HTML to CSS Styles can be embedded inline with the style attribute Style sheets can be chosen by media type Simply add a media attribute to the link or style tags Choose from: screen, tty, tv, projection, handheld, braille, aural, all HTML document can provide several stylesheet options Give titles to each stylesheet One preferred (default) style, the rest are alternates e.g., http://www.w3.org/style/examples/007/alternatives.html Default configuration in internal browser stylesheet and user stylesheet 17

Style sheet structure Declaration gives value to property Property: value e.g., color: red Styles are applied to selectors Selector describes element Simplest form is tag type e.g., P {color:red; font-size: 16px} Style sheet is a series of style applications Can import other stylesheets @import url(corestyles.css); BODY {color: red; background-color: black} Style of enclosing element is inherited by enclosed 18

Selectors Type selectors Name of HTML elements Pseudo-class Specific subset of an HTML elements e.g., :link, :visited, :active for the A tag Pseudo-element Specific subset of any element e.g., :first-line, :first-letter Context sensitive elements e.g., H2 I {color:green} 19

Selectors Element classes HTML document can classify tags e.g., <P class= warning > </P> Can refer to element type with specific class e.g., P.warning {color:red} Can refer to all elements with specific class e.g.,.warning {color:red} Use HTML tags <div> and <span> Element IDs HTML entity can have a unique id attribute e.g., <P id= copyright > </P> #copyright {color:blue} 20

Cascading Most properties are inherited From enclosing element to internal element Sort order for conflict resolution: Origin (page>user>browser) Weight (!important symbol allows overriding) Specificity Order 21

How is CSS applied? 1. Source document is parsed into a DOM tree 2. Media type is identified 3. Relevant stylesheets obtained 4. DOM tree annotated with values to every property 5. Formatting structure generated 6. Formatting structure presented (rendered) 22

CSS2 Extends CSS1 Many new properties and built-in classes Better support for media types Stylesheet can specify type in selector Better support for accessibility Properties for aural rendering Better support for internationalization 23

CSS3

CSS3 Extends CSS2 Rounded corners Border images Shadows Improved Backgrounds Transformations Rotate, Translate, Skew, Scale Transitions Animations Font-faces

Client Side: Scripting Languages JavaScript, VBScript, DHTML

JavaScript The most common scripting language Originally supported by Netscape, eventually by IE Typically embedded in HTML page Executable computer code within the HTML content Interpreted at runtime on the client side Can be used to dynamically manipulate an HTML document Has access to the document s object model Can react to events Can be used to dynamically place data in the first place Often used to validate form data Weak typing 27

JavaScript Syntax Code written within <script> element e.g., <script type="text/javascript"> document.write("hello World!") </script> Use src attribute for scripts in external files Placement determines execution time Scripts in header must be invoked explicitly e.g., during events Scripts in body executed when that part is being processed. 28

JavaScript Syntax User can declare variables e.g., var name = user ; Variables can be global to the page User can declare functions function func(argument1,argument2, ) { some statements } Function can return values with return Standard conditionals if..then..else, switch,?: operator Standard loops while, do..while, for 29

JavaScript Syntax JavaScript has built-in "Object" types Variety of operators and built-in functions Arrays, Booleans, Dates, Math, Strings Direct access to the HTML DOM model HTML Elements have script-specific event attributes e.g., <body onmousedown="whichbutton()"> e.g., <input type="button" onclick="uncheck()" value="uncheck Checkbox"> 30

VBScript Microsoft's answer to JavaScript Never been supported by Netscape Less in use now Use <script type="text/vbscript"> Similar to JavaScript Follows Visual Basic look and feel Possible to declare variables Use option explicit to force declaration Separates procedures and functions 31

DHTML DHTML is a marketing buzzword It is not a W3C standard Every browser supports different flavour It is HTML 4 + CSS stylesheets + scripting language with access to document model 32

Questions?

감사합니 다 Danke Grazias Gratias Kiitos شكرا Terima Kasih 谢谢 Merci धन यव द Thank You ありがとうございます