Introduction to HTML 5.

Slides:



Advertisements
Similar presentations
Dr. Alexandra I. Cristea XHTML.
Advertisements

HTML. The World Wide Web Protocols Addresses HTML.
XHTML Basics.
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Tim Berners-Lee authors HTML in 1991, assisted by his colleagues at CERN,
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
XHTML 16-Apr-17.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Tutorial 1: Getting Started with HTML5
Creating Web Pages with HTML
Creating a Simple Page: HTML Overview
Principles of Web Design 6 th Edition Chapter 1 – HTML5.
Using HTML to Create a Basic Web Page… By Josh Gallagan.
CS 299 – Web Programming and Design Introduction to HTML.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
1 Web Application Programming Presented by: Mehwish Shafiq.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
Module Road Map Assignment Road Map Notice we have linked the conduit directly to the presentation layer. This is normally a bad idea!
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
HTML. HTML: What is it? – HTML stands for Hyper Text Markup Language – An HTML file is a text file containing small markup tags – The markup tags tell.
Creating Your 1 st Web Page. Tags Refers to anything between on a webpage Most appear in pairs surrounding content Some appear as empty tags (no closing.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
HTML Structure & syntax
Fall 2016 CSULA Saloni Chacha
HTML CS 4640 Programming Languages for Web Applications
Web Basics: HTML/CSS/JavaScript What are they?
HTML5 Basics.
Creating a Web Page CSC 121.
Tutorial 9 Working with XHTML
Introducing XHTML: Module A: Web Design Basics
Introducing XHTML: Module A: Web Design Basics
Introduction to HTML.
HTML5 – Heading, Paragraph
XHTML Basics.
3.00cs HTML Overview 3.00cs Develop webpages.
Lecture 8. HTML. Author: Aleksey Semyonov
Introduction to XHTML.
HTML Robert McIntosh
XHTML Basics.
XHTML
XHTML Basics.
Tutorial 9 Working with XHTML
Creating a Web Page Using HTML
HTML 12/27/2018.
Tutorial Developing a Basic Web Page
Introduction to HTML5.
Introduction to HTML 5.
XHTML Basics.
Web Application Development
The Most Basic HTML Page
An Introduction to HTML Pages
XHTML Basics.
XHTML 7-May-19.
XHTML 29-May-19.
HTML CS 4640 Programming Languages for Web Applications
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Introduction to HTML 5

HTML 5 Mark-up language Specify the roles different parts of the document play Poor tool for layout (thus the need for CSS)

HTML Basics Three types of mark-up Elements Attributes Values

<h1>This is a heading</h1> Elements Comprises of A start tag Content End Tag E.g. <h1>This is a heading</h1>

<img src="mypicture.jpg" /> Attributes and Values Attributes contain information about the data specified by the attributes value. E.g. <img src="mypicture.jpg" />

Building a Simple HTML Document Any text, code - anything must be inserted between these two tags. The following is incorrect... This is my web site. Isn't this a wonderful bit of HTML.

Extending the Mark-up A typical HTML document, without any content will typically have the following elements… <html> <head> <title>Untitled Document</title> </head> <body> </body> </html> With the basic structure in place we may create headings, paragraphs etc…

Adding Content <html> <head> <title>This is my page.</title> </head> <body> <h1>Welcome to my Site</h1> The main text of the document goes here. </body> Looks like….

History and Development Tim Berners-Lee late 1980’s early 1990’s HTML based on SGML (Standard Generalized Markup Language) SGML considered too complex Problems with early HTML Tags defined as part of the language You want a new tag? – you wait for language update Browser wars

Marquee Tag Only worked in Internet Explorer! Browser companies “at war” Pages may not work on certain browsers!

World Wide Web Consortium (W3C) Founded 1994 Advises on standards for HTML 1998 HTML was abandoned in favour of new version XHTML Strict and Transitional Need to take a look at XML first

XML (eXtensible Markup Language) Meta Language (data describing data) Used to build other languages Basic rules defined from which other rules are created XML not simply about the Web but has lots of applications

Media Centre Master Use it to scan your media library Downloads images and film data

The Data May be used in Local Media Player… Or in fact any application, including web sites

Separating Styling and Content Desktop App IMDB

Tags in XML Doesn’t define a large range of tags, so we don’t have to wait for a new version of the language The data from IMDB…

<?xml version="1.0" encoding="utf-8" standalone="yes"?> The XML Declaration <?xml version="1.0" encoding="utf-8" standalone="yes"?> Encoding – how is the data stored in the document? What does 46, 41, 44, 45 look like as text? UTF-8 tells us that the text is encoded using UCS Transformation Format – dominant character set for WWW ASCII UNICODE 65 Uppercase A 66 Uppercase B 67 Uppercase C 68 Uppercase D 69 Uppercase E 70 Uppercase F 41 Uppercase A 42 Uppercase B 43 Uppercase C 44 Uppercase D 45 Uppercase E 46 Uppercase F

Five Rules of XML 1. Tag names are case sensitive This is ok...   This is ok... <LocalTitle>28 Days Later</LocalTitle> This is not... <LocalTitle>28 Days Later</Localtitle> These are two different tags <localtitle>28 Days Later</localtitle>

1. Tag names are case sensitive   This is ok... <LocalTitle>28 Days Later</LocalTitle> This is not... <LocalTitle>28 Days Later</Localtitle> These are two different tags <localtitle>28 Days Later</localtitle>

2. Every opening tag must have a closing tag This is good... <LocalTitle>28 Days Later</LocalTitle> This is bad... <LocalTitle>28 Days Later

3. A nested tag pair cannot overlap another tag This is good... <Persons> <Person> <Name>Alex Palmer</Name> <Type>Actor</Type> <Role>Activist</Role> </Person> This is bad... <Role>Activist</Person> </Role>

4. Attribute values must appear within quotes Good...   <FilmDetail Title="28 Days Later" IMDBrating="7.6" ProductionYear="2002"> Bad... <FilmDetail Title=28 Days Later IMDBrating=7.6 ProductionYear=2002>

5. Every document must have a root element

XHTML (eXtensible HyperText Markup Language) Based on XML Followed the same rules as XML XHTML - transitional, “relaxed version” XHTML – strict, “strict version”

The Doctype Take a look at this XHTML document…

HTML 5 Web developers wouldn’t play ball! Standards not widely adopted Browser support – patchy W3C faced competition from Apple, Opera & Mozilla Not multimedia friendly XHTML dumped in 2007

HTML 5 Document

Some new HTML 5 tags Generic Page Sections Multimedia Support <header>this is the header of my page</header> <nav>This is where the navigation will go</nav> <footer>This is the footer</footer> Multimedia Support <audio src="hungry.mp3" controls></audio> <video> <source src="zoetrope.mp4> </video>

In the Lab Create a simple HTML page HTML form Form Processor