Introduction to XHTML.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

WeB application development
Website Design.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
 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.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 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.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
Basics of HTML.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
HTML (HyperText Markup Language)
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
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.
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.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
All Web pages are written with some form of HTML (HyperText Markup Language). HTML documents are saved as Text Only files so virtually any computer can.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
Just Enough HTML How to Create Basic HTML Documents.
HTML: Hyptertext Markup Language Doman’s Sections.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
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.
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Links HTML uses a hyperlink to another document on the Web.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Jozef Goetz contribution, J. Goetz, 2016  Pearson Education, Inc. All rights reserved.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML5.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
4 Introduction to XHTML.
Introducing XHTML: Module A: Web Design Basics
Introducing XHTML: Module A: Web Design Basics
4 Introduction to XHTML.
4 Introduction to XHTML.
3.00cs HTML Overview 3.00cs Develop webpages.
Chapter 1: Introduction to XHTML (part 1)
Chapter 4 - Introduction to XHTML: Part 1
INP150: Basic HTML Instructor: Paul J. Millis
WEBSITE DESIGN Chp 1
Computers and Scientific Thinking David Reed, Creighton University
3.02D HTML Overview 3.02 Develop webpages.
1 Introduction to XHTML.
Introduction to HTML- Basics
Introduction to HTML.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
HyperText Markup Language
3.02D HTML Overview 3.02 Develop webpages.
AN INTRODUCTION BY FAITH BRENNER
Lesson 2: HTML5 Coding.
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.
Presentation transcript:

Introduction to XHTML

OBJECTIVES In this chapter you will learn: To understand important components of XHTML documents. To use XHTML to create web pages. To add images to web pages. To create and use hyperlinks to navigate web pages. To mark up lists of information. To create tables with rows and columns of data and control table formatting. To create and use forms to get user input. To make web pages accessible to search engines using <meta> tags.

HTML vs XHTML HTML or HyperText Markup Language is the main markup language for creating web pages and other information that can be displayed in a web browser. XHTML (Extensible HyperText Markup Language) is a family of XML markup languages that mirror or extend versions of the widely used Hypertext Markup Language (HTML), the language in which web pages are written.

HTML XHTML Filename extension .html, .htm .xhtml, .xht, .xml, .html, .htm Internet media type text/html application/xhtml+xml Developed by W3C & WHATWG World Wide Web Consortium Type of format Document file format Markup language Extended from SGML XML, HTML Stands for HyperText Markup Language Extensible HyperText Markup Language Application Application of Standard Generalized Markup Language (SGML). Application of XML Function Web pages are written in HTML. Extended version of HTML that is stricter and XML-based. Nature Flexible framework requiring lenient HTML specific parser. Restrictive subset of XML and needs to be parsed with standard XML parsers. Origin Proposed by Tim Berners-Lee in 1987. World Wide Web Consortium Recommendation in 2000. Versions HTML 2, HTML 3.2, HTML 4.0, HTML 5. XHTML 1, XHTML 1.1, XHTML 2, XHTML 5.

Introduction XHTML (Extensible HyperText Markup Language) markup language for creating web pages Based on HTML (HyperText Markup Language) legacy technology of the World Wide Web Consortium (W3C) XHTML 1.0 Allows only a document’s content and structure to appear in a valid XHTML document, and not its formatting Formatting is specified with Cascading Style Sheets

Editing XHTML A machine that runs a specialized piece of software called a web server stores XHTML documents

First XHTML Example In XHTML, text is marked up with elements delimited by tags that are names contained in pairs of angle brackets Every XHTML document contains a start <html> tag and an end </html> tag Some elements may contain attributes that provide additional information about the element Comments in XHTML always begin with <!-- and end with -->. The browser ignores all text inside a comment

First XHTML Example (Cont.) Every XHTML document contains a head element which generally contains: A title A body element head element generally is not rendered in the display window

First XHTML Example (Cont.) The title element: Names a web page Usually appears in the colored bar (called the title bar) at the top of the browser window Is the text identifying a page when users add your page to their list of Favorites or Bookmarks The body element: Contains the document’s content, which may include text and tags

First XHTML Example (Cont.) All text placed between the <p> and </p> tags forms one paragraph XHTML documents delimit an element with start and end tags A start tag consists of the element name in angle brackets (e.g., <html>) An end tag consists of the element name preceded by a forward slash (/) in angle brackets (e.g., </html>) Many start tags have attributes that provide additional information about an element Each attribute has a name and a value separated by an equals sign (=)

First XHTML example. XHTML comments, not interpreted by the browser Creates a head element Creates a title element, which contains the text Welcome Creates a p element within the body, which displays welcome text

Common Programming Error XHTML does not permit tags to overlap—a nested element’s end tag must appear in the document before the enclosing element’s end tag. For example, the nested XHTML tags <head><title>hello</head></title> cause a syntax error, because the enclosing head element’s ending </head> tag appears before the nested title element’s ending </title> tag.

W3C XHTML Validation Service XHTML documents that are syntactically correct are guaranteed to render properly XHTML documents that contain syntax errors may not display properly Validation services (e.g., validator.w3.org) ensure that an XHTML document is syntactically correct

Headings XHTML provides six headings (h1 through h6) for specifying the relative importance of information Heading element h1 is considered the most significant heading and is rendered in the largest font Each successive heading element (i.e., h2, h3, etc.) is rendered in a progressively smaller font

Heading elements h1 through h6 Creates six headings, each with decreasing significance

Linking A hyperlink references or links to other resources, such as XHTML documents and images Web browsers typically underline text hyperlinks and color them blue by default

Linking (Cont.) Users can insert links with the a (anchor) element. The href attribute specifies the resource (e.g., page, file, e-mail address) being linked Anchors can link to an e-mail address using a mailto: URL When a user clicks this type of anchored link, most browsers launch the default e-mail program (e.g., Outlook Express) to initiate an e-mail message addressed to the linked address. The strong element typically causes the browser to render text in a bold font

Linking to other web pages. Creates anchor elements that link to the URL specified in the href attribute

Linking to an e-mail address Hyperlink that creates a message to the address deitel@deitel.com with the computer’s default e-mail program