HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

Similar documents
Client-side Techniques. Client-side Techniques HTML/XHTML. Static web pages, Interactive web page: without depending on interaction with a server

c122jan2714.notebook January 27, 2014

Announcements. Paper due this Wednesday

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

introduction to XHTML

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

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

HTML CS 4640 Programming Languages for Web Applications

Introduction to HTML5

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

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

Accessibility of EPiServer s Sample Templates

Module 2 (III): XHTML

HTML. HTML Evolution

Web Design and Development ACS Chapter 3. Document Setup

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

XHTML. XHTML stands for EXtensible HyperText Markup Language. XHTML is the next generation of HTML. XHTML is almost identical to HTML 4.

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

(1) I (2) S (3) P allow subscribers to connect to the (4) often provide basic services such as (5) (6)

History of the Internet. The Internet - A Huge Virtual Network. Global Information Infrastructure. Client Server Network Connectivity

XHTML & CSS CASCADING STYLE SHEETS

Web Designing Course

INTRODUCTION TO HTML5! HTML5 Page Structure!

Programmazione Web a.a. 2017/2018 HTML5

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

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

CSC 121 Computers and Scientific Thinking

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

A Brief Introduction to HTML

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

HTML Forms. CITS3403 Agile Web Development. 2018, Semester 1

HTML. Hypertext Markup Language. Code used to create web pages

Certified HTML5 Developer VS-1029

What is XHTML? XHTML is the language used to create and organize a web page:

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

Developing a Basic Web Page

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

What is HTML5? The previous version of HTML came in The web has changed a lot since then.

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Markup Language. Made up of elements Elements create a document tree

Hypertext Markup Language, or HTML, is a markup

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Understanding the Web Design Environment. Principles of Web Design, Third Edition

GRAPHIC WEB DESIGNER PROGRAM

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

ROLE OF WEB BROWSING LAYOUT ENGINE EVALUATION IN DEVELOPMENT

CS144 Notes: Web Standards

HTML Overview. With an emphasis on XHTML

HTML5 MOCK TEST HTML5 MOCK TEST I

A Balanced Introduction to Computer Science, 3/E

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Techno Expert Solutions An institute for specialized studies!

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Ministry of Higher Education and Scientific Research

CPET 499/ITC 250 Web Systems. Topics

Course Overview. Week 1

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Fundamentals: Client/Server

Web Design and Development ACS Chapter 13. Using Forms 11/27/2018 1

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Form Overview. Form Processing. The Form Element. CMPT 165: Form Basics

Web Site Development with HTML/JavaScrip

HTML 5: Fact and Fiction Nathaniel T. Schutta

Summary 4/5. (contains info about the html)

Web Design and Application Development

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Chapter 1 Introduction to HTML, XHTML, and CSS

HTML. Based mostly on

Semantic Web Lecture Part 1. Prof. Do van Thanh

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

HTML TUTORIAL ONE. Understanding What XHTML is Not

Document Object Model. Overview

Title: Sep 12 10:58 AM (1 of 38)

HTML: The Basics & Block Elements

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

White Paper. elcome to Nokia s WAP 2.0 XHTML browser for small devices. Advantages of XHTML for Wireless Data

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Web Programming Week 2 Semester Byron Fisher 2018

1.264 Lecture 12. HTML Introduction to FrontPage

HTML5 INTRODUCTION & SEMANTICS

HTML+ CSS PRINCIPLES. Getting started with web design the right way

Html basics Course Outline

HTML Hyper Text Markup Language

c122sep2914.notebook September 29, 2014

INTRODUCTION TO WEB USING HTML What is HTML?

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

HTML Forms. By Jaroslav Mohapl

Introduction to WEB PROGRAMMING

HTML5 INTRODUCTION & SEMANTICS

Advanced HTML Scripting WebGUI Users Conference

Chapter 10: Understanding the Standards

Background of HTML and the Internet

RAGE WebDesign Quick Start 1 of 18. Welcome To RAGE WebDesign

Certified HTML Designer VS-1027

HTML Overview formerly a Quick Review

Transcription:

HTML HTML/XHTML HyperText Mark-up Language Basic language for WWW documents Format a web page s look, position graphics and multimedia elements Describe document structure and formatting Platform independent: High-level language, No machine code HTML is rendered to a graphic format by the browser markup tags suggests the Web browser how to display the page 1 2 HTML / XHTML HTML: Loose syntax Few syntactic rules: not enforced by HTML processors Browsers are forgiving XHTML: (extensible HTML) Stricter syntax HTML tag/attribute: lowercase HTML 1995: HTML 2.0: simple 1997: HTML 3.2: Standardized by the World Wide Web Consortium (W3C) Proprietary tags 1999: HTML 4.01, A clean up of 4.0 3 variations: strict, transitional, frameset 2000: XHTML 1.0 (x: extensible) Reformation of HTML 4.01 using XML, strict syntax No new elements/attributes, difference: syntax 2001: XHTML 1.1: drop frames XHTML 2.0: idea: not backward compatible, abandoned HTML 5, 2008 3 4

HTML5: design principles HTML5: design principles Compatibility Backward compatible Utility Render correctly: id= myname, id=myname, ID= myname Interoperability Simplify syntax, e.g., DOCTYPE definition Precise specification: well-defined behaviors Aim: browser interoperability 5 Universal access Support users with disabilities Html5 work across all devices and platforms Reduce the need for external plug-ins More markup to replace scripting Device independent (PC, iphone, Android) 6 Basic Structure of HTML5 <!DOCTYPE html> <html> <!-- This is comment --> <head> <title> </head> <body> </body> </html> Specifies html version browser renders it properly This is title, describing the content </title> This is body, main part of the page HTML tree structure Indentation <!DOCTYPE html> <html> <head> <title> My title </title> </head> <body> <h1> My header </h1> <a href= > My link </a> </body> </html> 7 8

HTML Syntax HTML: consists of a tree of HTML elements Each element begins with a start tag, ends with an end tag An element can define attributes within its start tag HTML Information is generally enclosed inside paired tags Like <tag> information </tag> Example: Paragraph tag: <p> and </p> Tells browser this is a paragraph, and the presentation is left to the browser to determine Line break: <br /> Marks a line break within phrasing content Commonly used tags Less than 50 tags Practice!! 9 10 Common Tags XHTML: Extensible HyperText Markup Language Stricter and cleaner version of HTML Syntax Rules XHTML documents must be well-formed Must have basic structure <html> <head> <title> </title> </head> <body> </body> </html> Sub elements must be in pairs and correctly nested <b> It is <i> italic </b></i> Should be rewritten as <b> It is <i> italic </i> </b> 11 12

Syntax Rules All XHTML elements must be closed, in lower case <p> </p> <br /> <hr /> <img src= /> Remember the extra space before / Syntax Rules Attribute minimization is forbidden Wrong: <input checked>, <option selected> Correct <input checked= checked /> <option selected= selected > Tag names must be in lowercase Attribute values must be quoted Wrong <table WIDTH= 100% >, <table width=100%> Should be <table width= 100% > 13 14 Example - HTML HTML 5 15 16

Browser compatibility www.caniuse.com www.findmebyip.com 17 18 div Separate semantics (meaning and structure) from presentation (formatting) Div: used to identify different parts of a document for different formatting HTML: new elements to replace typical divs HTML 5 Forms 19 20

Syntax Syntax Fieldset: group related elements in a form (draws a box around those elements) Legend: create a text label within fieldset Basic structure <form id= myform > <fieldset> <legend> Caption for the fieldset </legend> <label for= fn > First Name </label> <input id= fn name= fn type= text /> </fieldset> </form> 21 The form tag attributes Action Specifies the server-side program or script that will process the form data <form action= http://www.../formprocess.php > Method Get post id (or name) Identifies the form 22 Input Input <input type= text id= firstname placeholder= input your first name /> Placeholder: Show when the user has not yet entered any values <input type= password id= pwd /> <input type= checkbox id= browser > <input type= radio name= browser > Same name: <input value= IE /> Internet Explorer <br /> <input value= FF /> Firefox <br /> 23 <select id= browser > <option value= IE > Internet Explorer </option> <option value= FF > Firefox </option> <select> <input type= submit value= Submit /> <input type= reset value= Clear /> <input type= button value= click /> No default action, associate with a JavaScript function 24

Email & URL <input type= email /> Validate user s input Changes from browser to browser Opera: needs to have @ only Firefox: (x)@(x).(x) Mobile device: on-screen keyboard <input type= url /> Numbers Traditional way: combo box Spinner control for numbers <input id="age" name="age" type="number" min="10" max="90" step="1" value="10" /> 25 Firefox Opera 26 Slider Firefox Auto complete system <label for="ano"> Choose a number </label> <input id="ano" name="ano" type="range" min="10" max="90" step="1" value="50" onchange="yno.value=this.value" /> <output name="yno"> 50 </output> <datalist>: choose from the predefined options or type sth else in the text box Opera 27 28

Mandatory fields Regular expressions Keyword: required <input type= text required /> <input type= email required placeholder= Insert your email /> Email must be entered before the form can be submitted Regular expressions: Specify a pattern for matching strings of text E.g., phone number: 8 digits: ^\d{8}$ <input type= text name= phoneno required pattern= ^\d{8}$ /> 29 30 Date and Time <input type= date /> <input type= time /> <input type= datetime /> <input type= month /> <input type= week /> 31