Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.

Slides:



Advertisements
Similar presentations
3.02D HTML Overview 3.02 Develop webpages.
Advertisements

Working with Images and HTML
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Links and Comments.
XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
1 XHTML continued Use the anchor tag to link from page to pageUse the anchor tag to link from page to page Create absolute and relative linksCreate absolute.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Marking Up With Html: A Hypertext Markup Language Primer
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
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.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
HTML Links and Anchors.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
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.
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.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
HTML Overview Part 4 – Tables 1. HTML Tables  Tables are defined with the tag pair.  A table is divided into rows with tag pairs. o tr stands for "table.
Web Design (5) Navigation (1). Creating a new website called ‘Navigation’ In Windows Explorer, open the folder “CU3A Web Design Group”; and then the sub-folder.
HTML PROJECT #3 Project 3 Creating Web Pages with Links, Images, and Formatted Text.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
1 Background and Text Links CGS3066 Rory J. De Simone.
XHTML Louise Soe updated September 2009.
F-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
What is Markup and Markup Languages? What is HTML? A Basic HTML Document Basic HTML Tags Tag Attributes and Text Formatting Tags Insert Hyperlinks Add.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
1 Web Developer Foundations: Using XHTML Chapter 3 XHTML Hyperlinks and Tables.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
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.
Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
HTML Lesson 3 Hyper Text Markup Language. Assignment Part 2  Set the file name as “FirstName2.htm”  Set the title as “FirstName LastName First Web Site”
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.
1 Review of HTML Elements. 2 The tag These tags are marked as comments in HTML. Any text between these two comment tags will.
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 6 Links. 3 Parts of Links 1. Destination: defines what happens when a user clicks the link. 2. Label: this is the text (or possibly an image)
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
REEM ALMOTIRI Information Technology Department Majmaah University.
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
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.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
Lecture 8 Introduction to Web Programming. Announcement  First In-class exam will be on Oct. 10 (Wednesday)  2.50pm – 4.05pm  Exam will cover all materials.
TNPW1 Ing. Jiří Štěpánek.  Tags  Marks for elements ▪ Pair ▪ Start and end tag ( Paragraph text ) ▪ Single ▪ Only start tag, according to XHTML 1.0.
HTML Basics.
HTML basics
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Hosted by Coach Slanina
COMPUTING FUNDAMENTALS
Computers and Scientific Thinking David Reed, Creighton University
Creating a Web Page Using HTML
Basic HTML and Embed Codes
Pertemuan 1b
Lesson 4: Hyperlinks.
Introduction to HTML.
Pertemuan 1 Desain web Pertemuan 1
Hyperlinks, Images, Comments, and More…
Presentation transcript:

Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border

Links One of the features of web pages is the ability to display links to other web pages. In web terminology, links in a web page are referred to hyperlinks. Hyperlinks can be in the form of text (normally underlined to indicate a link). These links are to other existing web pages. Hyperlinks can also be in the form of images. In this example, a link can be used to send to web page author…

Links A hyperlink is a relationship between two anchors. An anchor tag is used to define how the anchors are related to create the link. There are different ways to link: External Link Link to a file Link to a specific location in a file (like a bookmark) Internal Link Link to a specific Location within the current file  Link Other Web page Link Other Web Page bookmark Web Page Link bookmark

Links Anchors At one end of the hyperlink is the source ( “tail”) anchor and at the other end of the hyperlink is the destination (or “head) anchor. The source (tail) anchor appears as the link you point and click The destination (head) anchor is either another web page or a bookmark in the web page (external link) or another bookmark in the same web page.

Links  External Text Hyperlink A text hyperlink is underlined text that when clicked, will take you to another place in that document or page, to an entirely new document or page or send an message. XHTML Code:  Q-107 Radio Result:  Q-107 Radio Q-107 Radio The anchor tag attribute href (hypertext reference) is used in this example to describe the URL to view when the hypertext link is clicked or “activated”

Links  External Image Hyperlink  An image hyperlink is an image that when clicked, will take you to another place in that document or page, to an entirely new document or page, or send an message. XHTML Code:  Result: The image tag will make web browser display image when becomes the link. Clicking image will link to URL described in the hypertext reference.

Links Additional Link Types External Link with bookmark eg. Note: in order to create this internal link, you must use similar anchor reference in destination web page before the part that deals with “keyword” i.e. Internal Link (bookmark) Same as with example above, but web page filename not required, and other anchor tag with name attribute must occur before the part that deals with “keyword” eg.

Images The use of images may make your web page more attractive to visitors. The tag is a non-empty tag that instructs the web browser how to display the image. Various attributes for the tag are used to provide a location to load the image, provide information regarding the image when the image is loading, as well as format the image in terms of size (width and height) and borders.

Images  src attribute The src attribute of the tag indicates the image location to display. The image location can be specified by a pathname relative to web page file’s location (relative pathname) or a URL (absolute pathname). eg.  Note: the minimum required attributes for the tag are src and alt (the alt attribute is discussed in the next slide)

Images  alt attribute The alt attribute (alternative name), is what shows up in place of the picture, if the picture fails to load or if the visitor has turned “loading images” off. The alternative name is just a brief summary of what the picture is, so if the picture does fail to load, the visitor can still tell what it is supposed to be eg. 

Images width and height attribute If you specify the height and width attributes, the browser uses them to reserve a place for the image on the page, and loads any text and other page elements instead of waiting for the image to load. eg.

Images align attribute The align attribute sets the alignment of the image. The default alignment of an image (in not specified) is left. You can assign the values of right and center to right-align and center align the image respectively. Notice the “American” spelling of center (i.e not centre which is the Canadian spelling – this won’t work) eg.

Images border attribute By default a border may appear around an image that is used in a link (i.e. an active image). You can remove borders to display an active image by assigning the border attribute a value of zero. eg You can increase the thickness of the border around an active image by assigning a larger value to the border attribute eg