Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.

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

3.02D HTML Overview 3.02 Develop webpages.
Dr. Alexandra I. Cristea XHTML.
Elder L. Lionel Kendrick Of the First Quorum of the Seventy It has been from the beginning and it will be till the end that the natural man will have a.
WeB application development
Website Design.
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.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 2 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Tutorial 11 Creating XML Document
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.
Chapter 14 Introduction to HTML
Computer Sciences Department
Chapter 1 Variables in the Web Design Environment
Creating a Basic Web Page
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
4 HTML Basics 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.
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.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
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.
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
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.
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,
Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Introducing XHTML: Module A: Web Design Basics.
XHTML1 Introduction to Web Pages Chapter 1. XHTML2 Objectives In this chapter, you will: Learn about the World Wide Web (WWW) Create simple Hypertext.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
4 HTML Basics 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.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Chapter 1 Introduction to JavaScript JavaScript, Third Edition.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
XHTML1 Building Document Structure N100 Building a Simple Web Page.
XHTML1 Introduction to Web Pages N100 Building a Simple Web Page.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Introducing XHTML: Module A: Web Design Basics
Introducing XHTML: Module A: Web Design Basics
3.00cs HTML Overview 3.00cs Develop webpages.
Introduction to XHTML.
WEBSITE DESIGN Chp 1
Introducing HTML & XHTML:
3.02D HTML Overview 3.02 Develop webpages.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
3.02D HTML Overview 3.02 Develop webpages.
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:

Introducing HTML & XHTML:

Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand the role of the W3C  Understand top browsers  Understand how XHTML evolved.  Understand how XML/XHTML differ from HTML

The World Wide Web  Accessing cross-referenced documents, known as hypertext linking, is probably the most important aspect of the Web because it allows you to quickly open other Web pages  A hypertext link, or hyperlink, contains a reference to a specific Web page that you can click to quickly open that Web page  A document on the Web is called a webpage, identified by a unique address called the Uniform Resource Locator, or URL  URL commonly referred to as a Web address

The World Wide Web  A URL is a type of Uniform Resource Identifier (URI), which is a generic term for many types of names and addresses on the World Wide Web.  A Web site refers to the location on the Internet of the Web pages and related files (such as graphic files) that belong to a company, organization, or individual

HTML Documents  Originally, people created Web pages using Hypertext Markup Language  Hypertext Markup Language (HTML) is a simple language used to create the Web pages that appear on the World Wide Web.  A markup language is a set of characters or symbols that define a document’s logical structure or how a document should be printed or displayed

HTML Documents  HTML is based on an older language called Standard Generalized Markup Language, or SGML, which defines the data in a document independently of how the data will be displayed.  A target output format refers to the medium in which a document will be displayed, such as a Web page or an online help system

Basic HTML Syntax  HTML documents are text documents that contain:  formatting instructions, called tags  the text that is to be displayed on a webpage.  HTML tags range from formatting commands to controls that allow user input  Tags are enclosed in brackets ( ), and most consist of a starting tag and an ending tag that surround the text or other items they are formatting or controlling

Common Structure and Formatting HTML Tags

Basic HTML Syntax  All HTML documents begin with and end with  Two other important HTML tags are the tag and the tag  The tag contains information that is used by the Web browser, and you place it at the start of an HTML document, after the opening tag

Basic HTML Syntax  The tag pair and the tags it contains are referred to as the document head  Following the document head is the tag, which contains the document body

Basic HTML Syntax  The tag pair and the text and tags it contains are referred to as the document body  A Web browser’s process of assembling and formatting an HTML document is called parsing or rendering  You use various parameters, called attributes, to configure many HTML tags  You place an attribute before the closing bracket of the starting tag, and separate it from the tag name or other attributes with a space

Basic HTML Syntax 1.Open a text document and name it index.txt 2.Save it in the main directory of your website 3.Open a browser in minimize mode, so you can see both browser and the text document. 4.Edit text document. 5.When complete, rename to index,html and drag document into browser.

Web Page Design and Authoring  Webpage design, or Web design, refers to the visual design and creation of the documents that appear on the World Wide Web  Webpage authoring refers to the creation and assembly of the tags, attributes, and data that make up a Web page

The W3C  Web page authors began to find it necessary to write slightly different HTML code for each Web browser in which they anticipated their Web page would be opened  The W3C does not release a version of a particular technology. Instead, it issues a formal recommendation for a technology, which essentially means that the technology is (or will be) a recognized industry standard

Web Browsers  Internet Explorer only is used by 36% of users defined by w3schools.com   Three additional browsers that are worth noting are:  Firefox ( 47.4%  Safari ( 3.3%  Chrome ( 7.0%  Opera ( 2.1%  You should test your webpage in every browser and browser version in which you anticipate they will be opened.

The differences and how to implement. HTML to XHTML

The Evolution to XHTML  The Web is expanding to other media, called user agents, which are devices that are capable of retrieving and processing HTML and XHTML documents  A user agent can be a traditional Web browser or a device such as a mobile phone or PDA, or even an application that simply collects and processes data instead of displaying it  HTML is not suitable for user agents other than Web browsers

The Evolution of XHTML  HTML has evolved into a markup language that is more concerned with how data appears than with the data itself  Current and older versions of Web browsers allow you to write sloppy HTML code without effecting the page.  Languages based on SGML use a Document Type Definition, or DTD, to define the tags and attributes that you can use in a document, and the rules the document must follow when it includes them

The Evolution of XHTML  When a document conforms to an associated DTD, it is said to be valid  When a document does not conform to an associated DTD, it is said to be invalid  You can check whether a document conforms to an associated DTD by using a program called a validating parser

The Evolution of XHTML  Because HTML is based on SGML, it requires a DTD, and the HTML DTD is built directly into Web browsers  When a Web browser opens an HTML document, it first compares the document to the DTD  If an HTML document is missing any required tags, the HTML DTD supplies them, allowing the Web browser to render the page correctly

The Basics of XML  In XHTML you refer to a tag pair and the data it contains as an element  All elements must have an opening and a closing tag  The data contained within an element’s opening and closing tags is referred to as its content

The XHTML Declaration  XHTML documents should begin with an XML declaration  The encoding attribute of the XML declaration designates the language used by the XML document  It’s a good practice to always include the XML declaration because XML will almost certainly evolve into other versions that will contain features not found in current version.

Writing Well-Formed Documents  Well-formed XHTML documents allow user agents to read the document’s data easily  User agents expect XML data to be structured according to specific rules, which allows the user agent to read data quickly without having to decipher the data structure

All XHTML Documents Must Have a Root Element  A root element contains all the other elements in a document.  The … element is the root element for HTML documents, although most Web browsers do not require a document to include it.  XML documents, however, require a root element that you define yourself

XHTML is Case Sensitive  Unlike HTML tags, XML tags are case sensitive  With XML, you cannot mix the case of elements  If you use a different case for an opening and closing tag, they will be treated as completely separate tags, resulting in a document that is not well formed

All XHTML Elements Must Have Closing Tags  XML is designed to organize data, not display it.  As a result, instead of documents consisting of text that contains elements, as is the case with HTML, XHTML documents consist of elements that contain text.  All elements must have a closing tag or the document will not be well formed.

XML Elements Must Be Properly Nested  Nesting refers to how elements are placed inside other elements – What is wrong with this example? This paragraph is bold and italicized.  In an HTML document, it makes no difference how the elements are nested.  XHTML documents require that tags be closed in the opposite order in which they were opened.

Attribute Values Must Appear Within Quotation Marks  In HTML, an attribute value can be placed inside quotation marks or they may be left off.  With XML, you must place quotation marks around the values assigned to an attribute

Empty Elements Must Be Closed  Several elements in HTML do not have corresponding ending tags, including the element, which inserts a horizontal rule into the document, and the element, which inserts a line break.  Elements that do not require an ending tag are called empty elements because you cannot use them as a tag pair to enclose text or other elements.  You can create an empty element in an XML document by adding a single slash (/) before the tag’s closing bracket to close the element  Most often, you use an empty element for an element that does not require content, such as an image.

Combining XML and HTML  Although XML was designed primarily to define data, this does not mean that you cannot use it to create Web pages.  To make the transition to XML-based Web pages easier, the W3C combined XML and HTML to create Extensible Hypertext Markup Language (XHTML)  Combination of XML and HTML that is used to author Web pages  XHTML is almost identical to HTML, except that it uses strict XML syntax to describe the parts of a document

Questions?