Site Development Foundations © 2004 ProsoftTraining All rights reserved.

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

Iframes & Images Using HTML.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Web Development & Design Foundations with XHTML Chapter 4 Key Concepts.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Tutorial 3 – Designing a Web Page Working with Color & Graphics Mrs. Wilson.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Marking Up With Html: A Hypertext Markup Language Primer
Creating the pages Part Five Graphics. File Format Basics You can currently use only three image file formats on the Web: GIF, JPG, and PNG. A new format,
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Web Graphics Image File Formats Image optimization Accessibility issues Using images and colors on the web.
HTML Boot Camp: Rules and Images
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 4: Horizontal Rules and Graphical Elements © 2007 Prosoft Learning Corporation All rights.
IT Introduction to Website Development Welcome!
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by, Stephanie Ludi, Rochester Institute of Technology—NY Basic Web Page Construction Graphics.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
XHTML Louise Soe updated September 2009.
Exploring Office 2003 – Grauer and Barber Enhancing the Web Page Chapter 3 BCIS 1405 Session 15.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 3.
XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government.
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.
IT Foundations of Web Design Welcome!. Welcome to Unit 5! Site Definition, Templates and Images.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 4 Key Concepts.
Adding Images Learning Web Design: Chapter 7. Using an Image Images have many purposed on a Web site Used as a static image To add illustration: ex. A.
1 Using HTML and JavaScript to Develop Websites. Using Images.
HTML tags Some popular ones. Paragraph: separated by a single line of white space Line break NOTE: no end tag is used for this tag Headlines ( through.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
Macromedia Dreamweaver 8 Revealed AND GRAPHICS WORKING WITH TEXT.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
The Web Wizard’s Guide to HTML Chapter Three Colors, Patterns, and Inline Graphics.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
Kevin Murphy Images and Web Pages Masters Project CS 490.
Introduction to Programming the WWW I CMSC Winter 2004 Lecture 3.
ECA 228 Internet/Intranet Design I HTML Tags. ECA 228 Internet/Intranet Design I anchor tags Adds a link to the web page Anything placed between the anchor.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 02: Enhancing the Web Page.
CNIT 131 Graphics.
Marking Up with XHTML Tags describe how a web page should look
Hosted by Coach Slanina
Chapter 1: Introduction to XHTML (part 1)
Chapter 4 - Introduction to XHTML: Part 1
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5 7th Edition
Font tag and its attributes
Introduction to HTML II
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML- Basics
Tutorial 3 Working with Cascading Style Sheets
Attribute of heading, <p> and <hr> tag
Attribute of heading, <p> and <hr> tag
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
Attribute of heading, <p> and <hr> tag
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Site Development Foundations © 2004 ProsoftTraining All rights reserved

Lesson 4: Horizontal Rules and Graphical Elements

Objectives Add horizontal rules to your pages Add horizontal rules to your pages Incorporate image files as stand-alone graphics Incorporate image files as stand-alone graphics Use the Web-safe color palette Use the Web-safe color palette Use colors and tiled images for page backgrounds Use colors and tiled images for page backgrounds Add special characters to XHTML pages Add special characters to XHTML pages Structure your XHTML document using the tag and CSS Structure your XHTML document using the tag and CSS

Horizontal Rules in XHTML Create a horizontal rule using the tag: Create a horizontal rule using the tag: Horizontal Rules Horizontal rules: Lines used to make visual divisions in your document. Horizontal Rules Horizontal rules: Lines used to make visual divisions in your document. Horizontal rule attributes

Images in Web Pages Use the tag to insert an image file using either of two formats to close the tag: Use the tag to insert an image file using either of two formats to close the tag: Image file formats Image file formats Graphics Interchange Format (GIF)Graphics Interchange Format (GIF) Joint Photographic Experts Group (JPEG)Joint Photographic Experts Group (JPEG) Portable Network Graphics (PNG)Portable Network Graphics (PNG)

Comparing Image File Formats FormatTransparencyInterlacingCompressionAnimation GIF Yes JPEG (standard) No YesNo PNG Yes

Images and the alt Attribute In XHTML, every image must follow good coding practice by including the alt attribute with a corresponding value In XHTML, every image must follow good coding practice by including the alt attribute with a corresponding value Code will not validate as XHTML without this attribute Code will not validate as XHTML without this attribute Browsers and screen-reader technology can read alt description and render it in audio for disabled users Browsers and screen-reader technology can read alt description and render it in audio for disabled users

Combining Background Images and Colors The bgcolor attribute: The bgcolor attribute: Specifies background colorsSpecifies background colors The background attribute: The background attribute: Inserts an image as a backgroundInserts an image as a background If you use both the bgcolor and background attributes in a tag, then only the attribute specified last in the tag will render If you use both the bgcolor and background attributes in a tag, then only the attribute specified last in the tag will render

Aligning Images Relative to Text The align attribute positions images relative to text The align attribute positions images relative to text Values include: Values include: “bottom”“bottom” “middle”“middle” “top”“top” “left”“left” “right”“right” The align attribute has been deprecated in favor of style sheets, but can still be used; code will still validate as XHTML 1.0 Transitional The align attribute has been deprecated in favor of style sheets, but can still be used; code will still validate as XHTML 1.0 Transitional

Resizing Images Specify image size using the following attributes: Specify image size using the following attributes: heightheight widthwidth The syntax for these attributes is: The syntax for these attributes is: <img src="imagename.gif" height=“NumberOfPixels“ width=“NumberOfPixels"/> Specifying both height and width can distort an image; be sure to use proper proportions Specifying both height and width can distort an image; be sure to use proper proportions

Special Characters Uses code with ampersand (&) and semicolon (;) Uses code with ampersand (&) and semicolon (;) Special characters include: Special characters include: The “less than” symbol <The “less than” symbol < Code: < Code: < The “greater than” symbol >The “greater than” symbol > Code: > Code: > The copyright sign ©The copyright sign © Code: © or © Code: © or © The registered trademark sign ®The registered trademark sign ® Code: ® or ® Code: ® or ® The United Kingdom pound sterling sign: £The United Kingdom pound sterling sign: £ Code: £ Code: £ Non-breaking space: Non-breaking space:

Specifying Colors Colors can be specified by name or by Hexadecimal “Red Green Blue (RGB)” value Colors can be specified by name or by Hexadecimal “Red Green Blue (RGB)” value

Web-Safe Color Palette A set of 216 colors guaranteed to render properly A set of 216 colors guaranteed to render properly Ensures that colors in pages render as expected Ensures that colors in pages render as expected If you specify a color not supported by the monitor or operating system, the system will approximate the color, a process called ditheringIf you specify a color not supported by the monitor or operating system, the system will approximate the color, a process called dithering Unexpected results may occur as the result of ditheringUnexpected results may occur as the result of dithering

Page Colors and Backgrounds Specifying page colors: Specifying page colors: Specifying text color on the page: Specifying text color on the page: Specifying color of unvisited links: Specifying color of unvisited links: Specifying color of visited links: Specifying color of visited links: Providing a background image: Providing a background image:

Specifying Font Information You can use the tag You can use the tag The size attribute: specify value “1” through “7”The size attribute: specify value “1” through “7” The face attribute: specify font type (e.g., Arial, Times New Roman)The face attribute: specify font type (e.g., Arial, Times New Roman) The tag is deprecated The tag is deprecated The W3C recommends to use style sheets instead The W3C recommends to use style sheets instead

Web Design Issues Color combinations Color combinations Popular color combinationsPopular color combinations Consider existing sites Consider existing sites Habitat for Humanity ( for Humanity ( Microsoft ( ( Red Hat ( Hat ( Cultural and audience concerns Cultural and audience concerns Page layoutPage layout Layout guidelines Layout guidelines Document structure, the tag and style sheets Document structure, the tag and style sheets Relative path names Relative path names White space, the tag and XHTML White space, the tag and XHTML