Web Development & Design Foundations with XHTML

Slides:



Advertisements
Similar presentations
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
Advertisements

Web Development & Design Foundations with HTML5
HTML popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
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.
HTML: HyperText Markup Language Hello World Welcome to the world!
Website Design.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
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.
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.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
1.  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Course Content - Chapter 2 Introduction to HTML Introduction to a Text Editor as a web authoring tool Instructional Activity: Creating a webpage using.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
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,
HTML: Hyptertext Markup Language Doman’s Sections.
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.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
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 – Organizing Page Content. HTML Images img tag Required attribute: src
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
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.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2- part 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
INT222 – Internet Fundamentals
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
HTML Basics.
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Introduction to XHTML.
COMPUTING FUNDAMENTALS
WEBSITE DESIGN Chp 1
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Presentation transcript:

Web Development & Design Foundations with XHTML Chapter 2 Key Concepts

Learning Outcomes In this chapter, you will learn about: XHTML syntax, tags, and document type definitions The anatomy of a web page Formatting the body of a web page Formatting the text on a web page Physical and logical style tags Special Characters Connecting Web pages using hyperlinks

What is HTML? HTML: The set of markup symbols or codes placed in a file intended for display on a Web browser page. The World Wide Web Consortium (http://w3c.org) sets the standards for HTML and its related languages.

HTML Elements Each individual markup code is referred to as an element or tag. Each tag has a purpose. Tags are enclosed in angle brackets, "<" and ">" symbols. Most tags come in pairs; an opening tag and a closing tag.

What is XHTML? The newest version of HTML eXtensible HyperText Markup Language. XHTML uses: the elements and attributes of HTML the syntax of XML (eXtensible Markup Language).

XML Syntax An XML document must be well-formed. Use lowercase Use opening and closing tags <body> </body> Close stand-alone tag with special syntax <hr /> XML documents begin with an XML directive. The basic form of this directive is: <?xml version="1.0" encoding="UTF-8"?>

Document Type Definition (DTD) W3C Recommendation: Use a Document Type Definition to identify the type of markup language used in a web page. XHTML 1.0 Transitional This is the least strict specification for XHTML 1.0. It allows the use of both Cascading Style Sheets and traditional formatting instructions such as fonts. We will use this DTD in this text XHTML 1.0 Strict Requires exclusive use of Cascading Style Sheets. We will not use this. XHTML 1.0 Frameset Required for pages using XHTML frames. We will use not use this.

XHTML 1.0 Transitional DTD <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>

First Web Page <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> an opening tag .... page info goes here </html> a closing tag

Head & Body Sections Head Section Contains information that describes the web page document <head> …head section info goes here </head> Body Section Contains text and elements that display in the Web page document <body> …body section info goes here </body>

XHTML <head> and <body> tags <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> .... Header info goes here </head> <body> .... Body info goes here </body> </html>

The Heading Element <h1>Heading Level 1</h1>

XHTML <p> tag Paragraph element <p> …paragraph goes here… </p> Groups sentences and sections of text together. Configures a blank line above and below the paragraph

XHTML <br /> tag Line Break element Stand-alone tag …text goes here <br /> This starts on a new line…. Causes the next element or text to display on a new line

XHTML <blockquote> tag Blockquote element Indents a block of text for special emphasis <blockquote> …text goes here… </blockquote>

XHTML List Basics Definition List Ordered List Unordered List

XHTML Definition List Useful to display a list of terms and definitions or a list of FAQ and answers <dl> tag Contains the definition list <dt> tag Contains a defined term Configures a line break above and below the text <dd> tag Contains a data definition or description Indents the text

XHTML Definition List Example <dl> <dt>IP</dt> <dd>Internet Protocol</dd> <dt>TCP</dt> <dd>Transmission Control Protocol</dd> </dl>

XHTML Ordered List Conveys information in an ordered fashion <ol> Contains the ordered list type attribute determines numbering scheme of list, default is numerals <li> Contains an item in the list

XHTML Ordered List Example <ol> <li>Apply to school</li> <li>Register for course</li> <li>Pay tuition</li> <li>Attend course</li> </ol>

XHTML Unordered List Displays information with bullet points <ul> Contains the unordered list type attribute determines the type of bullet point default type is disc (but depends on the browser used) <li> Contains an item in the list

XHTML Unordered List Example <ul> <li>TCP</li> <li>IP</li> <li>HTTP</li> <li>FTP</li> </ul>

Checkpoint 1. Describe the features of a heading tag and how it configures the text. 2. Describe the difference between ordered lists and unordered lists. 3. Describe the purpose of the blockquote tag.

XHTML Logical Style Elements Indicate the logical style of the text display Common Logical Style Tags <strong></strong> To cause text to be emphasized or to "stand out" from surrounding text. <strong>This is important</strong> <em></em> To cause text to be emphasized in relation to other text on the page. Usually italics. <em>Please note</em>

XHTML Physical Style Elements Provide browser font configuration info Useful for browsers – but not always applicable for other devices or user agents such as screen readers Common Physical Style Tags <b></b> To display as bold text <b>This is important</b> <i></i> To display text in italics <i>Please note</i>

XHTML Special Characters Display special characters such as quotes, copyright symbol, etc. Character Code © © < < > > & &  

Checkpoint Provide a reason for using logical style tags rather than physical style tags. Describe the purpose of special characters.

XHTML <a> tag The anchor element Specifies a hyperlink reference (href) to a file Text between the <a> and </a> is displayed on the web page. <a href="contact.html">Contact Us</a> href Attribute Indicates the file name or URL Web page document, photo, pdf, etc.

XHTML <a> tag Absolute link Relative link Link to other Web sites <a href="http://yahoo.com">Yahoo</a> Relative link Link to pages on your own site <a href="index.htm">Home</a>

Favorites favorites.html Hyperlinks Hands-On Practice Home index.html Resume resume.html Favorites favorites.html

XHTML Email Links using the <a> tag Automatically launch the default mail program configured for the browser If no browser default is configured, a message is displayed <a href=“mailto:me@hotmail.com”>me@hotmail.com</a>

Checkpoint Describe when to use an absolute link. Is the http protocol used in the href value? Describe when to use a relative link. Is the http protocol used in the href value? What happens when a web site visitor clicks on an e-mail link?

Writing Valid XHTML Check your code for syntax errors Benefit: Valid code  more consistent browser display W3C XHTML Validation Tool http://validator.w3.org

Summary This chapter provided an introduction to XHTML. It began with an introduction to the HTML, discussed the transition to XHTML, continued with the anatomy of a web page, introduced inline and block-level formatting, and demonstrated the XHTML techniques used to create hyperlinks. You will use these skills over and over again as you create Web pages.