What is XHTML? XHTML stands for Extensible Hypertext Markup Language

Slides:



Advertisements
Similar presentations
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
Advertisements

Dr. Alexandra I. Cristea XHTML.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
History Leading to XHTML
XHTML 16-Apr-17.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
WML/HTML and XML Multiplatform Applications. Agenda XML – History and purpose What have HTML, WML and XML got to do with each other Why useful for multiplatform.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
HTML, XHTML, CSS, & JAVAScript ~ an introduction ~
Computer Sciences Department
Working with XHTML Creating a Well-Formed Valid Document.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
CS 299 – Web Programming and Design Introduction to HTML.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
XHTML - Basics Teppo Räisänen LIIKE/OAMK Introduction XHTML = eXtensible Hypertext Markup Language Transitional ~ HTML 4.01 Goal: to replace HTML.
XHTML and Forms Review – Page 1CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: Review XHTML and Forms.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
1 HTML intro The development of HTMLThe development of HTML The transition from HTML to XHTMLThe transition from HTML to XHTML XHTML syntax, tags, and.
XHTML Instructor: Charles Moen CSCI/CINF XHTML  A stricter version of HTML  Extensible HTML  The XHTML specification is maintained by the World.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
XHTML Presented by Kelly(Geun-young) Yim. Learning Objectives  List the difference between XHTML and HTML  Create a valid, well-formed XHTML document.
3 XHTML.
Extensible HyperText Markup Language (XHTML) Laboratory of Intelligent Youn-Hee Han.
1 HTML XHTML. 2 Understand the Doctype tag Know the html tags which are now classed as depreciated Understand how Dreamweaver adds styles Add styles to.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XHTML Web and Database Management System. HTML’s History HTML was initially defined by Tim-Berners-Lee in 1990 at CERN (European Organization for Nuclear.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Lesson 4.
IT Engineering I Instructor: Rezvan Shiravi
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
1 Web Application Programming Presented by: Mehwish Shafiq.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
Extensible Markup Language (XML) Pat Morin COMP 2405.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Web Basics: HTML/CSS/JavaScript What are they?
CIS 228 The Internet 9/20/11 XHTML 1.0.
Creating a Well-Formed Valid Document
CITA 330 Section 3 XHTML.
Tutorial 9 Working with XHTML
Introduction to HTML.
Building Blocks of a Web Page HTML, HTML 5, CSS & XHTML
W3C Web standards and Recommendations
XHTML Basics.
What is XHTML?.
Chapter 4 Introduction to XHTML: Part 1
XHTML 1 by Carsomyr.
Web Programming– UFCFB Lecture 9
XHTML Basics.
XHTML
XHTML Basics.
HTML A brief introduction HTML.
XHTML Review Anita Philipp Updated Spring 2016.
Instructor: Charles Moen
XHTML Basics.
Creating a Basic Web Page
XHTML Basics.
Web Programming– UFCFB Lecture 9
XHTML 7-May-19.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Web Design & Development
Creating Web Documents
Presentation transcript:

What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML XHTML is almost identical to HTML 4.01 XHTML is a stricter and cleaner version of HTML XML (Extensible Markup Language) is a markup language designed for describing data XHTML is HTML redefined as an XML application XHTML is a “bridge” between HTML and XML

The problem with HTML HTML started out as a way of way of describing the structure of documents, with tags to indicate headers, paragraphs, and the like Because people wanted to control the appearance of documents, HTML acquired tags to control fonts, alignment, etc. The result is a markup language that does both, but isn’t very good at either

HTML vs. XML XML looks a lot like HTML, but-- HTML uses a fixed set of tags With XML you make up your own tags (and define what they mean in a separate document) HTML is designed to display data to humans XML is designed to describe data to computers Browsers are very tolerant of errors in HTML XML documents must be well-formed (syntactically correct) All browsers can display HTML All modern browsers display XML, but in various ways

From HTML to XHTML, I XHTML elements must be properly nested <b><i>bold and italic</b></i> is wrong XHTML documents must be well-formed <html> <head> ... </head> <body> ... </body> </html> Tag names must be in lowercase All XHTML elements must be closed If an HTML tag is not a container, close it like this: <br />, <hr />, <img src="smile.gif" /> Note: Some older browsers require a space before the /

From HTML to XHTML, II Attribute names must also be in lower case Example: <table width="100%"> Attribute values must be quoted Attribute minimization is forbidden Example: <frame noresize="noresize">, cannot be abbreviated to <frame noresize> The id attribute replaces the name attribute Wrong: <img src="picture.gif" name="picture1" /> Right: <img src="picture.gif" id="picture1" /> Best: <img src="picture.gif" name="picture1" id="picture1" />

SGML and DTDs SGML stands for “Standard Generalized Markup Language” HTML, XHTML, XML and many other markup languages are defined in SGML A DTD, or “Document Type Definition” describes the syntax to use for the current document There are three different DTDs for XHTML--you can pick the one you want These DTDs are public and on the web You must start your XHTML document with a reference to one of these DTDs

DOCTYPE declaration, I Every XHTML document must begin with one of the DOCTYPE declarations (DTDs): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN” "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> (Essentially the same as XHTML 1.0 Strict)

DOCTYPE declaration, II The main DTDs are as follows: 1.0 Strict Use for really clean markup, with no display information (no font, color, or size information) Use with CSS (Cascading Style Sheets) if you want to define how the document should look 1.0 Transitional Use with standard HTML and/or with CSS Allows deprecated HTML elements 1.0 Frameset Use if your document uses HTML frames 1.1 Like 1.0 Strict, but with added support for Chinese

An XHTML Example <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>A simple document</title> </head> <body> <p>A simple paragraph.</p> </body> </html>

Extension A file containing an HTML page should have the extension .html According to W3C, an XHTML page should have the extension .xhtml However... I have had trouble getting JavaScript to work on pages with this extension I recommend sticking with .html, at least for now

Tools Dave Raggett's HTML TIDY, http://tidy.sourceforge.net/, is a free UNIX tool for checking and cleaning up HTML pages The W3C HTML Validation Tool http://validator.w3.org/ is an HTML form for checking (but not fixing) HTML and XHTML documents

Vocabulary SGML: Standard Generalized Markup Language HTML: Hypertext Markup Language XHTML: eXtensible Hypertext Markup Language XML: eXtensible Markup Language DTD: Document Type Definition

The End