HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.

Slides:



Advertisements
Similar presentations
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
Advertisements

Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links
Relative and Absolute Relative Absolute.  In web-page design, a hyperlink (or link) is a reference to a document that the reader can directly follow,
Links and Comments.
New Perspectives on Creating Web Pages with HTML
HTML Introduction (cont.) 10/01/ Lecture 8, MAT 279, Fall 2009.
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.
Web Structure Create Links Using HTML. 2 Objectives List different types of Web site structures and how to employ them Create element ids to mark specific.
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
Announcement #1 1 Lecture 9. Announcement #2  Midterm exam will be on Oct. 12 (Tuesday)  pm – 1.45 pm  Exam will cover all materials till Oct.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Shows the entire path to the file, including the scheme, server name, the complete path, and the file name itself. Same idea of stating your full name,
CNIT 132 – Week 3 HTML (2). Working with Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down. A.
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 Essentials HyperText. Why HyperText ? Hypertext is text or pictures which reference other pages which the reader can immediately access Hypertext.
Mohammed Mohsen Links Links are what make the World Wide Web web-like one document on the Web can link to several other documents, and those.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
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.
XP 1 New Perspectives on Creating Web Pages with HTML Adding Hypertext Links to a Web Page.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
XHTML Louise Soe updated September 2009.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 2 1 New Perspectives on Creating Web Pages With HTML Tutorial 2: Adding Hypertext Links to.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
Creating Links – Lesson 31 Creating Links Lesson 3.
INTRODUCTORY Tutorial 6 Using Links on a Web Page.
Tutorial 2 Developing a Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
Tutorial 3 Adding and Formatting Text with CSS Styles.
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 Links HTML uses a hyperlink to another document on the Web.
Links Building a Website Lesson 5. Links There are various ways to use links on a website: Link to other sites Link to other pages on the same site .
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.
© ExplorNet’s Centers for Quality Teaching and Learning 1 Objective % Understand advanced production methods for web-based digital media.
CIS 228 The Internet Day 4, 9/8/11 Getting on the Internet.
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.
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
Hyperlinks Links for Other Pages. Hyperlink (aka Link) Text (or image) user can click Takes user to different location In general, location can be: On.
Internet & World Wide Web How to Program, 5/e 1. 2.
HTML Links CS 1150 Spring 2017.
4.01 How Web Pages Work.
HTML Basics.
4.01 How Web Pages Work.
Objective % Select and utilize tools to design and develop websites.
Links and Comments in HTML5
Developing a Basic Web Site
Creating Links – Lesson 3
Links and Comments.
LINKS.
Objective % Select and utilize tools to design and develop websites.
Unit F Inserting and Working with Links.
Inserting and Working with Links
CNIT 131 HTML5 – Anchor/Link.
Links and Comments.
Tutorial 6 Creating Dynamic Pages
HTML Introduction Lecture 8.
Links and Comments.
Links and Comments.
4.01 How Web Pages Work.
HTML Links CS 1150 Fall 2016.
4.01 How Web Pages Work.
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links

Objectives Understand links Create relative links Create absolute links Style links with CSS pseudo-classes HTML 5 and CSS 3 – Illustrated Complete 2

Objectives Open links in new windows or tabs Link to anchors Create a link to a document Increase navigational accessibility HTML 5 and CSS 3 – Illustrated Complete 3

Understanding Links Hypertext: links in and between text-only documents   Currently can be created on any visible Web page element   Gives users options for more information HTML 5 and CSS 3 – Illustrated Complete 4

Understanding Links a element: “anchor” tag serves as a hyperlink (“link”) Example: Google href attribute: used to specify target document HTML 5 and CSS 3 – Illustrated Complete 5

Understanding Links Navigation bar: set of links for moving between pages in a Web site   Usually at top of page   Sometimes additional links at bottom HTML 5 and CSS 3 – Illustrated Complete 6

Understanding Links Uniform Resource Identifier (URI): format for specifying how and where to find an online resource (Also known as a URL)   Scheme   Server name   Path HTML 5 and CSS 3 – Illustrated Complete 7

Understanding Links Structure of URI and common values of href attribute HTML 5 and CSS 3 – Illustrated Complete 8

Creating Absolute Links Absolute link: full and complete address for the target document   Value for the href attribute is a complete URI of the target Web page   Necessary when creating a link to another Web site, hosted on another server HTML 5 and CSS 3 – Illustrated Complete 9

Creating Absolute Links HTML 5 and CSS 3 – Illustrated Complete 10

Creating Relative Links Relative link: path and filename are specified   Linked files must be in the same folder The value of the href attribute only includes “relative location information” Does not include server or scheme HTML 5 and CSS 3 – Illustrated Complete 11

Creating Relative Links HTML 5 and CSS 3 – Illustrated Complete 12

Noticing Links Browser colors indicate links to the user Can use CSS to change colors HTML 5 and CSS 3 – Illustrated Complete 13

CSS Pseudo-Classes Links can be in any of four different states:   link   active   hover   visited HTML 5 and CSS 3 – Illustrated Complete 14

CSS Pseudo-Classes HTML 5 and CSS 3 – Illustrated Complete 15 Pseudo-class: the “look” of the link at a given state

Opening Links in New Windows or Tabs By default, target Web page opens in the same window and tab as source page   Prevents opening too many windows In certain situations, you want to leave current page open while opening another page   Use target attribute of a element   Set value to be “_blank” HTML 5 and CSS 3 – Illustrated Complete 16

Opening Links in New Windows or Tabs (continued) Code including target attribute HTML 5 and CSS 3 – Illustrated Complete 17

Linking to Anchors Anchors: named locations within the current document Create links to anchors within the current Web page   Assign unique names to elements using the HTML id attribute   Reference within href attribute by preceding the anchor with a pound sign (#) HTML 5 and CSS 3 – Illustrated Complete 18

Linking to Anchors HTML 5 and CSS 3 – Illustrated Complete 19 Code containing anchor values and links to anchors

Linking to a.pdf Document Sometimes it is useful to create a link to a document that is not a Web page   e.g., link to brochure in PDF Can create link to any type of computer-readable document   Specify the document as the value of the href attribute HTML 5 and CSS 3 – Illustrated Complete 20

Linking to a.pdf Document HTML 5 and CSS 3 – Illustrated Complete 21 Code for creating link to a PDF document

Increasing Navigational Accessibility Nav bars sometimes present accessibility challenges   Users limited in sight use screen readers Possible solutions:   Skip link: anchor to main page content Allows skipping nav bar   nav element: semantic element surrounding nav bar Allows screen reader to distinguish nav bar May need to be included as a script HTML 5 and CSS 3 – Illustrated Complete 22

Increasing Navigational Accessibility (continued) HTML 5 and CSS 3 – Illustrated Complete 23 Code for skip link

Summary Hypertext provides links in and between documents Links are defined using the a element   href attribute specifies location of target document A navigation bar is a set of links for moving between Web pages Absolute link: complete address of target document HTML 5 and CSS 3 – Illustrated Complete 24

Summary (continued) Relative link: path/filename information needed to locate target document Pseudo-class: categorization of web page elements based on temporary condition   Used to format links with CSS Target Web page can be opened in different window or tab using target attribute of the a element HTML 5 and CSS 3 – Illustrated Complete 25

Summary (continued) Anchors are links to locations in the current Web page   Created using id attribute   id preceded by # in href value You can create a link to any computer readable document To increase accessibility, provide users a way to skip or ignore the navigation bar HTML 5 and CSS 3 – Illustrated Complete 26