PW 01 Introduction To Web Technologies
PW 01 Introduction To Web Technologies
HTML
HyperText Markup Language
Primary document type for the web
Stateless protocol
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>
HTML evolution
HTML 1 [early '90s]
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
HTML5
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)
Until version 4
With HTML5 web has become more dynamic
11
{
"firstName": "John",
"lastName": "Smith",
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"postalCode": 10021
},
"phoneNumbers": [
"212 555-1234","646 555-4567"
]
}
Why CSS?
15
Difficult to change
Lack of consistency
No support for different display formats
Bloats pages
No support for some styling features
<HEAD>
<LINK rel="stylesheet" type="text/css
href="fluorescent.css">
</HEAD>
<HEAD><STYLE type="text/css">
<!-- CSS DEFINITIONS.. -->
</STYLE></HEAD>
16
e.g., http://www.w3.org/Style/Examples/007/alternatives.html
17
Property: value
e.g., color: red
Selector describes element
Simplest form is tag type
e.g., P {color:red; font-size: 16px}
@import url(corestyles.css);
BODY {color: red; background-color: black}
18
Selectors
Type selectors
Pseudo-class
Pseudo-element
19
e.g., H2 I {color:green}
Selectors
Element classes
Element IDs
20
Cascading
21
Origin (page>user>browser)
Weight (!important symbol allows overriding)
Specificity
Order
2.
3.
4.
5.
6.
22
CSS2
Extends CSS1
23
CSS3
CSS3
Extends CSS2
Rounded corners
Border images
Shadows
Improved Backgrounds
Transformations
Transitions
Animations
Font-faces
Client Side:
Scripting Languages
JavaScript, VBScript, DHTML
JavaScript
Weak typing
27
JavaScript Syntax
28
JavaScript Syntax
function func(argument1,argument2,)
{ some statements }
Standard conditionals
Standard loops
29
JavaScript Syntax
30
VBScript
31
DHTML
32
Questions?
Grazias Kiitos
Danke Gratias
Terima Kasih
Merci
Thank You