XHTML Presented by Kelly(Geun-young) Yim. Learning Objectives  List the difference between XHTML and HTML  Create a valid, well-formed XHTML document.

Slides:



Advertisements
Similar presentations
EXtensible HyperText Markup Language Miruna Bădescu Finsiel Romania Copenhagen, 25 May 2004.
Advertisements

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.
Dr. Alexandra I. Cristea XHTML.
Learning HTML Internet and Web Application Development SWE 444 Dr. Ahmed Youssef.
XHTML Basics. What is XHTML? XHTML is newer than the old HTML XHTML has stricter rules and does not allow some elements formerly used in HTML One benefit.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
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.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
History Leading to XHTML
XHTML 16-Apr-17.
XHTML. XHTML is one of the many XML-based languages that have been defined XHTML is, essentially, a “cleaned-up” version of HTML 4, reformulated using.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
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.
the Concept Attainment Model (teaching thinking skills across the curriculum) As demonstrated by: Wendy Lewis, JoAnn Clark, & Jenny Bremen XHTML coding:
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
1 HTML’s Transition to XHTML. 2 XHTML is the next evolution of HTML Extensible HTML eXtensible based on XML (extensible markup language) XML like HTML.
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.
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
Computer Sciences Department
HTML & XHTML Introduction. First HTML 1992 Marked-up text to represent a hypertext document for transmission over the network The hypertext mark-up language.
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.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
 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.
XHTML - Basics Teppo Räisänen LIIKE/OAMK Introduction XHTML = eXtensible Hypertext Markup Language Transitional ~ HTML 4.01 Goal: to replace HTML.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
XHTML Presentation by Kevin See June 16, XML in HTML Meeting Report  May 11, 1998  html
3 XHTML.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
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.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
WEB APPLICATION DEVELOPMENT For More visit:
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.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
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.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
CIS 228 The Internet 9/20/11 XHTML 1.0.
Creating a Well-Formed Valid Document
CITA 330 Section 3 XHTML.
Introduction to HTML.
HTML.
Coding, Testing and Valdating a Web Page
3.00cs HTML Overview 3.00cs Develop webpages.
What is XHTML?.
Chapter 4 Introduction to XHTML: Part 1
XHTML
Introducing HTML & XHTML:
HTML A brief introduction HTML.
XHTML Review Anita Philipp Updated Spring 2016.
Instructor: Charles Moen
XHTML 7-May-19.
HTML5 - 2 Forms, Frames, Graphics.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
INTRODUCTION TO WEB DEVELOPMENT
Presentation transcript:

XHTML Presented by Kelly(Geun-young) Yim

Learning Objectives  List the difference between XHTML and HTML  Create a valid, well-formed XHTML document  Convert an existing HTML document to XHTML  Decide when XHTML is more appropriate than HTML

What is XHTML?  XHTML stands for eXtensible HyperText Markup Language  Two major puposes  XHTML is a stricter standard than HTML  XHTML allows for modularisation  Overall, XHTML is almost the same as HTML  However, XHTML code must be well-formed.

Why XHTML?  Most web pages were designed in HTML  However, HTML allows all sort of mistakes and bad formatting in its code.  XHTML is stricter and easier to parse

 An XHTML document must contain a DOCTYPE declaration and four elements   XHTML Also, the root html tag of an XHTML document must include an xmlns declaration for the XHTML namespace.

Preferred DOCTYPE  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " 1-strict.dtd">

 XML Prolog  Language XHTML Has to be the same

XHTML vs. HTML  Incorrect This text is probably bold and underlined, but inside incorrectly nested tags. This text is probably bold and underlined, but inside incorrectly nested tags.  Documents must be well-formed Needs to be switched

XHTML vs. HTML  Incorrect Here is a list: Here is a list:<ul> Item 1 Item 1 Item 2 Item 2 Item 3 Item 3  Elements must be closed

XHTML vs. HTML  Incorrect Welcome to my web page! Welcome to my web page!  What if there are no closing tags in HTML / / / Make sure to put a space between

Common empty tags in HTML  area  base  basefont  br  hr  img  input  link  meta  param

XHTML vs. HTML This is an example of bad case. This is an example of bad case.  Tags must be lowercase h1  Attribute names must be lowercase Important Notice class

XHTML vs. HTML Tables are fun! Tables are fun! </table>  Attribute values must be quoted “ ”

XHTML vs. HTML <form> </form>  Attributes cannot be minimized =“checked” …/> =“disabled” …/>

A complete list of minimized attributes  checked  compact  declare  defer  disabled  ismap  nohref  noresize  noshade  nowrap  readonly  selected  multiple

XHTML vs. HTML <img src="banner.gif" name="mybanner" /> </a>  The name attribute is replaced with the id attribute id=“anchor”> id=“mybanner” />

XHTML vs. HTML Home & Garden Home & Garden  Ampersands are not supported amp;

XHTML vs. HTML  Image alt attributes are mandatory alt="title"

XHTML vs. HTML  Scripts and CSS must be escaped <!– document.write ('Hello World!'); //--> <!--.SpecialClass { color: #000000; } --> language="javascript" /*<![CDATA[*/ /*]]>*/ createElementNS type=“text/css” /*<![CDATA[*/ /*]]>*/

XHTML vs. HTML  Some elements may not be nested Element Cannot contain… aa pre big, img, object, small, sub, sup button button, fieldset, form, iframe, input, isindex, label, select, textarea labellabel formform

When to convert  When you want pages to be easily viewed over a nontraditional Internet-capable device, such as a PDA or Web-enabled telephone.  When you plan to work with XML in the future  When it is important your site to be current with the most recent W3C standards.  When you will need to convert your documents to another format.

Exercise  Change this HTML into an XHTML document conforming to the W3C’s strict standard. Validate your page using the validator available at

Convert html to XHTML XHTML page It is important your site to be current with the most recent W3C standards. Welcome to my page. I hope that you enjoy your stay. XHTML is similar to HTML Validator