Dr. Alexandra I. Cristea XHTML.

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

Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
EXtensible HyperText Markup Language Miruna Bădescu Finsiel Romania Copenhagen, 25 May 2004.
1 © Netskills Quality Internet Training, University of Newcastle Structure, Presentation and Navigation © Netskills, Quality.
MA foundation Creating webpages using XHTML (part 1) Simon Mahony CCH
10. Juni 1998reto ambühler ( WELCOME TO THE GATHERING PLACE.
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
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.
Web Development & Design Foundations with XHTML
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
Dr. Alexandra I. Cristea HTML Dr. Alexandra I. Cristea
XML Craig Stewart Dr. Alexandra I. Cristea
HTML: HyperText Markup Language Hello World Welcome to the world!
Website Design.
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.
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
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.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
CO1552 – Web Application Development An introduction to the use of Extensible Hypertext Mark-up Language - XHTML.
History Leading to 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.
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.
HTML 4 - Introduction HTML stands for Hyper Text Markup Language. It is the standard format for documents on the World Wide Web. Just as Microsoft Word.
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.
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
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.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
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.
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 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.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
Lesson 4.
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:
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
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?.
INP150: Basic HTML Instructor: Paul J. Millis
XHTML
XHTML 7-May-19.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Presentation transcript:

Dr. Alexandra I. Cristea XHTML

2 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 HTML defined as an XML application XHTML is a W3C Recommendation XHTML 1.0 became a W3C Recommendation January 26, All new browsers have support for XHTML.

3 XHTML is a combination of HTML and XML (EXtensible Markup Language). XHTML consists of all the elements in HTML 4.01 combined with the syntax of XML.

4 Why XHTML? We have reached a point where many pages on the WWW contain "bad" HTML. The following HTML code will work fine if you view it in a browser, even if it does not follow the HTML rules: This is bad HTML Bad HTML

5 XML is a markup language where everything has to be marked up correctly, which results in "well-formed" documents. XML was designed to describe data and HTML was designed to display data. Today's market consists of different browser technologies, some browsers run Internet on computers, and some browsers run Internet on mobile phones or other small devices. The last-mentioned do not have the resources or power to interpret a "bad" markup language. Therefore - by combining HTML and XML, and their strengths, we got a markup language that is useful now and in the future - XHTML.

6 How To Get Ready For XHTML XHTML is not very different from the HTML 4.01 standard. So, bringing your code up to the 4.01 standard is a good start. In addition, you should start NOW to write your HTML code in lowercase letters, and NEVER skip ending tags (like ).

7 The Most Important Differences XHTML elements must be properly nested XHTML elements must always be closed XHTML elements must be in lowercase XHTML documents must have one root element

8 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 Note: A common mistake with nested lists, is to forget that the inside list must be within and tags.

9 Wrong: Coffee Tea Black tea Green tea Milk

10 Correct: Coffee Tea Black tea Green tea Milk

11 XHTML Elements Must Always Be Closed Non-empty elements must have an end tag. This is wrong: This is a paragraph This is another paragraph This is correct: This is a paragraph This is another paragraph

12 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:

13 XHTML Elements Must Be In Lower Case This is wrong: This is a paragraph This is correct: This is a paragraph

14 XHTML Documents Must Have One Root Element All XHTML elements must be nested within the root element. All other elements can have sub (children) elements. Sub elements must be in pairs and correctly nested within their parent element. The basic document structure is:...

15 More XHTML Syntax Rules Attribute names must be in lower case Attribute values must be quoted Attribute minimization is forbidden The id attribute replaces the name attribute The XHTML DTD defines mandatory elements

16 Attribute Names Must Be In Lower Case This is wrong: This is correct:

17 Attribute Values Must Be Quoted This is wrong: This is correct:

18 Attribute Minimization Is Forbidden This is wrong: This is correct:

19 The id Attribute Replaces The name Attribute This is wrong: This is correct: Note: To interoperate with older browsers for a while, you should use both name and id, with identical attribute values, like this: IMPORTANT Compatibility Note: To make your XHTML compatible with today's browsers, you should add an extra space before the "/" symbol.

20 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 add the xml:lang attribute, like this: Heia Norge!

21 Mandatory XHTML Elements All XHTML documents must have a DOCTYPE declaration. The html, head and body elements must be present, and the title must be present inside the head element. This is a minimum XHTML document template: Title goes here Note: The DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element, and it should not have a closing tag.

22 A simple (minimal) XHTML document simple document a simple paragraph

23 Document Type Definitions (DTD) A DTD specifies the syntax of a web page in SGML DTDs are used by SGML applications, such as HTML, to specify rules for documents of a particular type, including a set of elements and entity declarations An XHTML DTD describes in precise, computer- readable language, the allowed syntax of XHTML markup There are three XHTML DTDs: STRICT TRANSITIONAL FRAMESET

24 XHTML 1.0 Strict Use the strict DOCTYPE when you want really clean markup, free of presentational clutter. Use together with CSS.

25 XHTML 1.0 Transitional Use the transitional DOCTYPE when you want to still use HTML's presentational features.

26 XHTML 1.0 Frameset Use the frameset DOCTYPE when you want to use HTML Frames to split the web page into two or more frames.

27 Validate your XHTML at: Tidy your code with tidy:

28 XHTML Modularization For some purposes XHTML is too large and complex, and for other purposes it's too simple. By splitting XHTML into modules, the W3C (World Wide web Consortium) has created small and well-defined sets of XHTML elements that can be used separately for small devices, or combined with other XML standards in more complex applications. With modular XHTML, designers can: Choose the elements to be supported by a device Simplify XHTML for small devices Extend XHTML for complex applications by adding new XML functionality (like MathML, SVG, Voice and Multimedia) Define XHTML profiles like XHTML Basic (a subset of XHTML for mobile devices)

29 Any Questions?