Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

Similar documents
Introduction to HTML5

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

QUICK REFERENCE GUIDE

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

Introduction to Web Development

Announcements. Paper due this Wednesday

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

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

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

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

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

Module 2 (III): XHTML

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

HyperText Markup Language (HTML)

HTML: Parsing Library

CPET 499/ITC 250 Web Systems. Topics

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

HTML: Parsing Library

Bridges To Computing

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

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

CS144 Notes: Web Standards

XHTML & CSS CASCADING STYLE SHEETS

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

HTML. HTML Evolution

Duke Library Website Preliminary Accessibility Assessment

Web Publishing Basics I

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

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

Web Development and HTML. Shan-Hung Wu CS, NTHU

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

Programmazione Web a.a. 2017/2018 HTML5

HTML. HTML is now very well standardized, but sites are still not getting it right. HTML tags adaptation

Web development using PHP & MySQL with HTML5, CSS, JavaScript

HTML Overview formerly a Quick Review

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

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

INTRODUCTION TO HTML5! HTML5 Page Structure!

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

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

HTML Overview. With an emphasis on XHTML

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

HTML and CSS COURSE SYLLABUS

HTML & CSS November 19, 2014

INTRODUCTION TO WEB USING HTML What is HTML?

Introduction to Web Technologies

Certified HTML5 Developer VS-1029

HTML CS 4640 Programming Languages for Web Applications

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

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

Digital Asset Management 2. Introduction to Digital Media Format

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Markup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

Session 23 XML. XML Reading and Reference. Reading. Reference: Session 23 XML. Robert Kelly, 2018

GRAPHIC WEB DESIGNER PROGRAM

Static Webpage Development

How the Internet Works

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

HTML: The Basics & Block Elements

Chapter 10: Understanding the Standards

Web Programming Week 2 Semester Byron Fisher 2018

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

HTML. Based mostly on

introduction to XHTML

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

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

CS WEB TECHNOLOGY

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

XML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena

is Introduction to HTML

Document Object Model. Overview

Introduction to HTML EVALUATION COPY. (HTM101 version 3.1.5) Copyright Information. Copyright 2013 Webucator. All rights reserved.

HTML Hyper Text Markup Language

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

c122jan2714.notebook January 27, 2014

The Nature of the Web

CMPT 165 Unit 2 Markup Part 2

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

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

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Web Accessibility Checklist

HTML: Introduction CISC 282. September 11, What is HTML?

Inline Elements Karl Kasischke WCC INP 150 Winter

Web Design and Application Development

Advanced Web Programming C2. Basic Web Technologies

Web Design and Development ACS Chapter 3. Document Setup

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

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

Background of HTML and the Internet

Introduction to WEB PROGRAMMING

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

Mobile MOUSe WEB SITE DESIGN ONLINE COURSE OUTLINE


ROLE OF WEB BROWSING LAYOUT ENGINE EVALUATION IN DEVELOPMENT

From administrivia to what really matters

W3C XML XML Overview

A Web-based XML Schema Visualizer José Paulo Leal & Ricardo Queirós CRACS INESCPORTO LA

Lab 4 CSS CISC1600, Spring 2012

Transcription:

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

HTML An acronym for Hypertext Markup Language Basic language of WWW documents HTML documents consist of text, including tags that describe document structure Relationship with browsers: backward/forward compatibility

HTML Example <!DOCTYPE html> <html lang = "en"> <head> <title>html TEST!</title> </head> <body> <p>hello HTML!</p> <p>this is HTML Syntax!</p> </body> </html>

XML extensible Markup Language XML defines a generic syntax used to mark up data with simple, human-readable tags XML is designed to be customized Like HTML, XML was developed from the SGML markup language Differences with HTML A starting tag should be paired with an end tag Tag names are not predefined XML Schema Definition (XSD)

XML Example <?xml version="1.0" encoding="utf-8"?> <customers> <customer id="1"> <name>woodworks</name> <city>baltimore</city> </customer> <projects> <project id="1"> <name>medusa</name> </project> </projects> <!--!!! SNIP!!! --> </customers>

XHTML extensible HyperText Markup Language Version of HTML that is designed to adhere to XML rules XHTML documents can be validated using XSD Stricter syntax than traditional HTML Adherence to XML rules allows greater extensibility Parsable as XML, so it can be manipulated in sophisticated ways by clients; you'll learn about this in more advanced CS classes

XHTML Example <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transition.dtd"> <html> <head> </html> </head> <body> <title>hello XHTML!</title> <p>hello XHTML!</p> <p>this is XML Syntax!</p> </body>

XHTML Some problems remain Need for an increasing amount of multimedia Plug-ins

SGML, XML, HTML, and XHTML

HTML5 Not originate from XHTML, but from HTML 4.01

HTML5 This is the latest form of HTML, and is the standard form for this class Create rich, interactive websites Support audio, video and animations

Semantic markup Tags provide meaning not presentation e.g. <b>, <i>: bold and italic? Cascading Style Sheet (CSS)

HTML elements An element is composed of a beginning tag, an ending tag, and the content between the tags Example: <div> The quick brown <b>fox</b> jumps over the lazy dog </div> Create a section in HTML doc

Some HTML elements HTML5 has more than 100 defined elements Some of them <a> <embed> <b> <form> <body> <h1> <br> <h2> <button> <head> <div> <html> <em> <i> <iframe> <img> <ol> <option> <scripts> <table> <video>

Attributes An attribute is a name="value" or name='value' pair Boolean attributes can have only name with no value Example <div id="main" class='maincontent'><div>

Boolean attributes Presence of the attribute indicates an option checked selected disabled readonly Quick check What is the best way to disable <button> element when page is loaded? Examples <input type="checkbox" name="fruit" value="apple" checked /> <input type="checkbox" name="fruit" value="apple" checked='' /> <input type="checkbox" name="fruit" value="apple" checked='checked' />

HTM5 global attributes accessky class contenteditable contextmenu dir draggable dropzone hidden id lang spellcheck style tabindex title

Self-closing tags A self-closing tag is a beginning tag and an ending tag in one <br /> Using self-closing tags only for tags cannot have content <br /> vs. <div></div> A special tag: <script> <script type="text/javascript" ref="/scripts/mycode.js"></script>

Void elements Some elements cannot have content E.g. <br> Void elements in HTML5 <area> <input> <base> <link> <br> <keygen> <col> <meta> <command> <param> <hr> <source> <img> <wbr>

Expando attributes Expando attributes are attributes that you define May conflict with W3C-defined attribute name To solve this problem, assign a name prefixed with data Quick check You have a webpage with a <span> element that contains the customer's name. Along with the name, you want to include the customer number on the <span> element, but you don't want to display the customer number. How can you write the <span> element for a customer called Contoso Ltd with customer number 123?

Comments Add comments to HTML source <!--comment here --> Comments are not displayed on the rendered browser page but are sent to the browser

Creating an HTML document <!DOCTYPE html> browser in no-quirks mode <html> <head> <meta> <title> <body> <title> Displays in the browsers toolbar <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>title here</title> </head> <body> content here </body> </html> Provides the default name for the page when added to favorites Displays the title when the page is displayed in the search results

Special characters Display Entity Name Entity Number Description & & & Ampersand > > > Greater-than sign < < < Less-than sign " " " Double quotation Copyright Registered trademark Trademark Nobreaking space