Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Similar documents
BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Course Overview. Week 1

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

HTML Overview. With an emphasis on XHTML

Web Publishing Basics I

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

introduction to XHTML

How the Internet Works

Web Development and Design Foundations with HTML5 8th Edition

Announcements. Paper due this Wednesday

Introduction to HTML5

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

What is XHTML? XHTML is the language used to create and organize a web page:

Creating A Web Page. Computer Concepts I and II. Sue Norris

c122jan2714.notebook January 27, 2014

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Module 2 (III): XHTML

11. HTML5 and Future Web Application

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Fundamentals: Client/Server

HTML. Hypertext Markup Language. Code used to create web pages

Inline Elements Karl Kasischke WCC INP 150 Winter

COSC 2206 Internet Tools. Brief Survey of HTML and XHTML Document Structure Formatting

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

INTRODUCTION TO HTML5! HTML5 Page Structure!

Creating and Editing a Web Page Using Inline Styles

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

This document provides a concise, introductory lesson in HTML formatting.

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

CSC 121 Computers and Scientific Thinking

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

HTML & XHTML Tag Quick Reference

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

CSCU9B2: Web Tech Lecture 1

Desire2Learn: HTML Basics

CIS 228 (Fall 2011) Exam 1, 9/27/11

Chapter 2 Creating and Editing a Web Page

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

CS134 Web Site Design & Development. Quiz1

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

A Balanced Introduction to Computer Science, 3/E

Module 2-1-1: Markup Languages & HTML

HyperText Markup Language (HTML)

Introduction to Web Development

FOR EVALUATION USE ONLY

HTML: The Basics & Block Elements

HTML+ CSS PRINCIPLES. Getting started with web design the right way

HTML Overview formerly a Quick Review

Lab 4 CSS CISC1600, Spring 2012

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Basics of Page Format

XHTML & CSS CASCADING STYLE SHEETS

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Developing a Basic Web Page

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

The Structural Layer (Hypertext Markup Language) Webpage Design

A Brief Introduction to HTML

Modify cmp.htm, contactme.htm and create scheduleme.htm

Web Design and Development ACS Chapter 3. Document Setup

Introduction to Web Technologies

CSC Web Programming. Introduction to HTML

CMPT 165 Unit 2 Markup Part 2

Programmazione Web a.a. 2017/2018 HTML5

Title: Sep 12 10:58 AM (1 of 38)

XHTML. XHTML stands for EXtensible HyperText Markup Language. XHTML is the next generation of HTML. XHTML is almost identical to HTML 4.

Micronet International College

Chapter 4 A Hypertext Markup Language Primer

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

History of the Internet. The Internet - A Huge Virtual Network. Global Information Infrastructure. Client Server Network Connectivity

Implementing a chat button on TECHNICAL PAPER

HTML TUTORIAL ONE. Understanding What XHTML is Not

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Duke Library Website Preliminary Accessibility Assessment

UNIT II Dynamic HTML and web designing

Computer Applications Final Exam Study Guide

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

Management Information Systems

(1) I (2) S (3) P allow subscribers to connect to the (4) often provide basic services such as (5) (6)

4 HTML Basics YOU WILL LEARN TO WHY IT MATTERS... CHAPTER

HTML. HTML Evolution

Chapter 4. Introduction to XHTML: Part 1

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Creating Web Pages Using HTML

Advanced Web Programming C2. Basic Web Technologies

ANSWER KEY Exam I (Yellow Version) CIS 228: The Internet Prof. St. John Lehman College City University of New York 26 February 2009

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

HTML Hyper Text Markup Language

HTML Introduction to the Code

Week 1 - Overview of HTML and Introduction to JavaScript

Transcription:

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 wellformed. Use lowercase Use opening and closing tags <body> </body> Close stand-alone tag with special syntax <hr />

Document W3C Recommendation: Use a Document Type Definition to identify the type of markup language 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 <!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 <title> and <meta /> tags <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>my First Web Page</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body>... Body info goes here </body> </html>

The Heading Element <h1>heading <h2>heading <h3>heading <h4>heading <h5>heading <h6>heading Level Level Level Level Level Level 1</h1> 2</h2> 3</h3> 4</h4> 5</h5> 6</h6>

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 <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 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 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 Common Physical Style Tags Useful for browsers but not always applicable for other devices or user agents such as screen readers <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. 28

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

Hyperlinks Hands-On Practice 30

XHTML Email Links 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> 31

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

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