ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.

Slides:



Advertisements
Similar presentations
Web Development & Design Foundations with XHTML
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
COS 125 Internet Fundamentals and Web Page Design Day 3.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
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.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
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.
HTML and XHTML Controlling the Display Of Web Content.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
Introduction to XHTML Professor Stephen Kwan. 2 XHTML HTML StyleSheets XML CascadingStyleSheets(CSS) ExtensibleStylesheetLanguage(XSL) StructureFormatContent.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
Creating a Simple Page: HTML Overview
Creating a Basic Web Page
DAT602 Database Application Development Lecture 14 HTML.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
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.
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
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.
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.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML: Hyptertext Markup Language Doman’s Sections.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Web programming Part 1: HTML 由 NordriDesign 提供
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
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.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
Cascading Style Sheet CSS Closing Switch Closing Tag Code View
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.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
HTML5 Basics.
XHTML Basics.
Introduction to XHTML.
XHTML Basics.
XHTML Basics.
XHTML Basics.
XHTML Basics.
Presentation transcript:

ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation

Markup Language  Before we can talk about xHTML, we need to understand what a Markup Languages is. A markup language refers to the use of characters within a piece of information that can be used to process or identify that information in a particular way.  When the above is viewed in a browser (IE or Netscape), what in fact the browser is doing is interpret the markup elements and display the content. Some Title Display this in a heading 1 definition Display this in normal text definition.

Markup Language  There are a number of different markup languages and types. To appreciate and understand why XML was developed, one has to get a general understanding of the Standard Generalized Markup Language (SGML) and its relationship with HTML. SGML is the grandfather of all markup languages.

To Summarize: SGML is a very powerful language for document display. It is a very powerful language, but it is difficult to fully understand. SGML, has the advantage of creating other easier-to-use web- programming languages like HTML, XML, and XHMTL. HTML is an easy-to-use language designed to display data, but has limitations of displaying complex data (like databases). New devices such as PDA’s and mobile phones do not have the resources to interpret HTML if written with mistakes.

XHTML  XHTML 1.0 brings the Web of the future to content authors today. It is a reformulation of HTML 4 in XML, bringing the rigor of XML to HTML, and can be put to immediate use with existing browsers by following a few simple guidelines. W3C's work in XHTML helps create standards that provide richer Web pages on an ever-increasing range of browser platforms including cell phones, televisions, cars, wallet-sized wireless communicators, etc...

XHTML To write XHTML you need to use the XML syntax, which is slightly different from that of the HTML you use today. What are the differences? XML requires you to: include the correct DOCTYPE declaration at the beginning of the file The more forgiving, more backwards-compatible version of XHTML The more rigorous, more XML-style version of XHTML DTD for frames add the attribute xmlns=" to the tag make element and attribute names case-sensitive. XHTML uses lowercase include end tags e.g. and add a / to empty elements, e.g. and quote all attribute values, e.g. End special escape codes with semi-colon (eg. &)

General XHTML Structure  Here is an example of an XHTML web page using the transitional DOCTYPE:   Sample Title  Contents of webpage DOCTYPE (Transitional) Beginning and ending HTML tags File Encoding Type

XHTML Tags  Commenting The purpose of commenting is to provide information for the web page designer. A comment may appear anywhere in an HTML/XHTML document and has the following format:  Example:  <!-- Here is a  multiple line comment -->

XHTML Tags  This is the HTML/XHTML document header. (required) The tag defines an HTML/XHTML document header. The header contains information about the document rather than information to be displayed in the document. The web browser displays none of the information in the header, except for text contained by the tag. You should put all header information between the and tags, which should precede the tag. The tag must contain the title tag and optionally - to be covered at a later date - the base, isindex, meta, script, style, and link tags.

 The tag is contained in the heading of the web page document. This tag specifies the title of the document. The title will appear in the title bar of the browser window. In addition, automated web search tools can use the title to index documents.

XHTML Tags  The tag specifies the main content of a document. You should put all content that is to appear in the web page between the and tags. The tag has attributes that let you specify characteristics for the document such as: The background color An image to use as a tiled background for the window The default text color, active/unvisited/visited link colors Actions to occur when the document finishes loading or is unloaded, and when the window in the document is displayed receives or loses focus.

XHTML Tags  Attributes:   Sets the color of the document background.   Displays an image in the document background. (can use relative or absolute pathnames)   Sets the color of normal text in document. Normal text

XHTML Tags  Attributes :   Sets the text color of all unvisited links in the document.   Sets the text color of all links when clicked down (activated).   Sets the text color of all visited links in the document. Unvisited Link Active Link Visited Link

XHTML Tags  In addition to empty and non-empty tags, there are also categories of tags called Block-Level tags and Inline tags. Block-Level Tags Block-Level tags are used to set up the structure of the web pages (eg. Building blocks). Block-level tags are automatically separated by a separate empty line. Block-level elements may contain in-line elements or other block- level elements We will discuss inline tags in a later class… Heading Paragraph Line Table Web page body Block-Level Tags (Structure)

Block-Level Tags .. (non empty tag)  Displays a heading. Level-one (h1) headings are the largest and level-six (h6) are the smallest.  (non-empty tag)  Displays a paragraph. You can use the tag to insert a line break with extra space using the tag.  (non-empty tag)  Displays an indented paragraph. Block quotes are usually used to quote passages from books, etc…

Block-Level Tags  (empty tag)  Used to display a line. This is useful to separate other blocks or sections of the web page.  (Non-empty tag)  Used to display text such as code, where characters such as new line are recognized by the browser.  Other Block-Level Tags to be Covered in Course: Lists (,,,,, ) Tables (,,, )

Creating a Web page After you have learned how to code your web page, you will need to physically create your web page on a web server (e.g. on your Matrix account) to allow others to view your web page. In order to do this, you will need to know where to create a file that will contain your web page.

Creating a Web Page On your Matrix account, there a directory called public_html, that is the “starting place” where web pages or subdirectories containing web pages are stored. Any web pages stored in a directory level higher than the public_html director will not be available to be viewed on the Internet Home directory Public_html

Creating a Web Page Home directory public_html Web page files should be text files that end with an extension.html or.htm Web page files should be contained in the public_html directory or a subdirectory of public_html A web page called index.html will automatically load the web page if just the directory pathname is used. If no index.html file is available in the directory, then the contents of the directory will be displayed in the web browser. NOTE: Do not include the public_html directory in the pathname of the web page address (URL)…

XHTML Validation You are required to validate your web document for XHTML 1.0 Failure to have your web document validate for XHTML1.0 will result in major assignment penalties (eg. 30%). To validate your web document: Create a web document in your Matrix account. Copy your full or absolute URL (eg. Go to Under “Validate by URL”, paste in your full URL. If Errors, edit your webpage file in Matrix, save file, and revalidate again! If web document validates, copy code in validator to create a linked image in your web page to automatically validate.