HTML5 & CSS 8 th Edition. Chapter 3 Enhancing a Website with Links and Images

Similar documents
BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

CSE 3. Marking Up with HTML. Tags for Bold, Italic, and underline. Structuring Documents. An HTML Web Page File

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

04 Links & Images. 1 The Anchor Tag. 1.1 Hyperlinks

Lesson Review Answers

Using Adobe Dreamweaver CS4 (10.0)

Chapter 10: Multimedia and the Web

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

QUESTION BANK COMPUTER SCIENCE. Class VIII LESSON-1 INTRODUCTION TO MS ACCESS

File types There are certain image file types that can be used in a web page. They are:

ICE: HTML, CSS, and Validation

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Introduction to XHTML. 2010, Robert K. Moniot 1

WEB DEVELOPMENT IMMERSIVE HTML & WEB FUNDAMENTALS

Adobe Dreamweaver Exam Objectives

Fortis Theme. User Guide. v Magento theme by Infortis. Copyright 2012 Infortis

ICT 6012: Web Programming

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

KFUPM. Web Content Management System powered by SharePoint

How to Manage Your Eservice Center Knowledge Base

HTML, CSS, XML, and XSL

Creating Web Pages with Microsoft FrontPage

JISIS and Web Technologies

Website Planning Checklist

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Making Content Editable. Create re-usable templates with total control over the sections you can (and more importantly can't) change.

GKG3013 Web Design. Jong Sze Joon& Auzani Zeda Mohamed Kassim Faculty of Applied and Creative Arts Universiti Malaysia Sarawak

Contents. Launching FrontPage Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame...

Saving work in the CMS Edit an existing page Create a new page Create a side bar section... 4

Adding a CareCredit link to your practice website can help increase its ranking in online search engines like Google

Designing HTML s for Use in the Advanced Editor

KOMPOZER Web Design Software

Online Visa Photo Upload Process

Microsoft Expression Web

Client Admin Site Adding/Editing Content Under Site Builder/Site Navigation Tutorial by Commerce Promote

Advanced Drupal Features and Techniques

Web Design and Development Program (WDD)

USER GUIDE. Unit 4: Schoolwires Editor. Chapter 1: Editor

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

IAS Web Development using Dreamweaver CS4

A Basic Summary of Image Formats

BLACKBOARD 9.1: Text Editor

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Learning Web Design. Third Edition. A Beginner's Guide to (X)HTML, Style Sheets, and Web Graphics. Jennifer Niederst Robbins

Introduction to Web Design Curriculum Sample

Web Authoring CSS. Module Descriptor

CREATING WEB PAGES USING HTML INTRODUCTION

Short notes on webpage programming languages

MMGD0203 Multimedia Design MMGD0203 MULTIMEDIA DESIGN. Chapter 3 Graphics and Animations

Taking your HTML s to the Next Level. Presented by: Joey Trogdon, Asst. Director of Financial Aid & Veterans Affairs Randolph Community College

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Course Duration: One hour Theory and 3 hours practical per week for 15weeks. As taught in 2010/2011 Session

WORDPRESS MANUAL WEBSITEDESIGN.CO.ZA

Links. Blog. Great Images for Papers and Presentations 5/24/2011. Overview. Find help for entire process Quick link Theses and Dissertations

Talking: Web. Web design is the hardest thing you will ever do in life. At least when you do it for the first time. Home Page. Talking: Resources

Adobe Illustrator CS6. Illustrating Innovative Web Design

Fireworks 3 Animation and Rollovers

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Dreamweaver. Introduction to Editing Web Pages

How to Build a SharePoint Website

COMMON CUSTOMIZATIONS

Fireworks for Graphics and Images

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 2

Accessibility in e-learning. Accessible Content Authoring Practices

DREAMWEAVER BASICS. A guide to updating Faculty websites Created by the Advancement & Marketing Unit

WebCT 4.x: HTML Editor

ebooks: Exporting EPUB files from Adobe InDesign

How to Create a Mobile Responsive Template in ExactTarget

Appendix H: Cascading Style Sheets (CSS)

Web Development I & II*

Web Development 1 A4 Project Description Web Architecture

Joomla! 2.5.x Training Manual

The McGill Knowledge Base. Last Updated: August 19, 2014

How to Edit Your Website

WEB DEVELOPMENT IA & IB (893 & 894)

Create a Web Page with Dreamweaver

Introduction to Drupal

PASTPERFECT-ONLINE DESIGN GUIDE

NURSING 3225 NURSING INQUIRY WEB SITE DEVELOPMENT GUIDE BOOK

MAKE IT PRETTY.» a few web design basics to keep your site looking swell. food allergy blogger conference november 2013

Creating Web Pages With Dreamweaver MX 2004

Embedding a Data View dynamic report into an existing web-page

TUTORIAL 4 Building a Navigation Bar with Fireworks

To change title of module, click on settings

Schoolwires Staff Website Reference Guide

Web Authoring. Module Descriptor

Access Your Content Management System 3. What To Find On Your Content Management System Home Page 5

How To Add The WebReserv Booking Calendar To Your Facebook Page

Basic tutorial for Dreamweaver CS5

HTML. A computer network is a collection of computers linked through cables or wireless means.

Scanning and OCR Basics

Educational Technology Department IT Master Plan Training Modules. Notes for Internet (Web Design & Publishing)

Have you seen the new TAMUG websites?

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

Transcription:

HTML5 & CSS 8 th Edition Chapter 3 Enhancing a Website with Links and Images

Chapter Objectives 1. Describe types of hyperlinks 2. Create relative links, absolute links, email links, and telephone links 3. Describe image file formats 4. Describe the image tag and its attributes 5. Add images to a website 6. Explain div elements and attributes Chapter 3: Creating Web Pages with Links, Images 2

Chapter Objectives 7. Use a div element to mark a page division 8. Define the class attribute 9. Describe and use HTML heading tags 10.Describe the types of lists in an HTML document 11.Create an unordered list and a description list 12.Test and validate links on a webpage Chapter 3: Creating Web Pages with Links, Images 3

Topics 1. Introduction 2. Project Add Links and Images to a Website 3. Adding Links to a Webpage 4. Adding Images to a Website 5. Exploring div Elements 6. Adding Headings and Lists 7. Summary Chapter 3: Creating Web Pages with Links, Images 4

3. Adding Links to a Webpage Hyperlink It is a link on a webpage that allows users to navigate a website and move from one page to another Link It is text, an image, or other webpage content that visitors tap or click to instruct the browser to go to a location in a file Text link When text is coded as a hyperlink, it appears as underlined text in a color (default is blue) different from the rest of the webpage text Text link is also known as hypertext link Chapter 3: Creating Web Pages with Links, Images 5

3. Adding Links to a Webpage Image link It is used to indicate an image as a link and some websites display a border around the image Chapter 3: Enhancing a Website with Links and Images 6

3.1 Anchor element It is used to create a hyperlink on a webpage The <a> and </a> are the start and the end tags Include the href attribute in the starting anchor tag to identify the webpage, email address, file, telephone number, or other content to access The value of the href attribute is the content for a link Name= value Chapter 3: Creating Web Pages with Links, Images 7

3.2 Relative Links Relative Links are hyperlinks that links to other webpages within the same website They are created by using an anchor tag with an href attribute that designates a) the file name of the webpage or b) the path and the file name of the webpage Chapter 3: Creating Web Pages with Links, Images 8

3.2 Relative link The Figure 3-2 shows an example of a relative link Chapter 3: Creating Web Pages with Links, Images 9

3.3 Absolute link It is a hyperlink that links to other webpages outside of a website It is created using an anchor element with an href attribute that designates a website URL Chapter 3: Creating Web Pages with Links, Images 10

3.3 Absolute link The Figure 3-3 shows an example of an absolute link Chapter 3: Enhancing a Website with Links and Images 11

3.4 Image link Images can be used to link to another page within the site, another website, an email address, or a telephone number Chapter 3: Enhancing a Website with Links and Images 12

3.5 Email link It is a hyperlink that links to an email address Use anchor elements to link to an email address by including the href attribute followed by "mailto:" and then the email address Chapter 3: Creating Web Pages with Links, Images 13

3.5 Email link The Figure 3-5 shows an example of an email link Chapter 3: Enhancing a Website with Links and Images 14

3.6 Telephone link It is a hyperlink that links to a telephone number Use an anchor element to link to a telephone number by including the href attribute, followed by "tel:+1number" where +1 is the international dialing prefix and number is the phone number Chapter 3: Creating Web Pages with Links, Images 15

3.6 Telephone link The Figure 3-7 shows an example of a telephone link Chapter 3: Enhancing a Website with Links and Images 16

4. Adding Images to a Website Images include photos, drawings, diagrams, charts, and other graphics that convey visual information Images should support the purpose of the webpage or illustrate the content Chapter 3: Creating Web Pages with Links, Images 17

4.1 Image File Formats Image files are created in several formats such as: Graphics Interchange Format (GIF) It supports transparency and frame animation o Lossless compression To compress an image, GIF uses this technique to maintain the file s color information ogif is suitable for icons and line drawing but not high quality pictures Portable Network Graphics (PNG) It supports transparency, but not animation Chapter 3: Creating Web Pages with Links, Images 18

4.1 Image File Formats Joint Photographic Experts Group (JPG or JPEG) It is a standard file format for digital photos o Lossy compression To reduce file size, this technique is used to discard some of the color information in the image Scalable Vector Graphics (SVG) It is a format that uses markup language to create two-dimensional graphics, images, and animations http://snapsvg.io/demos/ Chapter 3: Enhancing a Website with Links and Images 19

4.1 Image File Formats Chapter 3: Creating Web Pages with Links, Images 20

4.2 Image Dimensions and File Size Pixel It is the smallest element of light or color on a device displaying images (Picture Element) The common resolution for laptops is 1366 x 768 pixels The disadvantage of an image with a high resolution is that it also has a large file size Use graphic or photo editors to optimize an image with a large file size to reduce its file size and load time Chapter 3: Creating Web Pages with Links, Images 21

4.3 Image Tag and Its Attributes <img> The image tag is an empty HTML tag used to add an image to a webpage The image tag includes attributes such as: src It identifies the image file being inserted alt It specifies alternate text in case the image cannot be displayed in a browser height It defines the height of an image in pixels width It defines the width of an image in pixels Chapter 3: Creating Web Pages with Links, Images 22

4.3 Image Tag and Its Attributes Chapter 3: Creating Web Pages with Links, Images 23

4.3 Image Tag and Its Attributes The Figure 3-34 shows an example of an image tag with attributes Chapter 3: Creating Web Pages with Links, Images 24

BREAK Break Chapter 3: Enhancing a Website with Links and Images 25

5. Exploring div elements div element defines an area or a division in a webpage It uses the <div> and </div> tags It can be used within the main element to further divide the primary content area into separate sections Chapter 3: Creating Web Pages with Links, Images 26

5.1 Div elements The Figure 3-41 shows a wireframe with four div elements inside the main element Chapter 3: Creating Web Pages with Links, Images 27

5.2 div attributes div elements have attributes that provide information about the element The id is a div attribute which identifies a unique area on a webpage and distinguishes it from other page divisions <div id= quotes ></div> Chapter 3: Creating Web Pages with Links, Images 28

5.2 div attributes The Figure 3-43 shows the revised wireframe with the div element and id attribute value defined as container Chapter 3: Creating Web Pages with Links, Images 29

5.3 Class Attributes A class attribute name can be applied to more than one div or other HTML element on a webpage The Figure 3-48 shows an example of a class attribute used within an image tag Chapter 3: Enhancing a Website with Links and Images 30

6. Adding Headings and Lists Heading elements They provide a title or heading before a paragraph of text or section of a page Heading levels There are 6 levels of headings, with level 1 being the most important and level 6 the least Chapter 3: Creating Web Pages with Links, Images 31

6. Adding Headings and Lists List It structures text into an itemized format The different types of lists are: Unordered list It displays each item of information in no specific sequence The <ul> and </ul> are the start and end tags for an unordered list <li> and </li> are the start and end list item tags Chapter 3: Creating Web Pages with Links, Images 32

6. Adding Headings and Lists The following code creates a bulleted list of two items: <ul> <li>first item</li> <li>second item</li> </ul> Chapter 3: Enhancing a Website with Links and Images 33

6. Adding Headings and Lists Ordered list It displays information in a series using numbers or letters The <ol> and </ol> are the start and end tags for an ordered list <li> and </li> are the start and end list item tags The following code creates a numbered list of two items: <ol> <li>first item</li> <li>second item</li> </ol> Chapter 3: Enhancing a Website with Links and Images 34

6. Adding Headings and Lists The Figure 3-50 shows a webpage with an unordered and an ordered list Chapter 3: Creating Web Pages with Links, Images 35

6. Adding Headings and Lists A description list contains terms and descriptions The <dl> and </dl> are the start and end tags for a description list Each term is marked within a pair of <dt> and </dt> tags Each description or definition is marked between a pair of <dd> and </dd> tags Chapter 3: Enhancing a Website with Links and Images 36

6. Adding Headings and Lists The following code creates a description list of two terms and definitions: <dl> </dl> <dt>first term</dt> <dd>first definition</dd> <dt>second term</dt> <dd>second definition part 1</dd> <dd>second definition part 2</dd> Chapter 3: Enhancing a Website with Links and Images 37

6. Adding Headings and Lists The Figure 3-51 shows an example of a description list Chapter 3: Creating Web Pages with Links, Images 38

7. To Validate Webpages Perform the following steps to validate an HTML document: Open a browser and type http://validator.w3.org/ in the address bar to display the W3C validator page Tap or click the Validate by File Upload tab to display the Validate by File Upload tab information Tap or click the Check button to send the document through the validator and display the validation results page Chapter 3: Enhancing a Website with Links and Images 39

7. To Validate Webpages Correct the errors if any, save the changes, and run the file through the validator again to revalidate the page Perform the above steps to validate HTML pages and correct any errors Close the browser, and then close the HTML text editor Chapter 3: Enhancing a Website with Links and Images 40

7. To Validate Webpages Chapter 3: Enhancing a Website with Links and Images 41

HTML 8 th Edition Chapter 3 Enhancing a Website with Links and Images