Extensible HyperText Markup Language (XHTML) Laboratory of Intelligent Youn-Hee Han.

Slides:



Advertisements
Similar presentations
MA foundation Creating webpages using XHTML (part 1) Simon Mahony CCH
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.
Web Development & Design Foundations with XHTML
Dr. Alexandra I. Cristea XHTML.
HTML: HyperText Markup Language Hello World Welcome to the world!
Learning HTML Internet and Web Application Development SWE 444 Dr. Ahmed Youssef.
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!)
XHTML Basics.
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.
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.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
History Leading to XHTML
XHTML 16-Apr-17.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
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.
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.
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
Creating a Simple Page: HTML Overview
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.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
 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.
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)
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 Web and Database Management System. HTML’s History HTML was initially defined by Tim-Berners-Lee in 1990 at CERN (European Organization for Nuclear.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
Lesson 4.
ECA 228 Internet/Intranet Design I Intro to Markup.
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 © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
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
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
Creating a Well-Formed Valid Document
Introduction to HTML.
HTML: HyperText Markup Language
What is XHTML?.
XHTML
XHTML 7-May-19.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Presentation transcript:

Extensible HyperText Markup Language (XHTML) Laboratory of Intelligent Youn-Hee Han

Introduction To XHTML History of HTML HTML 2.0 (1996)  Internet Engineering Task Force (IETF) HTML Working Group HTML 3.2 (Jan. 1997, W3C Recommendation)  tag is added, which have introduced unnecessary complexity to the important task of separating HTML content (text) from its presentation (style). HTML 4.0 (first - Dec. 1997, second – April 1998, W3C Recommendation)  the introduction of style sheets (CSS) HTML 4.01 (Dec. 1999, W3C Recommendation)  W3C will not continue to develop HTML. Future W3C work will be focusing on XHTML XHTML 1.0 (Jan. 2000, W3C Recommendation)  the latest version of HTML  XHTML 1.0 reformulates HTML 4.01 in XML Web Programming2

Introduction To XHTML 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 compatible with HTML  XHTML is a reformulation of HTML 4.01 in XML XHTML is a stricter and cleaner version of HTML XHTML is HTML defined as an XML application XHTML is a W3C Recommendation  W3C defines XHTML as the latest version of HTML XHTML consists of all the elements in HTML 4.01 combined with the syntax of XML. Web Programming3

XHTML – why? Why XHTML? We have reached a point where many pages on the WWW contain "bad" HTML Today's market consists of different browser technologies  some browsers run Internet on computers, and some browsers run Internet on mobile phones and hand helds.  All-types of browser do not have the resources or power to interpret a "bad" markup language.  참고 : XHTML gives you the opportunity to write "well-formed" documents now, that work in all browsers!!! Web Programming4 This is bad HTML Bad HTML

XHTML – why? Why XHTML? There are a lot of software tools for XML (XHTML) We can add a new markup element in XHTML documents  XHTML is extensible! Web Programming5 XHTML 의 필요를 느끼게 된 가장 큰 이유는 웹 콘텐츠가 전통적인 ' 컴퓨터 ' 를 벗어나 여러 가지 장치 ( 이동통신기기, 장애인을 위한 점자 & 음성브라우저 등...) 에서 이용되면서, 부정확한 HTML 을 해석하는데 많은 어려움이 생겨났기 때문입니다. 즉, 하나의 웹문서가 여러 가지 장치, 여러 가지 브라우저 에서 모두 그 내용 ( 콘텐츠 ) 를 제대로 이해하고 보여줄 수 있도록 할 필요성이 있는 시대가 이미 시작되었고, 그렇게 할 수 있도록 만들어주는 것이 XHTML 의 존재이유입니다. 인용 :

XHTML vs. HTML How To Get Ready For XHTML You can prepare yourself for XHTML by starting to write “strict HTML” XHTML is not very different from the HTML 4.01 standard In addition, you should start NOW to write your HTML code in lowercase letters, and NEVER skip ending tags The Most Important Differences (from HTML 4.01) XHTML elements must be properly nested XHTML elements must be always closed XHTML elements must be in lowercase XHTML documents must have one root element  … Web Programming6

XHTML vs. HTML XHTML Elements must be properly nested In HTML, this is valid  This text is bold and italic In XHTML, all elements must be properly nested within each other  This text is bold and italic Common mistakes Web Programming7 Coffee Tea Black tea Green tea Milk Coffee Tea Black tea Green tea Milk

XHTML vs. HTML XHTML Elements must always be closed Non-empty elements must have an end tag.  This is a paragraph  This is another paragraph Empty Elements Must Also Be Closed Web Programming8 A break: A horizontal rule: An image: A break: A horizontal rule: An image:

XHTML Syntax 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  All XHTML documents must have a DOCTYPE declaration. The html, head, title and body elements must be present.  This is a minimum XHTML document template  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. Web Programming9 Title goes here …

XHTML Syntax Wrong vs. Correct To make your XHTML compatible with today's browsers, you should add an extra space before the "/" symbol. To interoperate with older browsers for a while, you should use both name and id, with identical attribute values, like this  Web Programming10 wrongcorrect

XHTML DTD Is Mandatory An XHTML document consists of three main parts:  the DOCTYPE  the Head  the Body Note!!!  is first, element is mandatory!!! The basic document structure is: Web Programming

XHTML DTD The 3 Document Type Definitions DTD specifies the syntax of a web DTD specifies rules that apply to the markup of documents of a particular type, including a set of element and entity declarations. An XHTML DTD describes in precise, computer-readable language, the allowed syntax and grammar of XHTML markup. There are currently 3 XHTML document types:  STRICT  TRANSITIONAL  FRAMESET Web Programming12

XHTML DTD XHTML 1.0 Strict Use this when you want really clean markup, free of presentational clutter. Use this together with Cascading Style Sheets. XHTML 1.0 Transitional (Recommendation) Use this when you need to take advantage of HTML's presentational features and when you want to support browsers that don't understand Cascading Style Sheets Web Programming13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

XHTML DTD XHTML 1.0 Frameset Use this when you want to use HTML Frames to partition the browser window into two or more frames. Web Programming14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "

Block element vs. Inline element All HTML elements are naturally displayed in one of the following ways: Block takes up the full width available, with a new line before and after (display:block;) Inline takes up only as much width as it needs, and does not force new lines (display:inline;) Not displayed Some tags, like and are not visible (display:none;) In XHTML, inline element cannot be used without a block element!!! element has only block elements!!! Web Programming15

Block Element vs. Inline Element Block Elements  Your general-purpose box...  All headings  Paragraph,,  Lists (unordered, ordered and definition),,  List items, definition list terms, and definition list definitions  Tables  Indicates a block of preformatted code  An input form Web Programming16

Block Element vs. Inline Element Block Elements  Like an indented paragraph, meant for quoting passages of text Note: does not allow to have inline element without other block elements Web Programming17 Invalid!!! Valid!!!

Block Element vs. Inline Element Inline Elements  Your all-purpose inline element  Anchor, used for links (and also to mark specific targets on a page for direct linking)  Used to make your content strong, displayed as bold in most browsers, replaces the narrower  (bold) tag  Adds emphasis, but less strong than. Usually displayed as italic text, and replaces the old  (italic) tag Web Programming18

Block Element vs. Inline Element Inline Elements  Image  alt attribute should be specified.  The line-break is an odd case, as it's an inline element that forces a new line. However, as the text carries on the next line, it's not a block-level element.  Form input fields like and  Indicates an abbr.  Working much like the abbreviation Web Programming19

Type of Content & Character Set XHTML requires the type of content in element indicates the type of data sent to the browser. It is used by browsers to know what to do with the data that they receive, and what character set is used. Usage  Example Web Programming20

Some other rules for XHTML element is mandatory Other block element is not nested within a block without element xmlns=" is mandatory in element XHTML common rule specified by NAVER Web Programming21 any any Invalid!!! Valid!!!

XHTML Validation XHTML Example XHTML Validation Site Official Site  Web Programming22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " XHTML 연습 Hello, World!