A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / 2011-02-21 1Chris Greenhalgh

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

LIS650lecture 1 XHTML 1.0 strict Thomas Krichel
Introduction to HTML & CSS
Coursework 2: getting started (3) – hosting static web pages Chris Greenhalgh G54UBI /
Web Development & Design Foundations with XHTML
HTML. The World Wide Web Protocols Addresses HTML.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Elder L. Lionel Kendrick Of the First Quorum of the Seventy It has been from the beginning and it will be till the end that the natural man will have a.
Website Design.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
HTML and XHTML Controlling the Display Of Web Content.
Markup Languages Controlling the Display Of Web Content.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Creating a Simple Page: HTML Overview
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
CS 299 – Web Programming and Design Introduction to HTML.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
HTML (HyperText Markup Language)
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Reading & Exam Zeid: Chapter 9: XHTML Essential p Read before EXAM 1 Exam is Monday Oct. 25 th Review on Friday Oct. 22 nd.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML TAGS I Basic Tags. North Lake College 2 by Sean Griffin Sample XHTML Code.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
A really fairly simple guide to: mobile browser-based application development (part 2, CSS) Chris Greenhalgh G54UBI / Chris Greenhalgh
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
Computer Basics Introduction CIS 109 Columbia College.
Working with Cascading Style Sheets
Web Systems & Technologies
Web Basics: HTML/CSS/JavaScript What are they?
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Intro to CSS CS 1150 Fall 2016.
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
Intro to CSS CS 1150 Spring 2017.
Introduction to HTML- Basics
Computer communications
CIS 133 mashup Javascript, jQuery and XML
CS3220 Web and Internet Programming HTML and XML Basics
Presentation transcript:

A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh

Content What is a mobile browser? What’s in a web page? HTML – Common file structure – What is an element? – From elements to view – Common elements and attributes Browser input files View size on mobile devices 2Chris Greenhalgh

See also Separate slides on setting up an Android emulator, using the browser and serving static web pages 3Chris Greenhalgh

What is a mobile browser? Browser application 5: Creates view & 6: Handles user input HTML, images, … 4 & 6: Runs “client-side” scripts (e.g. Javascript) 2: or client reads file on phone Mobile phone Web Server 3: Server handles HTTP request  e.g. handling form submission and 3c: returns response  e.g. document HTML, images, … 3b: Runs “Server-side” scripts (e.g. PHP) 3a: Reads files on server 2: Client makes HTTP request e.g. get URL 1: Enter URL… network 4Chris Greenhalgh

What’s in a web page…? Document Structure and content (HTML) Styling (CSS) Behaviour (Javascript) On-loading behaviour Event- triggered behaviour Images and other media (JPG, PNG, …) Embedded pages and objects Not considered here 5Chris Greenhalgh

HTML… 6Chris Greenhalgh

A simple HTML page 7 Hello Hello Chris Greenhalgh

A simple HTML page 8 Hello Hello Document Type Document HTML Header Metadata (title) HTML page content Element (heading) Character data Chris Greenhalgh

html* body*head* A simple HTML page seen as tree 9 title* h1 Hello Document Type Document element Header (head) element Metadata (title) element Content (body) element Element (heading) Character data * Required elements Chris Greenhalgh

A slightly more complicated page Hello Hello Some 10-point text, Bold 10Chris Greenhalgh

An example element 11 Begin tag Child Character data Some 10-point text, Bold Child element End tag Element name Attribute name Element value Note: end tags are only used for some elements in HTML (but for all elements in XHTML and XML) Chris Greenhalgh

Example element as tree 12 p style“font-size: 10” Attributes: Has attribute Has child “Some 10-point text,” b “Bold” “Paragraph” “Bold” Chris Greenhalgh

HTML generic structure Text document describing a “tree” of data – Comprising “elements” with “attributes” and “children”, including other elements and “character data” – like XML, based on SGML – Several versions including HTML4, XHTML, and HTML5 13Chris Greenhalgh

HTML, structure, content and style The tags describe: – the logical structure of the document E.g. “heading”, “paragraph”, “link” – Some elements of style, but this is NOT recommended in general E.g. “ bold text ” The attributes describe: – More about each element, e.g. font style, link URL The character data is the visible content 14Chris Greenhalgh

From elements to views… 15 p style “font-size: 10” “Some 10-point text,” b “Bold” Chris Greenhalgh

HTML specifications Each version of HTML specifies – What the elements are – What attributes each element can (or must) have – Which elements can have children, and if so which child elements they can have Each browser may also support slightly different elements and/or attributes, or support them in slightly different ways Details are out of scope for this course 16Chris Greenhalgh

Some common HTML elements …, …, … - Headings … - Paragraph … - an arbitrary section (“division”) - line-break - horizontal rule (line) … … - Un-numbered list and one list item LABEL - hyperlink (“Anchor”) - image - a button 17Chris Greenhalgh

Special HTML Attributes Every content element can have the following special attributes: – id – specifies a unique identity (name) for the element, that can be referred to elsewhere No two elements can have the same ID – class – specifies a “class” name for the element, generally used to identify a particular visual appearance to be specified elsewhere Any number of elements can have the same class 18Chris Greenhalgh

Browser input files Image file(s).png,.jpg, … Script file(s).js Style file(s).css External… Inline… … Hello… HTML file.html,.htm So there could just be an HTML file, or there could be several other linked files as well 19Chris Greenhalgh

View size on mobile devices By default most mobile browsers pretend to have screen width of about 900 pixels – Which is why the example pages look small when viewed on the emulator A meta tag in the HTML page header can tell the mobile browser to use its “real” width, which is 320 (CSS) pixels on most mobiles: – – See Chris Greenhalgh

Conclusions HTML is used to specify the (tree) structure and content of a web page – There is a standard document structure – There are standard elements and attributes You should now be able to – Read and roughly understand an HTML file – Create and edit simple static HTML files 21Chris Greenhalgh

Other resources The WWW Consortium, HTML 4.01 specification, Online tutorials, e.g. – Chris Greenhalgh