Instructor: Charles Moen

Slides:



Advertisements
Similar presentations
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.
Advertisements

Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
XHTML 16-Apr-17.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
Structure Content Presentation Semantics.
XHTML for Content Structure Chapter 3. Overview and Objectives Discuss briefly the history of, and relationship between, HTML and XHTML Stress the importance.
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.
 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 The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
XHTML and Forms Review – Page 1CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: Review XHTML and Forms.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
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)
XHTML Presented by Kelly(Geun-young) Yim. Learning Objectives  List the difference between XHTML and HTML  Create a valid, well-formed XHTML document.
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.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Lesson 4.
IT Engineering I Instructor: Rezvan Shiravi
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
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.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
CSE 102 Introduction to Web Design and Programming
HTML Basics.
CIS 228 The Internet 9/20/11 XHTML 1.0.
Creating a Well-Formed Valid Document
Web Development & Design Foundations with HTML5 8th Edition
Tutorial 9 Working with XHTML
Internet Technology and Website Design
Introduction to HTML.
Building Blocks of a Web Page HTML, HTML 5, CSS & XHTML
Coding, Testing and Valdating a Web Page
W3C Web standards and Recommendations
XHTML Basics.
What is XHTML?.
Web Development & Design Foundations with HTML5 8th Edition
XHTML for Content Structure
Chapter 4 Introduction to XHTML: Part 1
Chapter 1: Introduction to XHTML (part 1)
Web Programming– UFCFB Lecture 9
XHTML Basics.
XHTML
XHTML Basics.
HTML A brief introduction HTML.
XHTML Review Anita Philipp Updated Spring 2016.
Introduction There are several good reasons for taking CS142: Web Applications: You will learn a variety of interesting concepts. It may inspire you to.
3.02D HTML Overview 3.02 Develop webpages.
CS 142 Lecture Notes: Rails Controllers and Views
Note that iframes are available in HTML5.
XHTML Basics.
Creating a Basic Web Page
XHTML Basics.
Web Programming– UFCFB Lecture 9
XHTML 7-May-19.
3.02D HTML Overview 3.02 Develop webpages.
Lesson 2: HTML5 Coding.
XHTML Basics.
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Web Design & Development
Creating Web Documents
Presentation transcript:

Instructor: Charles Moen CSCI/CINF 4230 XHTML Quick Start Instructor: Charles Moen

XHTML A stricter version of HTML HTML 4.01 with stricter syntax rules XHTML Quick Start (W3Schools, Schultz)‏ XHTML A stricter version of HTML HTML 4.01 with stricter syntax rules A server-side technology

XHTML Quick Start (W3Schools, Schultz)‏ XHTML Syntax Rules All tag names and attribute names must be lower case Elements must always be closed Elements must be properly nested All attribute values must be surrounded with quotes All attributes must have a value The DOCTYPE is required Some elements are mandatory Some elements are deprecated

End tags always have a slash XHTML Quick Start (W3Schools, Schultz)‏ Closing Elements Elements are defined by start tags and end tags that turn on and turn off a specification. End tags always have a slash An HTML element: <h1>This is a level 1 head</h1> Tag name A start tag should be followed by an end tag Start tag End tag

Closing Elements Some elements do not require two tags XHTML Quick Start (W3Schools, Schultz)‏ Closing Elements Some elements do not require two tags <br /> <hr /> Backslash is always required. A space before the backslash is not required, but can be included for compatibility with older browsers.

Nesting Elements HTML elements can be nested‏ XHTML Quick Start (W3Schools, Schultz)‏ Nesting Elements HTML elements can be nested‏ The nested element must be closed before the enclosing element is closed An example of an em element correctly nested within an h1 element: <h1>This is a <em>level 1 head</em></h1> The em tags are used to emphasize part of the text COMMON ERROR Here is an example of incorrect nesting: <h1>This is a <em>level 1 head</h1></em> These end tags are misplaced!

Attribute Values All attribute values must be surrounded with quotes XHTML Quick Start (W3Schools, Schultz)‏ Attribute Values All attribute values must be surrounded with quotes <img src="images/UHCLicon.gif" alt="UHCL" height="85" width="65"/> Attribute Attribute name Assignment operator Value within quotation marks All attributes must have a value Attribute minimization was allowed with certain HTML attributes, such as “selected,” “checked,” and “disabled.” In XHTML, minimization is not allowed. <select name="cheese"> <option selected="selected">Cheddar</option> <option>Swiss</option> <option>Mozzarella</option> </select>

XHTML Quick Start (W3Schools, Schultz, W3C)‏ DOCTYPE For your homework, use the “strict” XHTML 1.0 DOCTYPE, unless your page uses frames (see below) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> For your homework pages that use frames, use the “frameset” XHTML 1.0 DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Mandatory Elements XHTML Quick Start (W3C)‏ For example, the “html,” “head,” “title,” and “body” elements are all required. For your homework, you can use the following template that I copied from the W3C Web site <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>An XHTML 1.0 Strict standard template</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> </head> <body> <p>… Your HTML content here …</p> </body> </html>

XHTML Quick Start (W3Schools, Schultz)‏ Deprecated Elements All elements or attributes that are used for changing the presentation or appearance should not be used CSS should be used for defining the presentation, while XHTML should be used only for defining structure Examples of tags that you should not use: center b font strike u

References Ding, Wei, “XHTML” UHCL lecture slides, 2008. Schultz, David and Craig Cook, Beginning HTML with CSS and XHTML: Modern Guide and Reference. Apress, 2007. W3C. (2007). “Recommended list of DTDs”, [Online]. Available: http://www.w3.org/QA/2002/04/valid-dtd-list.html W3Schools Online Web Tutorials. "Learn XHTML". [Online]. Available: http://www.w3schools.com/xhtml/default.asp