Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.

Slides:



Advertisements
Similar presentations
Web Development & Design Foundations with XHTML
Advertisements

XHTML Basics Web pages used to be written exclusively in html
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
XHTML Basics.
History Leading to XHTML
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
XHTML 16-Apr-17.
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Basics of HTML.
Creating and Editing a Web Page
Creating a Basic Web Page
HTML BASICS Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
CS 299 – Web Programming and Design Introduction to HTML.
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.
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.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
3 XHTML.
CSCE Chapters 1 and 2 CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department of Computer Science & Engineering.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
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.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Formatting Text and Lists Essentials for.
CSCI 1101 Intro to Computers
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
Just Enough HTML How to Create Basic HTML Documents.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
HTML: Hyptertext Markup Language Doman’s Sections.
Lesson 4.
ECA 228 Internet/Intranet Design I Intro to Markup.
HTML Basics BCIS 3680 Enterprise Programming. Web Client/Server Architecture 2  Your browser (the client) requests a Web page from a remote computer.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
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.
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.
HTML Introduction. Lecture 7 What we will cover…  Understanding the first html code…  Tags o two-sided tags o one-sided tags  Block level elements.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
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.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Cascading Style Sheet CSS Closing Switch Closing Tag Code View
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Basics.
W3C Web standards and Recommendations
Introduction to XHTML.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for Design XHTML

Copyright (c) 2004 Prentice-Hall. All rights reserved. 2 What is HTML?  Hypertext Markup Language  Made up of tags, elements, and attributes  Scripting language that instructs a Web browser how to display a Web page  No parsing necessary from computer  Runs within another application, not stand-alone  Latest version: HTML 4.01  Now being replaced with XHTML

Copyright (c) 2004 Prentice-Hall. All rights reserved. 3 Problems with HTML  Non-standard  Leads to “browser wars”  Different Web browsers may apply tags in different ways  Different Web browsers may not support tags in the same way  Content and presentation mixed together  Results in sloppy code

Copyright (c) 2004 Prentice-Hall. All rights reserved. 4 What is XHTML?  eXtensible Hypertext Markup Language  XML-based extension of HTML  Developed by World Wide Web Consortium (W3C)  Purpose:  Clean up sloppy, non-standard HTML  Provide ways to extend HTML and add new features  Separate content from presentation

Copyright (c) 2004 Prentice-Hall. All rights reserved. 5 Using Notepad Menu bar Document area Title bar File menu

Copyright (c) 2004 Prentice-Hall. All rights reserved. 6 Saving an HTML File from Notepad  By default, files from Notepad are saved with a.txt extension  If you try to save as filename.htm, then the real name will be filename.htm.txt  You can avoid this by either:  Making sure that the Save As Type entry is set as All Files instead of *.txt or  Saving with the name in quotes, like this: "filename.htm"

Copyright (c) 2004 Prentice-Hall. All rights reserved. 7 Using Browser Browser window Dialog box for opening Web page

Copyright (c) 2004 Prentice-Hall. All rights reserved. 8 Tags and Elements  Tags  Tell browser what to do with information  Define the structure of a Web page  Identify beginning and end of elements  Document tags specify each section  Optional in HTML, mandatory in XHTML  Elements  Types of object that can contain text or other objects  Nested elements – elements contained in other elements

Copyright (c) 2004 Prentice-Hall. All rights reserved. 9 Type of Document Tags  – specify begin and end of XHTML document  – specify begin and end of header information, including title and meta data  – specify begin and end of title that appears in browser’s title bar  – specify begin and end of displayed content of XHTML page

Copyright (c) 2004 Prentice-Hall. All rights reserved. 10 XHTML Validation  Process of syntax checking a Web page  Confirm that a document adheres to Document Type Definitions (DFD) defined by W3C  DFD types:  Strict  Transitional  Frameset

Copyright (c) 2004 Prentice-Hall. All rights reserved. 11 XHTML Code in Notepad and Browser Results Body goes in content area of browser Title goes in Title bar of browser

Copyright (c) 2004 Prentice-Hall. All rights reserved. 12 Versions of XHTML  Strict (XHTML 2.0)  Must follow complete XML coding rules  Must separate content from presentation  Presentation via Cascading Style Sheets (CSS)  Transitional (XHTML 1.0, 1.1)  Reformulation of HTML 4.01  Presentation and content tags exist  Frameset  Enable window-in-a-window effect

Copyright (c) 2004 Prentice-Hall. All rights reserved. 13 White Space in XHTML Documents  White space – empty area in a page  Important for making page easier to read  Enter/Return key does not provide this in XHTML documents  Can use paragraph tags:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 14 Effects of Tags tag inserts white space and separates lines of text Without tag, Enter/Return has no effect on browser display

Copyright (c) 2004 Prentice-Hall. All rights reserved. 15 Closing Container Tags  XHTML rules require all tags have closers  Opening tag has tag code:  e.g.  Closing tag has forward slash in front of code  e.g.  Content placed between open and close tags  CONTENT  Browsers are forgiving, but XHTML rules are strict

Copyright (c) 2004 Prentice-Hall. All rights reserved. 16 Attributes  Most tags can have attributes  Attribute is:  Information in the opening tag  Specification for what the tag is supposed to do  Attribute syntax:  attributename = “value”  Attribute – value pair

Copyright (c) 2004 Prentice-Hall. All rights reserved. 17 The align Attribute  Specifies how text within the paragraph should be aligned  Options include: left, center, right, justify  Example:  CONTENT

Copyright (c) 2004 Prentice-Hall. All rights reserved. 18 Deprecation  Some HTML tags or attributes are deprecated  Deprecated tags/attributes are old (obsolete) versions  Replaced by newer, improved XHTML tags/attributes  Most browsers support deprecated tags  The align attribute is deprecated  Modern alignment is handled through style sheets

Copyright (c) 2004 Prentice-Hall. All rights reserved. 19 Effects of align attribute Effect of

Copyright (c) 2004 Prentice-Hall. All rights reserved. 20 The Line Break Tag  An empty tag (contains no content)  Close symbol placed at the end of open tag  instead of  No white space placed between lines  unlike  Line break is deprecated  XHTML provides tag

Copyright (c) 2004 Prentice-Hall. All rights reserved. 21 Effects of Tag tag was placed here

Copyright (c) 2004 Prentice-Hall. All rights reserved. 22 Creating Headings  Concepts  Six levels of heading tags  Heading alignment  XHTML 2.0’s structured headings Hands-on Exercise  Add headings to a Web page

Copyright (c) 2004 Prentice-Hall. All rights reserved. 23 Headings Tags  Boldfaced and large font text  Six levels of headings:  through  is largest  is smallest

Copyright (c) 2004 Prentice-Hall. All rights reserved. 24 Structured Headings  XHTML 2.0 provides structured headings  tags placed within elements  No numbering of tags  nesting determines size of content

Copyright (c) 2004 Prentice-Hall. All rights reserved. 25 Effects of Headings Tags Dr. Know-It-All Recommendations Upcoming Books

Copyright (c) 2004 Prentice-Hall. All rights reserved. 26 Blockquote Tag   Indents contained text  Indentation from left and right margins  Nest blockquote tags to increase indentation

Copyright (c) 2004 Prentice-Hall. All rights reserved. 27 Effects of Blockquote Tag tag causes this indentation Nested causes more indentation

Copyright (c) 2004 Prentice-Hall. All rights reserved. 28 Citations in Blockquote  Use of cite attribute  Specify source URL  URL = Uniform Resource Locator

Copyright (c) 2004 Prentice-Hall. All rights reserved. 29 Justify  Align attribute can be used for tag  One align option is “justify”   Justify value stretches text to fill entire margin space