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.

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

Dr. Alexandra I. Cristea XHTML.
HTML: HyperText Markup Language Hello World Welcome to the world!
 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.
History Leading to XHTML
Tim Berners-Lee authors HTML in 1991, assisted by his colleagues at CERN,
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.
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.
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
Developing a Basic Web Page with 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
Creating Web Pages with HTML
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.
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.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
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)
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
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.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu
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
WEB APPLICATION DEVELOPMENT For More visit:
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 2: Markup Language and Site Development Essentials © 2007 Prosoft Learning Corporation All.
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.
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.
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.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
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
CIS 228 The Internet 9/20/11 XHTML 1.0.
What is XHTML?.
XHTML
XHTML 7-May-19.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Presentation transcript:

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 Research) The early language was designed with science and engineering interest As of Nov 1992, its elements included: title, paragraph, hyperlinks, headings, simple lists, glossaries, address blocks: It did not have table or fill-in form elements

Netscape By Feb 1993, Marc Andreessen and Eric Bina of NCSA (National Center for Supercomputer Applications) at Univ. of Illinois at Urbana-Champaign publicly released a graphical web browser for UNIX called “Mosaic” The Windows and Macintosh versions were release in September in Sep 1993 NCSA Mosaic browser was able to play video and sound Later Andreessen and key individuals at NCSA began the company that became “Netscape Communications”

NCSA Mosaic Web Browser

War of Browsers Meanwhile, Microsoft worked on “Internet Explorer” The “browsers wars” between Netscape and Microsoft began, especially on: –Innovation is web technologies, in general –HTML definition in particular During 1993 and 1997, HTML was defined operationally by the elements that browser developers chose to implement to gain competitive advantage This led to HTML differences, and it diverted more and more from a language defined by Berners-Lee

W3C In Oct 1994, Tim Berners-Lee launched W3C (World Wide Web Consortium) to produce standard for HTML In Jan 1997, HTML version 3.2 was adopted as a standard –This was “to capture recommended practice as of early ’96” –This was even a year behind the browser manufacturers HTML 4 recommendation was released in Dec 1997 –Due to the slow-down of the “browsers wars”, WC3 finally caught up

HTML 4.01 vs XHTML A language used to describe the syntax of other languages is referred to as a metalanguage Metalanguage used to describe the syntax of programming languages, ie. Java, is called Backus-Naur Form (BNF) Metalanguage for HTML is SGML (Standard Generalized Markup Language) Metalanguage for XHTML is XML (Extensible Markup Language) XHTML 1.0 is semantically identical to HTML –Except that XHTML restricts some of HTML’s generality in a few ways

HTML Document Every HTML document contains two types of information –Markup information: which is contained in tags ( ) Start tag End tag Start tag + end tag + all documents between are called: an element of the document. The portion between tags is called the content of element. –Character information: everything outside the markup tags This is information intended to be displayed on browser: “HelloWorld.html” and “Hello World!” <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” HelloWorld.html Hello World!

Element Tree for “Hello World!” The name of the root element is “html” –Root element can occur only once in the document –Attribute specification, which consists of an attribute name (xmlns) and an attribute value (string within quotes), which in this case is Html document contains two parts: head and body Head element contains title (maybe …or.etc.) Body element contains p element and could be anything intended to be displayed in the browser’s body. html head title body p

Why XHTML? Many pages on the internet contain "bad" HTML A browser will try it best to render/interpret “BAD” HTML This will work fine in a browser (even if it does NOT follow the HTML rules) This is bad HTML Bad HTML This is a paragraph

Why XHTML? (contd) Today’s browsers are running on different devices: –Some run on computers –Some run on mobile devices such as cellphone, PDA, etc. –Some run on other small devices Those small/mobile devices may not have enough resources or power to interpret a “BAD" markup language Therefore, W3C recommended a markup language that can impose standard on writing HTML This is by combining HTML and XML and calls it “XHTML”

What is XHTML? XHTML stands for eXtensible HyperText Markup Language XHTML is almost identical to HTML 4.01 XHTML is a combination of HTML and XML XHTML is a stricter and cleaner version of HTML XHTML is HTML defined as an XML application XHTML is a W3C Recommendation

What to remember? XHTML elements must be properly nested XHTML elements must always be closed Empty elements must always be closed XHTML elements must be in lowercase XHTML documents must have one root element

What to remember? (contd) XHTML elements must be properly nested Coffee Tea Black tea Green tea Milk This is wrong Coffee Tea Black tea Green tea Milk </ul This is correct

What to remember? (contd) XHTML elements must always be closed Empty elements must always be closed This is a paragraph This is another paragraph This is a paragraph This is another paragraph A break: A horizontal rule: An image: A break: A horizontal rule: An image:

What to remember? (contd) XHTML elements must be in lowercase XHTML documents must have one root element This is a paragraph This is a paragraph... The basic document structure is:

XHTML Syntax Attribute names must be in lower case Attribute values must be quoted Attribute minimization is forbidden The XHTML DTD defines mandatory elements

More on XHTML Syntax Attribute names must be in lower case – X – √ Attribute values must be quoted – X – √

More on XHTML Syntax Attribute minimization is forbidden

List of Minimized Attributes in HTML HTMLXHTML compactcompact="compact" checkedchecked="checked" declaredeclare="declare" readonlyreadonly="readonly" disableddisabled="disabled" selectedselected="selected" deferdefer="defer" ismapismap="ismap" nohrefnohref="nohref" noshadenoshade="noshade" nowrapnowrap="nowrap" multiplemultiple="multiple" noresizenoresize="noresize"

More on XHTML Syntax (contd) The lang attribute applies to almost every XHTML element. It specifies the language of the content within an element. If lang attribute in an element is used, the xml:lang attribute must also be added: The XHTML DTD defines mandatory elements –An XHTML document must have a DOCTYPE declaration –The html, head, title, and body elements must also be presented Ciao bella!

Is Mandatory An XHTML document consists of three main parts: –the DOCTYPE declaration –the section Note: The declaration refers to a Document Type Definition (DTD). A DTD specifies the rules for the markup language, so that the browsers render the content correctly.

XHTML Example Example of XHTML document with a minimum of required tags: Title of document Note: The xmlns attribute in, specifies the xml namespace for a document, and is required in XHTML documents.

XHTML 1.0 Strict This DTD contains all HTML elements and attributes, It does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "

XHTML 1.0 Transitional This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

XHTML 1.0 Frameset This DTD is equal to XHTML 1.0 Transitional, but allows the use of frameset content <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "

XHTML 1.1 This DTD is equal to XHTML 1.0 Strict, but allows you to add modules (for example to provide ruby support for East-Asian languages). <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN“ "

Conforming with XHTML A Was Added The xmlns Attribute Was Added Lowercase Tags And Attribute Names All Attribute Values Were Quoted Empty Tags Were Properly Closed To validate a web page:

An XHTML Doc that passes the Validation Title of document This is a new paragraph.

A Screenshot on