XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

MA foundation Creating webpages using XHTML (part 1) Simon Mahony CCH
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.
3/10/11 Lecture 2. W3C - 2 The World Wide Web consortium was created in October 1994 to lead the World Wide Web to its full potential by developing common.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
CO1552 – Web Application Development An introduction to the use of Extensible Hypertext Mark-up Language - XHTML.
History Leading to XHTML
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 2 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Tutorial 9 Working with XHTML
XHTML 16-Apr-17.
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
HTML Computing Concepts HTML - An Introduction 1.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
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.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
© Ms. Masihi 1.  A web page is created using a language called, Hypertext Markup Language, better known as HTML Code.  HTML is a user friendly language.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
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.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
 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.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
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.
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.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
3 XHTML.
Extensible HyperText Markup Language (XHTML) Laboratory of Intelligent Youn-Hee Han.
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.
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Lesson 4.
XHTML TAGS I Basic Tags. North Lake College 2 by Sean Griffin Sample XHTML Code.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
WEB APPLICATION DEVELOPMENT For More visit:
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
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.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
INT222 – Internet Fundamentals
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Extensible Markup Language (XML) Pat Morin COMP 2405.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
CITA 330 Section 3 XHTML.
Introduction to HTML.
What is XHTML?.
XHTML
Introducing HTML & XHTML:
Introduction to HTML5.
XHTML 7-May-19.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Presentation transcript:

XHTML

Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is a stricter and cleaner version of HTML – XHTML is a combination of HTML and XML (EXtensible Markup Language). XHTML consists of all the elements in HTML 4.01, combined with the strict syntax of XML. – XHTML is a W3C Recommendation XHTML 1.0 became a W3C Recommendation January 26, – All browsers support XHTML.

XHTML - Why? Many pages on the internet contain "bad" HTML. The following HTML code will work just fine if you view it in a browser (even if it does NOT follow the HTML rules): This is bad HTML Bad HTML This is a paragraph XML is a markup language where everything must be marked up correctly, which results in "well-formed" documents. XML is designed to describe data, and HTML is designed to display data. Support different browser technologies Combined strengths of HTML and XML - XHTML.

Differences Between XHTML And HTML XHTML Elements Must Be Properly Nested – In HTML, some elements can be improperly nested within each other, like this: This text is bold and italic – In XHTML, all elements must be properly nested within each other, like this: This text is bold and italic – A common mistake with nested lists, is to forget that the inside list must be within and tags.

XHTML Elements Must Always Be Closed – Non-empty elements must have a closing tag. This is wrong: This is a paragraph This is another paragraph This is correct: This is a paragraph This is another paragraph Empty Elements Must Also Be Closed – Empty elements must also be closed. This is wrong: A break: A horizontal rule: An image: This is correct: A break: A horizontal rule: An image:

XHTML Elements Must Be In Lower Case – Tag names and attributes must be in lower case. This is wrong: This is a paragraph This is correct: This is a paragraph XHTML Documents Must Have One Root Element – All XHTML elements must be nested within the root element. – Child elements must be in pairs and correctly nested within their parent element. The basic document structure is:......

XHTML Syntax Attribute Names Must Be In Lower Case This is wrong: This is correct: Attribute Values Must Be Quoted This is wrong: This is correct:

Attribute Minimization Is Forbidden This is wrong: This is correct: Here is a list of the minimized attributes in HTML and how they should be written in XHTML:

The Lang Attribute – The lang attribute applies to almost every XHTML element. It specifies the language of the content within an element. – If you use the lang attribute in an element, you must also add the xml:lang attribute, like this: Ciao bella! Mandatory XHTML Elements – All XHTML documents must have a DOCTYPE declaration. The html, head, title, and body elements must be present. – This is an XHTML document with a minimum of required tags: Title goes here

Document Type Definition A DTD is a "Document Type Definition" which specifies the syntax (grammatical structure) of a web page in SGML, the Standard Generalised Markup Language - of which HTML is an application. An HTML DTD describes in precise, computer-readable language, the allowed syntax and grammar of HTML markup. A DTD, or Document Type Definition file is used by SGML applications, e.g. HTML, to specify rules that apply to the markup of documents of a particular type, including a set of element and entity declarations. There are various HTML document types in use on the Web, arising from various levels and versions. Each DTD may be recognized by a unique label called a formal public identifier or FPI. When an HTML document is created, the DTD to which it conforms is declared in a document type declaration at the top of the document.

There are three XHTML DTDs: – STRICT – TRANSITIONAL – FRAMESET HTML 4.0 Strict Use this when you want really clean markup, free of presentational clutter. Use this together with Cascading Style Sheets. HTML 4.0 Transitional Use this when you need to take advantage of HTML's presentational features because many of your readers don't have the latest browsers that understand Cascading Style Sheets. HTML 4.0 Frameset Use this when you want to use HTML Frames to partition the browser window into two or more frames.