Essentials of HTML Class 3 Instructor: Jeanne Hart

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Advertisements

Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Iframes & Images Using HTML.
Teppo Räisänen LIIKE/OAMK 2010
Introduction to HTML Lists, Images, and Links. Before We Begin Save another file in Notepad Save another file in Notepad Open your HTML, then do File>Save.
Links and Comments.
CIS101 Introduction to Computing Week 06. Agenda Your questions Resume project HTML Project Two This week online Next class.
Intro to HTML Workshop. Welcome This slideshow presentation is designed to introduce you to the basics of HTML. It is the first of three HTML workshops.
CIS101 Introduction to Computing HTML Project Two.
Assignment 1 Pointers ● Be sure to use all tags properly – Don't use a tag for something it wasn't designed for – Ex. Do not use heading tags... for regular.
CIS101 Introduction to Computing Week 06. Agenda Your questions Resume project HTML Project Two This week online Next class.
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.
Designing Web Pages Getting to know HTML... What is HTML? Hyper Text Markup Language HTML is the major language of the Internet’s World Wide Web. Web.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Essentials of HTML Class 3 Instructor: Jeanne Hart
Creating and Editing a Web Page
Adding Images & Working with Images Unit 2. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date:08/10/2009 Period : Summary: To display Art To display Photographs.
Essentials of HTML Instructor: Jeanne Hart. Your Instructor  I have been designing web sites for almost 20 years.  I worked as a part of a Web Team.
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
Unit E. Image Measurements The size of an image can be measured 2 ways: Dimensions: the height and width, measured in pixels. File Size: measured in Kilobytes.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Chapter 4 Adding Images. Chapter 4 Lessons Introduction 1.Insert and align images 2.Enhance an image and use alternate text 3.Insert a background image.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Enhancing Your Web Site. More Basic HTML Tags Today you will learn these tags: & add-on (alt, height, width & align) and “href” add-on Add a text link.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
Understanding Web Sites. What is a Web Site A collection of Web pages which you can view on the Internet Contains text, graphics, sound, and video to.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Creating Web Pages with Links, Images, and Formatted Text
Enhancing Your Web Site—Adding Links Web Page **YOU MUST HAVE COMPLETED THE 1ST 3 WEB PAGES BEFORE YOU CAN DO THIS ONE. **YOU SHOULD HAVE COMPLETED THE.
Unit 3 Day 6 FOCS – Web Design. Journal Unit #3 Entry #4 Write the source code that would make the following display on a rendered page: Shopping List.
Dreamweaver CS4 Concepts and Techniques Chapter 2 Adding Web Pages, Links, and Images.
HTML: Hyptertext Markup Language Doman’s Sections.
Project 2 Web Page Design Creating and Editing a Web Page Pages
Unit 12 Additional Evidence catelyn. 1.1 I can describe what types of information are needed. For the business card, I included the name of the company.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
XHTML Hyperlinks. Creating Links to Other Web Pages A link, or hyperlink, is a specially formatted Web page object that the user can click to open a different.
Notes Chapter 10—Adding Graphics. There are two kinds of graphics on the Internet: those you can use on your own Web pages, and those you cannot.  Many.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Links in HTML What you need to know….. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another.
HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html.
HTML Links HTML uses a hyperlink to another document on the Web.
Images. Intro What is it? Getting your image Inserting Moving Resizing Cropping.
1 Start TextEdit. 2 Creating a Home Page  A home page is the main page of a Web site –Visitors usually view the home page first –Identify the purpose.
Summary Slide Printing Handouts Animations Slide Transitions Animate text Hyperlinks Action Buttons Adding sound to your PowerPoint presentationAdding.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
REEM ALMOTIRI Information Technology Department Majmaah University.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
Introduction to HTML Dave Edsall IAGenWeb County Coordinator’s Conference June 30, 2007.
ENHANCE YOUR WEBSITE. HOW TO INSERT COLOR??? USE THE TAG: GO TO PICK COLOR WANT BY POINTING: THEN USE THE HEX NUMBER.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 4.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
CS7026: Authoring for Digital Media HTML Authoring
Chapter 3 Images.
Windows Internet Explorer 7-Illustrated Essentials
Creating a Web Site with Links
Exploring the Internet
Presentation transcript:

Essentials of HTML Class 3 Instructor: Jeanne Hart

Linking Text and Documents In this lesson, you will learn how to use HTML's most valuable feature: hyperlinks.

Linking Text and Documents What Is a URL? You can find the URL for any resource in the Address box (or Location box) of your browser.

URL con’t That address is known as a Uniform Resource Locator, or URL. Before you can link to another page (or resource), you have to know its address. You can find the URL for any resource in the Address box (or Location box) of your browser.

Caution Although URL is the commonly accepted term to describe the location of Internet resources, a new term, URI (Uniform Resource Identifier), will likely replace it as HTML 5 becomes the standard.

Anchors The tag (called an anchor) is used to define hyperlinks. Unlike most other HTML tags, the tag requires an attribute. When you use the tag, you must specify whether you want the enclosed text to link to someplace (with the tag) or be linked from someplace (with the tag).

Hyperlinks The easiest link to learn is the hyperlink to another location. The tag with the HRef attribute and its closing tag,, surround any text that you want to highlight. The default hyperlink highlighting in HTML is underlined blue text.

Linking to other Files and You can link to more than just other people's Web sites. You can use the same href attribute to link to addresses, or for other pages of your own Web site. The hyperlink to point to another file second.htm, for example, is shown in the following code. In this example, the second.htm file is stored in the same directory as the page linking to it.

Linking con’t Please click here to open my second Web page. If, however, my second.htm file was stored in another directory (for example, the Links directory), the hyperlink would need to include the directory name too, as in the following: Please click here to open my other page.

Tip Did you know that you can force your hyperlink to open a new browser window? This is especially handy if you want to link to someone else's Web site without directing traffic away from your own site.

Tip con’t Use the target="_blank" attribute, as in the following example. Click here to open a related Web site.

Linking to an You also can link to an address by using the mailto prefix, as shown in the following code line. When you click on the words click here, an window that enables you to type your message to Mickey Mouse appears. Click here to send mail to Mickey.

Linking within the same page HTML enables you to use hyperlinks to point to a specific spot (or anchor) in an HTML document, instead of just pointing to the entire document.

Linking within the same page As an example, suppose that you have a list of headlines at the top of your HTML document that points to a more complete article at the bottom of your document. This is easy in HTML. Remember that anchor tags come with attributes: href, and name

Caution The W3C is calling for the use of a new attribute for the tag (called id) to replace the name attribute. The smart thing to do (to make sure that you comply with the new standard when it is released) is to use both attributes in your documents. To avoid problems, use the same value for both attributes, for example, if name="dogs" then id="dogs" as well.

Tip When naming anchors, remember to keep the names short and not to use spaces. These aren't HTML requirements, but they are considered “best Practice” and following these guidelines certainly makes linking easier.

Linking to an anchor in another page Creating a hyperlink to an anchor in another page requires only one more element: the URL. As you learned before, you can link to an anchor in a file on your own Web site, or you can link to a known anchor in a file on another Web site. The keyword in that sentence is known. You can't link to a specific spot on a file unless that spot is already recognized by the Web browser as a named anchor.

Summary In this lesson, you've learned: Anchor tags come with three attributes: href (which links to someplace), and name (which link from someplace). You can copy the URL of any Web page from your browser and paste it between the quotes of the href attribute in your tag. The same href attribute links to addresses, to other pages of your own Web site, or even to other files on your own computer.

Using Images/Graphics In this lesson, you'll learn how to add another element to your Web pages with graphics or images.

Using Graphics Adding images - If the Web were nothing but text, it would still be technologically impressive, but it wouldn't be nearly as much fun. Adding images to your pages is easy; adding images that make your Web pages look professional just takes a little know- how.

Images/Graphics con’t The two most frequently used graphics file formats found on the Web are GIF and JPEG. The Joint Photographic Experts Group (JPEG) format is used primarily for realistic, photographic-quality images. The Graphics Interface Format (GIF) is used for almost everything else.

Images/Graphics con’t One new file format is gaining popularity among designers and will soon be making its presence known: The Portable Network Graphics format (PNG) is expected to replace the GIF format someday. Don't rush out to replace all your graphics, however; not all browsers support it fully yet.

Sound like a pro learn how to pronounce the graphic formats you use. GIF is pronounced "jif" (like the peanut butter), JPEG is pronounced "jay-peg," and PNG is pronounced "ping."

Images con’t You add all images by using a single HTML tag, the image source tag,.

The img src tag You probably recognize that this tag is actually an tag with an attribute (src) and attribute value (location), but because all images require a src attribute, it's easier to refer to it as a single tag. You'll also notice that the image tag does not have a corresponding closing tag. It is a single tag and you'll need to remember to add the closing slash at the end: and yes there is a space.

Images con’t First Images This is an image in my first Web page.

Alternate Text When browsing the Web, you might have noticed that many times when you move your mouse pointer over an image, you see a text pop-up that describes the image, or tells you something more about the area of the Web site that image represents. This doesn’t always work in IE 8 or higher

Alt Attribute Tag This sets the alternate text for a graphic. It was named alt because it describes the text some people would see as an alternative to the image that others would see.

Alt attribute tag con’t While the alt attribute is one of the most important attributes (because it should be used every time you use the tag), it pays to remember a simple guideline: Make sure that the text for the alt attribute is relevant to the imageanything less will frustrate your visitors.

Alt tag con’t On the subject of relevance: Be sure that your images are relevant to the text. An image of an airplane works great if you're talking about travel plans, but means nothing if you're talking about wildlife.

Alt Attribute con’t The alt attribute has another very important purpose. People who use assistive technology cannot see or view the image perhaps because the have visual problems. Many people with slower modem connections to the Web decide to customize their browser settings to ignore graphics because loading graphics into a Web browser can sometimes take a long time.

Alt tag con’t The following HTML sample shows how the alt attribute is added into the tag. Like the src attribute, the alt attribute tells the browser more information about the image. And, like the src attribute, you should always use the alt attribute with the tag.

Caution Although you should use the alt attribute whenever you use the tag, make sure that you don't specify irrelevant text. For example, there is no point in specifying alternate text for a decorative image (such as a bullet or a line); instead, specify an empty value (alt=" ").

Aligning Text and Images You can use the align attribute of the tag to force an image to appear on the left or right of a section of text..

Aligning con’t You also can use the align attribute to vertically align an image with the text. The align attribute has three more values: top, bottom, and center, which are discussed in the following list Setting the align attribute to top aligns the top of the image with the top of any surrounding text. Setting the align attribute to bottom aligns the bottom of the image with the bottom of any surrounding text. Setting the align attribute to center aligns the center of the image with the center of any surrounding text.

Caution Be sure to preview your HTML documents in the browser (or in several browsers) to make sure that you are happy with how they look before you publish them. Not all browsers treat these align attributes in the same way.

Using Images as Links Images are good for more than just looks. You can use them to provide creative hyperlinks to other documents. HTML makes this easy because using an image as a link is exactly the same as using text. You are still using the anchor tag (the tag you already learned about to surround the item you want to act as the hyperlink to another document.

Images con’t When you link from an image, the anchor tags must surround the image tag. Following is an example of the HTML you would use: When your visitors move their mouse pointers over the face image in this sample, they will see a pop-up that says, "This looks just like me!" When the visitors click on the image, they will open the doc2.htm file referenced by the anchor tag

Images con’t Another popular use of the hyperlinking capability of HTML is to link from one image to another. Why would you want to do that?

Images con’t Well, many times the image you want to display is so large that it takes longer to load into the browser than you think people would like to wait. If that's so, you can create a smaller version of the file, called a thumbnail, that will load more quickly into the browser. The visitor simply clicks the thumbnail if he wants to open the larger file.

Thumbnails Here's how it's done. As you can see, clicking the thumbnail.jpg image will open another image (large_image.jpg). The alt attribute in this sample tells the visitor how to open the larger image.

Tip Many image editor programs provide tools to help you create thumbnail images of your large graphics. You can also use standalone products, such as Cerious Software's Thumbs Plus

Image Etiquette Images are fun and colorful and easy to add to your HTML, but following are some etiquette rules to follow if you want your visitors to be happy with your site

Image Etiquette con’t The larger an image's file size, the longer it will take to load into the browser. Because most visitors to the World Wide Web still use a slow speed modem to connect from home, their time is precious.

Image Etiquette con’t If you remember that and make sure to use small images whenever possible, you'll find that your visitors are happier. Not only is the file size of the individual image important, but also is the total file size of your HTML document. The more images you addeven small imagesthe larger your file size will become.

Image Etiquette con’t Previewing your page in several browsers will help you determine how long your page will take to load in the browser. If you find the time too slow, so will your visitors.

Image Etiquette con’t You can find images all over the Internet, and saving them to your own computer for use later is easy. Just as in the publishing world, however, graphic designers can protect their images by copyright.

Image Etiquette con’t If you've found an image you like on a commercial Web site, look for a copyright notice or other legal statement that indicates whether the image is free for the taking. There are plenty of free images available on the Internet without using copyrighted material.

Tip You can copy any Web image to your own computer, as long as it isn't protected by copyright. Just right-click on the image (or hold down the mouse button if you are on a Macintosh computer) and select Save Image As from the pop-up menu. Save the file on your own computer and use it as you would any other image file.

Summary In this lesson, you've learned: The two most frequently used graphics file formats found on the Web are GIF and JPEG. JPEG is used primarily for realistic, photographic-quality images; GIF is used for almost everything else. PNG is expected replace GIF sometime in the future. All images are added to HTML documents with the image tag and the source attribute,. You can use the tag to link an image to another document. Images are part of the fun of Web pages, but they are also part of the problem; larger file sizes mean longer page load times.