XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML: HyperText Markup Language Hello World Welcome to the world!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
XHTML 16-Apr-17.
HTML and XHTML Controlling the Display Of Web Content.
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.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
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
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
Computer Sciences Department
CS105 Introduction to Computer Concepts HTML
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CS 299 – Web Programming and Design Introduction to HTML.
ITCS373: Internet Technology HTML
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
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.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Introduction to XHTML 1 Chapter 4 Introduction to XHTML: Part 1 Reference From: Internet & World Wide Web: How to Program Deitel, Deitel & Goldburg.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
HTML for web designing short course. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Introduction to HTML.
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Chapter 4 - Introduction to XHTML: Part 1
COMPUTING FUNDAMENTALS
Web Design and Development
Introduction to HTML- Basics
Presentation transcript:

XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu

XHTML1-2 XHTML  What is a Markup Language?  Why Extensible HTML?  XHTML vs HTML  XHTML Rules  Basic XHTML Components  Headers  Links  Special Characters & Line Break  Images  Lists  Tables  Forms  Framesets

XHTML1-3 XHTML Standard  Standard (recommendation) developed by  World Wide Web Consortium   Currently version 1.1  Version 2 under review  Vendors sometimes vary from standard

XHTML1-4 What is a Markup Language  A language that has codes for indicating layout and styling (such as boldface, italics, paragraphs, placement of graphics, etc.) within a text file  Best known markup language – HTML What is the HyperText? –A database system (1960) –Objects can be creatively “linked” to each other Simple HTML example  Other markup languages Tex (Latex) (example) SGML (Standard General ML) XML (Extensible Markup Language)

XHTML1-5 Why Extensible HTML?  HTML is the ancestor of XHTML  HTML 1.0, 2.0, 3.0, 3.2, 4.0, 4.01 XHTML 1.0 is the reformulation of HTML 4.01 (2000)  HTML vs XHTML  HTML: lax syntax rules, much easier to write  Huge number of HTML resources available  Why?  Lack consistency  Hard to check HTML documents’ syntactic correctness.

XHTML1-6 An XHTML example file   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"  "   Our first XHTML document   Greetings from your Webmaster!  Xml declaration element SGML DOCTYPE command Root element

XHTML1-7 W3C Validation Service  Validate structure of a document   Can specify a url to validate Upload a file to validate

XHTML1-8 XHTML Format  XHTML  Plain text  Free form  Content Text Links  Tags (Elements) Specify structure Bounded by Often enclose attribute values

XHTML1-9 XHTML Elements (Tags)  Specify content characteristics  Generally paired  Bound a region  Start with : open tag  End with : closing tag  If tag is self-contained, use

XHTML1-10 XHTML Attributes  Specify alternative meanings of a tag  Where  Between tag name and its right-pointed bracket  In specified keyword form  Attribute Name = “Attribute value”  Attribute values must be delimited by double quotes

XHTML1-11 XHTML comments  Enhance the readability of your XHTML files   Browsers simply ignore all the enclosed content.

XHTML1-12 Tips in writhing XHTML documents  Comments  Nested elements  In case of wrong elements or attribute values…

XHTML1-13 XHTML Rules  Required elements in an XHTML file?  doctype, html, head, title, and body  Major differences with HTML  Tag names must be in lowercase XHTML is an application of XML, which is case sensitive  All XHTML elements must be closed Elements in pairs Self-contained elements  XHTML elements must be properly nested A nested element’s end tag must appear before the enclosing element’s end tag.  XHTML documents must be well-formed Nested in Elements in pairs & properly nested

XHTML1-14 XHTML  What is a Markup Language?  Why Extensible HTML?  XHTML vs HTML  XHTML Rules  Basic XHTML Components  Headers  Links  Text  Special Characters & Line Break  Images  Lists  Tables  Forms  Framesets

XHTML1-15 XHTML:  No attribute goes with  Nested tags  Name, content http-equiv="REFRESH“, Content=“delay; address” (redirect your webpage to “address”)  CSS definition  Script

XHTML1-16 XHTML:  Attributes  bgcolor  background  text  link  alink  vlink

XHTML1-17 Headers and Links  Six levels of headers, h1 – h 6  Id  Align (left, right, center, justify)  Can we change each header? (font, color, etc.)  element: cause browser to load another object, a page or a link  Href Link #ID Link to an “mailto:” Directory  Target “_blank”  Title Why?

XHTML1-18 Text: Format, Font, & Color  Format Elements   element  size: 1-7  color: red, #234567, rgb(23,45,67);  face: Arial, Times  Other font related elements   How to control word space, line space?  CSS

XHTML1-19 Other text related tags  horizontal line  Align, size, width  How can we control the color? CSS  (IE does not support) 

XHTML1-20 Special Characters & Line Breaks  Special characters (Entities)  Often used when character has special xhtml meaning or is not on keyboard  Coded &xx; Examples: < > & &fracl4; ° ©  Line break forced by End of header Paragraph Line break tag

XHTML1-21 Images  Typical web images  Jpeg  Gif  Element  Src (required)  Alt (required)  width, height, border  align  title  vspace, hspace  Using image as a link

XHTML1-22 Image Maps  Design Certain areas of an image (hotspots) as links  <area href=“1.html” shape=“rect” coords=“1,1, 200,100” alt=“fau” title=“florida atlantic university” /> <area href=“2.html” shape=“poly” coords=“1,1, xxx, xxx, 200,100” alt=“fau CS&E” title=“Computer Science & Eng.” /> <area href=“3.html” shape=“circle” coords=“100,100,20” alt=“fau ME” title=“Mechanical Engineering” />  ExampleExample

XHTML1-23 Lists  Ordered list  “Start” attribute  Unordered list   Definition list  : definition term : definition description

XHTML1-24 List: Cont.  List-style-type:  Disc, circle, square, decimal, lower-roman, upper-roman, lower-alpha, upper-alpha, none.   Nested lists:

XHTML1-25 XHTML Rules  Required elements in an XHTML file?  doctype, html, head, title, and body  Major differences with HTML  Tag names must be in lowercase XHTML is an application of XML, which is case sensitive  All XHTML elements must be closed Elements in pairs Self-contained elements  XHTML elements must be properly nested A nested element’s end tag must appear before the enclosing element’s end tag.  XHTML documents must be well-formed Nested in Elements in pairs & properly nested

XHTML1-26 Q1.  Will XHTML replace HML?

XHTML1-27 Q2.  The DOCTYPE declaration has no closing tag ?

XHTML1-28 Ques3. Is this a correct XHTML doc.? Coffee Tea Black tea Green tea Milk

XHTML1-29 Homework  1. (Due Sept. 8)  2. (Due Sept. 15)