_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.

Slides:



Advertisements
Similar presentations
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Advertisements

C HAPTER – 3 I NTRODUCTION TO H TML By :- Pinkesh H. Patel.
XHTML Basics.
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.
Creating and Editing a Web Page Using Inline Styles
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Creating and Editing a Web Page
HTML Introduction HTML
Developing a Basic Web Page with HTML
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
XHTML1 Topics Work with the Frameset Document Type Definition (DTD) Create frames Use the target and base attributes Create nested frames Format frames.
Meta Tags What are Meta Tags And How Are They Best Used?
Chapter 3. Table have many uses in a HTML design but are mostly used for the organization of your web site. Tables also give vertical and horizontal structure.
Structure Content Presentation Semantics.
Creating a Simple Page: HTML Overview
Creating and Editing a Web Page
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
Testing and Debugging Web pages. Final exam Wednesday, May 10: 10am – noon Content: guidelines will be distributed next lecture Format: Matching, multiple.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
HTML (HyperText Markup Language)
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
CIS67 Foundations for Creating Web Pages Professor Al Fichera Reference for CIS127 and CIS 137.
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)
Objectives: 1. Create a Skeleton HTML 2. View a Skeleton File Through a Server and Browser 3. Learn HTML Body Tags for the Display of Text and Graphics.
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.
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
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.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
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.
Internet Web Publishing III. Intro to Cascading Style Sheets Patricia Roberts.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Adobe Dreamweaver CS3 Revealed CHAPTER THREE: WORKING WITH TEXT AND IMAGES.
HTML: Hyptertext Markup Language Doman’s Sections.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
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.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
C H 07: M ORE A BOUT HTML Tharith Sriv. O UTLINE You have already learnt almost everything in HTML. In this chapter, you will learn more about:  An HTML.
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
Cascading Style Sheets CSS. Source W3Schools
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Jozef Goetz, © 2011 Pearson Education Copyright (c) 2007Prentice-Hall. All rights reserved.
Creating and Editing a Web Page. Organization Logo Menu Bar Title Background Text Links Heading Image Links Body of Web Page.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
Introduction to HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
XHTML Introductory1 Frames Chapter 5. XHTML Introductory2 Objectives In this chapter, you will: Work with the Frameset Document Type Definition (DTD)
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
XHTML Basics.
Web Programming– UFCFB Lecture 6
XHTML Basics.
XHTML Basics.
Using Cascading Style Sheets (CSS)
XHTML Basics.
XHTML Basics.
Presentation transcript:

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the book authors, 2002 Web Design in a Nutshell Chapter 9: Structural HTML Tags

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition2  Wiley and the book authors, 2002 Summary   Setting up an HTML document  The document type declaration  Elements of the document header  Background graphics  Adjusting browser margins  Using tags

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition3  Wiley and the book authors, 2002 Synopsis This chapter looks at the subset of HTML tags that are used primarily to give the document structure It will also discuss tags that are used for providing information about the document and those used for controlling its appearance or function on a global level

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition4  Wiley and the book authors, 2002 The tag defines the beginning and end of the document body (that which appears in the browser window) Attributes of the tag affect the entire document  alink=“#rrggbb” or color name (deprecated): the color while the mouse is held down over a link during a click  background=“url” (deprecated): URL to a graphic to be used as the tiling background of the document  bgcolor=“#rrggbb” (deprecated): sets the color of the background for the document  link=“#rrggbb” (deprecated): sets the default color for all links  text=“#rrggbb” (deprecated): sets the default color for all non-link text  vlink=“#rrggbb” (deprecated): sets the color of the visited links  bgproperties=“fixed” (IE & N7+): when set to fixed, the background image does not scroll with the document content

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition5  Wiley and the book authors, 2002 The tag defines the portion of the document that contains information about the document. The tag has no directly displayed content, but serves only as a container for the other header tags, such as,, and  No currently supported attributes

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition6  Wiley and the book authors, 2002 The tag is placed at the beginning and end of the document. This tag tells the browser that the entire document is composed in HTML  dir=“[ltr|rtl]”: indicated whether the direction of the text should be displayed from left-to-right (default) or right-to-left  lang=“language code”: indicated the primary language of the document  version=“-//W3C//DTD HTML 4.01//EN” (deprecated): specifies the version of HTML the document uses. Use the SGML construct instead

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition7  Wiley and the book authors, 2002 The tag provides additional information about the document It is commonly used for making documents searchable (by adding keywords) or to specify the character set for a document  content=“text” (required): specifies the value of the meta tag property and is always used in conjunction with name= or http-equiv=  http-equiv=“text”: the specified information is treated as though it were included in the HTTP header hat the server sends ahead of the document. It is used in conjunction with the content attribute (in place of the name attribute)  name=“text”: specifies a name for the meta information property  scheme=“text”: provides additional information for the interpretation of meta data

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition8  Wiley and the book authors, 2002 The tag specifies the title of the document The title generally appears in the top bar of the browser window According to the HTML 4.01 specification, all documents must contain a meaningful within the of the document

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition9  Wiley and the book authors, 2002 Setting up an HTML document The standard skeletal structure of an HTML document according to the W3C is as follows: <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “ Document Title Contents of document

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition10  Wiley and the book authors, 2002 The document type declaration In order to be valid, an HTML document needs to begin with a document type declaration that identifies the version of HTML, each defined by a distinct document type definition (DTD) located on the W3C’s server  Strict:  <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “  Transitional:  <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “  Frameset:  <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Frameset//EN” “

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition11  Wiley and the book authors, 2002 Elements in the document header  The most commonly used element within the header is the document  Titles should contain only ASCII characters (letters, numbers, and basic punctuation). Special characters (such as &) should be referred to by their character entities (e.g. &)  The title is not only used to display selected text in the title bar, but it is also the text used in bookmarks, and search engines rely heavily on the title as well  This tag establishes the document’s base location which serves as a reference for all pathnames and links in the document  This tag is most frequently used to link a document to an external style sheet  JavaScript and VBScript code may be added to the document within its header using this tag. All JS & VB functions should be loaded in the head of the doc  Embedded style sheets must be added in the head of the doc within the tag

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition12  Wiley and the book authors, 2002 Background graphics The background attribute of the tag can be used to add images that display behind the content of your web page Any web-based graphic file (e.g. GIF or JPEG) can be used A few simple rules regarding using background graphics are:  Use a graphic that won’t interfere with the legibility of the text  Keep file sizes small  Provide a bgcolor attribute which closely matches the dominant color of your image  Save other images in the same file format if you want them to be able to blend into the background graphic  Non-web-safe colors are displayed differently with background images than they are with other images making it difficult to match inline images to the background

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition13  Wiley and the book authors, 2002 Adjusting browser margins By default, browsers insert a margin of pixels between the edge of the browser window and the document’s contents Although HTML 4.01 does not provide a method for changing these margins (CSS is used, instead), IE & Netscape have their own proprietary attributes for the tag  IE uses the leftmargin, rightmargin, topmargin, and bottommargin to specify pixel widths for the respective margins in the browser window  Netscape uses marginwidth and marginheight To set margins for both browsers, it is necessary to duplicate attributes To turn off margins for both browsers:

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition14  Wiley and the book authors, 2002 Using tags The tag has a wide variety of applications, but is primarily used to include information about a document The data contained in the tag is useful for servers, web browsers, and search engines but is invisible to the reader Information provided by an http-equiv attribute is processed as though it had come from an http response header which the server passes to the browser just before it sends the HTML document  Meta tags for “client pull” are used to automatically request a new document from the server. The result is that the page displays, and after a period f time, automatically refreshes with new information or is replaced by a new page  will reload the current file after about 15 seconds  will replace the current file with the one specified by the URL

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition15  Wiley and the book authors, 2002 Using tags (cont.)  indicates that the current file will expire at the specified date and time (used to delete expired files from caches and search engine indexes)  is used to include the character set for the document causing the browser to load the appropriate character set before displaying the page  is used to identify the language in which the document is written causing The name attribute is used to insert hidden information about the document that does not correspond to http headers You can make up your own meta names or use one of the names put forth by search engine and browser companies for standardized use

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition16  Wiley and the book authors, 2002 Using tags (cont.)  provides a brief, plain-language description of the contents of your web page. Some search engines will use the description to display in the search results listing your site  supplements the title and description of the document with a list of comma-separated keywords used to index your document  identifies the author of the web page  identifies copyright information for the document  will presumably prevent your page from being indexed by search engines  indicates the content rating of the web page. Ratings can be general, mature, restricted, and 14 years