SlideShare a Scribd company logo
WEEK 6:
LINKS AND
IMAGES
WEEK 6
• HTML tags can have attributes, attributes provide additional
information to the tag
• Attributes are always specified in the opening tag
• Attributes come in name/value pairs like: name=“value”
• Attribute values should always be enclosed in quotes “”
• Some HTML tags require attributes to work
REVIEW… ATTRIBUTES
HTML ATTRIBUTES: LINKS
• HTML links are defined with the <a> tag
• The link address or link destination is specified in the “href”
attribute:
• <a>This link will not work because there is no attribute
assigned</a>
• <a href=“http://www.w3schools.com”>This is a link</a>
LINKS
• The <a> tag defines a hyperlink, which is used to link from one
page to another or to another destination of your choice.
• The <a></a> tag requires both an opening and closing tag.
• The most important part when creating any link is to include
the “href” attribute, which indicates the link’s destination.
Without the “href” attribute you are not creating a link.
• “href” means “hyperlink reference”
LINKS
Any text between the opening and closing <a> tag will
become the clickable text user click on, seen in blue below:
<a href=“http://www.mohawkcollege.ca”>Link</a>
<a href=“index.html”>Homepage</a>
TYPES OF LINKS
Absolute path hyperlinks:
<a href=“http://www.facebook.com”>Facebook</a>
• Links to webpages and resources (eg. PDF) on the web
• Links outside of the site
• Must contain “http://…” so the browser knows to look on the
web for that resource
• www is not always needed… sometimes URLs will have other
text where the www is… this is called a subdomain
TYPES OF LINKS
Relative path hyperlinks:
<a href=“index.html”>My Homepage</a>
• Links to webpages and resources located within the site (siblings)
• Links to resources or files that are on the same domain
• Examples:
• mohawkcollege.ca/file
• mohawkcollege.ca/folder/file
• mohawkcollege.ca/document.pdf
• mohawkcollege.ca/image.jpg
TYPES OF LINKS
Email hyperlinks:
<a href=“mailto:info@mohawkcollege.ca”>Email Us</a>
• Must include href=“mailto: followed by the email address
• Additional attributes can be included to assign the subject link
of the email, even the contents of the email!
NEW WINDOWS/TABS
• Find it annoying when new windows open unexpectedly?
• Nearly everyone agrees that users ought to be alerted when a
link does not open in the current window or frame
• The problem?
Some users may not understand they’ve been taken to a new
window… they may try and use the back button and get
frustrated or worse – lost on a page!
• The solution?
Communicate that they’re being taken to a new window – use
an icon or a title in the link
NEW WINDOWS/TABS
How to make a link open in a new
window or tab?
• Add the attribute: target=“_blank” to the link…
<a href=“link.html” target=“_blank”>Open page in a new tab</a>
Open up Dreamweaver and we’ll practice…
IN-CLASS PRACTICE!
PRACTICE…
Create the following structure in a new html file:
<p>Linking to content and resources:</p>
<ol>
<li><a href=“about.html”>Relative Link</a>
</li>
<li><a href=“http://www.facebook.com/mohawkcollege” >Absolute Link</a>
</li>
<li><a href=“mailto:info@gmail.com”>Email Link<a>
</li>
</ol>
Remember to think like you’re listening to the content on the page…
MAKING LINKS ACCESSIBLE
ACCESSIBILITY MATTERS!
Making hypertext links accessible is one of the most
basic and important aspects of web accessibility!
• Standard hypertext links work with all technologies and platforms
and users of all abilities can access them
• But…some types of links are more accessible than others
• Inaccessible links are one of the most severe barriers to overall
accessibility
ACCESSIBILITY:
USING A KEYBOARD
Users must be able to navigate to and select each
link using the keyboard alone!
• In most browsers, the Tab key allows users to jump from link to
link, and the Enter key allows users to select a link
• If the only way to access a link is with a mouse, the link is
unusable by people who cannot use a mouse
Visit cnib.ca and try using the TAB and ENTER keys to move to another
page… Easy?
TRY IT OUT!
Visit canada.ca/en/ and try using the TAB, and arrow (< >) keys to show
the drop down navigation… Easy?
TRY IT OUT!
Visit honda.com and try using the TAB key to get to the ABOUT section
on the homepage… Easy?
TRY IT OUT!
ACCESSIBILITY:
SCREEN READERS
• Most screen readers say "link" before each link – so links don’t
need the word “link” in the link text
• For example, a Products link would be read as "link
products”
• Screen reader users often navigate from link to link, skipping
the text in between
• This is done by using keyboard shortcuts
• Tabbing from link to link is a way of skimming web content,
especially if the user is looking for a link on a page
ACCESSIBILITY:
SCREEN READERS
• Links with no context such as “Click Here” are not useful
• Add context to the link text
• BAD: Click here for the arena schedule
• GOOD: View the arena schedule
• Place the distinguishing information of links at the beginning of
a link.
• Users can choose to listen to all links from a-z
• Use familiar phrases whenever possible
• Eg. Contact Us is better than You can can contact us
ACCESSIBILITY:
LONG VS. SHORT LINKS
Long:
• Be long enough to convey the purpose of the link but no longer
• Screen reader users cannot visually skim through lengthy
links, they must listen to all text
Short:
• There is no minimum length of link text, as long as the link is
not empty
• Keep in mind that really small link areas may be difficult to click
on for some users
ACCESSIBILITY:
SUMMARY
• Always use descriptive language in links
• Create unique links, don’t use meaningless text:
eg. “Click Here”
• Be cautions about opening links in a new window
• Remember absolute, relative and email coding standards
ADDING
IMAGES
WEEK 6
Images can be used to provide branding, communicate critical
information, or make a site more visually appealing
USING IMAGES ON A SITE
WHY ARE IMAGES
IMPORTANT?
• Articles with images get 94% more total views
• Including a Photo and a video in a press release increases views by
over 45%
• 60% of consumers are more likely to consider or contact a business
when an image shows up in local search results
• In an ecommerce site, 67% of consumers say the quality of a
product image is “very important” in selecting and purchasing a
product
• In an online store, customers think that the quality of a products
image is more important than product-specific information,
descriptiond and ratings /reviews
• Engagement rate on Facebook for photos is 37% higher over text
Full background image… impactful!
USING IMAGES ON A WEB SITE
Full background image… setting a mood and feel for the site
USING IMAGES ON A WEB SITE
Large HERO images filling homepages… major trend
USING IMAGES ON A WEB SITE
Interactivity… Sliders that let you view a series of images with text
USING IMAGES ON A WEB SITE
Interactivity… using Javascript and techniques like parallax.
USING IMAGES ON A WEB SITE
ADDING IMAGES
• The <img /> tag is used to insert image into our webpages
• Image tags are similar to <br /> and <hr />, they’re “self closing”: -
the closing tag is built in
• Images require the “src” attribute that specifies the location of the
image
• Without the “src” attribute (src is a short-form of source),
your image will not work!
• Example:
<img src=“images/photo.jpg” />
ADDING IMAGES:
THE PATH
• Adding an image is very similar to adding a hyperlink
• You can add an image in a couple of ways, which include Absolute &
Relative paths
• Absolute: when the image resides OUTSITE your site
• Relative: when the image reside ON your site
Absolute path:
<img src=”http://www.mohawkcollege.ca/images/photo.jpg” />
Relative path:
<img src=”images/photo.jpg” alt=“photo” />
ADDING IMAGES:
ALT ATTRIBUTES
• Images also need the “alt” attribute
• The alt attributes provides alternative information for an image if
a user for some reason cannot view it
• Reasons an image may not be viewable:
• a slow connection
• an error in the “src” attribute
• the user uses a screen reader
• You cannot see the alternate text in the browser
Example:
<img src=”images/photo.jpg” alt=“Photo of
something” />
ADDING IMAGES:
LINKING IMAGES
• All images on a webpage can be used as a link
• Now that we know how to code both, creating an image link is easy, we just need to put
everything in the correct order. Just as text in between HTML is being described as something,
so can images
• Make sure to include all relevant “attributes” in order for the image and link to work correctly:
• “href” for links
• “src” for images
• The first part to any image link is the links itself:
<a href=“http://www.facebook.com” title=“Facebook”>
• The second part to any image link is the image
<img src=“images/fblogo” alt=“Facebook Logo” />
• The third part to any image link is the closing link tag
</a>
• Example:
<a href=“http://www.facebook.com” title=“Facebook”><img src=“images/
fblogo” alt=“Facebook Logo” /></a>
ADDING IMAGES:
LINKING IMAGES
1. The first part to any image link is the links itself:
<a href=“http://www.facebook.com” title=“Facebook”>
2. The second part to any image link is the image:
<img src=“images/fblogo” alt=“Facebook Logo” />
3. The third part to any image link is the closing link tag:
</a>
ADDING IMAGES:
LINKING IMAGES
Put it all together:
<a href=“http://www.facebook.com”
title=“Facebook”><img src=“images/
fblogo” alt=“Facebook Logo” /></a>
This logo would now be a clickable
link to Facebook
Let’s try inserting some images… open up eLearn and Dreamweaver!
IN-CLASS DEMO!

More Related Content

What's hot

HTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTMLHTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTML
Grayzon Gonzales, LPT
 
BASICS OF HTML
BASICS OF HTMLBASICS OF HTML
BASICS OF HTML
Sasemohan C
 
HTML5
HTML5 HTML5
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
NYCSS Meetup
 
Lesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTMLLesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTML
Olivia Moran
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
Marlon Jamera
 
HTML Bootcamp
HTML BootcampHTML Bootcamp
HTML Bootcamp
marie_newell
 
The beauty behind ebooks: CSS - ebookcraft 2015 - Iris Febres
The beauty behind ebooks: CSS - ebookcraft 2015 - Iris FebresThe beauty behind ebooks: CSS - ebookcraft 2015 - Iris Febres
The beauty behind ebooks: CSS - ebookcraft 2015 - Iris Febres
BookNet Canada
 
HTML Lesson 1
HTML Lesson 1HTML Lesson 1
HTML Lesson 1
Danny Ambrosio
 
HTML 5 Tutorial
HTML 5 TutorialHTML 5 Tutorial
HTML 5 Tutorial
Tahasin Chowdhury
 
Html basics
Html basicsHtml basics
Html basics
Veronica Alejandro
 
Lecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block BuildingLecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block Building
Mubashir Ali
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
Castro Chapter 3
Castro Chapter 3Castro Chapter 3
Castro Chapter 3Jeff Byrnes
 
Intro to HTML
Intro to HTMLIntro to HTML
Basic HTML Tutorial For Beginners
Basic HTML Tutorial For BeginnersBasic HTML Tutorial For Beginners
Basic HTML Tutorial For Beginners
DHTMLExtreme
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
Singsys Pte Ltd
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
Florian Letsch
 

What's hot (20)

Web development basics
Web development basicsWeb development basics
Web development basics
 
HTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTMLHTML Start Up - Introduction to HTML
HTML Start Up - Introduction to HTML
 
BASICS OF HTML
BASICS OF HTMLBASICS OF HTML
BASICS OF HTML
 
HTML5
HTML5 HTML5
HTML5
 
Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
 
Lesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTMLLesson 2: Getting To Know HTML
Lesson 2: Getting To Know HTML
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
 
HTML Bootcamp
HTML BootcampHTML Bootcamp
HTML Bootcamp
 
The beauty behind ebooks: CSS - ebookcraft 2015 - Iris Febres
The beauty behind ebooks: CSS - ebookcraft 2015 - Iris FebresThe beauty behind ebooks: CSS - ebookcraft 2015 - Iris Febres
The beauty behind ebooks: CSS - ebookcraft 2015 - Iris Febres
 
Html5
Html5Html5
Html5
 
HTML Lesson 1
HTML Lesson 1HTML Lesson 1
HTML Lesson 1
 
HTML 5 Tutorial
HTML 5 TutorialHTML 5 Tutorial
HTML 5 Tutorial
 
Html basics
Html basicsHtml basics
Html basics
 
Lecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block BuildingLecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block Building
 
GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1GDI Seattle Intro to HTML and CSS - Class 1
GDI Seattle Intro to HTML and CSS - Class 1
 
Castro Chapter 3
Castro Chapter 3Castro Chapter 3
Castro Chapter 3
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
Basic HTML Tutorial For Beginners
Basic HTML Tutorial For BeginnersBasic HTML Tutorial For Beginners
Basic HTML Tutorial For Beginners
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
 

Similar to Week 6 Lecture

Hyperlink.85 to 86
Hyperlink.85 to 86Hyperlink.85 to 86
Hyperlink.85 to 86myrajendra
 
WordPress_Workshop_Feb_2014_consolidated
WordPress_Workshop_Feb_2014_consolidatedWordPress_Workshop_Feb_2014_consolidated
WordPress_Workshop_Feb_2014_consolidatedAnvith KS
 
Blog creationguide forestview
Blog creationguide forestviewBlog creationguide forestview
Blog creationguide forestview
Nikos Stagakis
 
Castro Chapter 6
Castro Chapter 6Castro Chapter 6
Castro Chapter 6Jeff Byrnes
 
SEO Workshop - St. Edward's University Instructional Technology
SEO Workshop - St. Edward's University Instructional TechnologySEO Workshop - St. Edward's University Instructional Technology
SEO Workshop - St. Edward's University Instructional Technology
Megan Ura
 
WordPress Webinar Training Presentation
WordPress Webinar Training PresentationWordPress Webinar Training Presentation
WordPress Webinar Training Presentation
MayeCreate Design
 
Make hyperlink
Make hyperlinkMake hyperlink
Make hyperlinkalvin567
 
Link Strategies for SEO: an SEMrush webinar
Link Strategies for SEO: an SEMrush webinarLink Strategies for SEO: an SEMrush webinar
Link Strategies for SEO: an SEMrush webinar
Jake Aull
 
Web Optimization Playbook
Web Optimization PlaybookWeb Optimization Playbook
Web Optimization Playbook
mtwocomms
 
ًWebsite_development and design
ًWebsite_development and designًWebsite_development and design
ًWebsite_development and design
Maged Elsakka
 
Resistance is futile: Start writing accessible websites now!
Resistance is futile: Start writing accessible websites now!Resistance is futile: Start writing accessible websites now!
Resistance is futile: Start writing accessible websites now!
Vegard Haugstvedt
 
Web Service Creation in HTML5
Web Service Creation in HTML5Web Service Creation in HTML5
Web Service Creation in HTML5
Tero A. Laiho
 
SEO Tutorial For Beginners
SEO Tutorial For BeginnersSEO Tutorial For Beginners
SEO Tutorial For Beginners
Asna Khursheed
 
Wordcamp rochester-2017-accessibility-johnson-steigelman
Wordcamp rochester-2017-accessibility-johnson-steigelmanWordcamp rochester-2017-accessibility-johnson-steigelman
Wordcamp rochester-2017-accessibility-johnson-steigelman
H. Trevor Johnson-Steigelman
 
How To Build Accessible Websites
How To Build Accessible WebsitesHow To Build Accessible Websites
How To Build Accessible Websites
Melanie Adcock
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
Thinkful
 
Online sub-editing - extended
Online sub-editing - extendedOnline sub-editing - extended
Online sub-editing - extended
Fiona C
 
Seo basics part 3
Seo basics part 3Seo basics part 3
Seo basics part 3
Sapan Kumar Shaw
 

Similar to Week 6 Lecture (20)

Hyperlink.85 to 86
Hyperlink.85 to 86Hyperlink.85 to 86
Hyperlink.85 to 86
 
WordPress_Workshop_Feb_2014_consolidated
WordPress_Workshop_Feb_2014_consolidatedWordPress_Workshop_Feb_2014_consolidated
WordPress_Workshop_Feb_2014_consolidated
 
Blog creationguide forestview
Blog creationguide forestviewBlog creationguide forestview
Blog creationguide forestview
 
Castro Chapter 6
Castro Chapter 6Castro Chapter 6
Castro Chapter 6
 
Content Optimization
Content OptimizationContent Optimization
Content Optimization
 
SEO Workshop - St. Edward's University Instructional Technology
SEO Workshop - St. Edward's University Instructional TechnologySEO Workshop - St. Edward's University Instructional Technology
SEO Workshop - St. Edward's University Instructional Technology
 
WordPress Webinar Training Presentation
WordPress Webinar Training PresentationWordPress Webinar Training Presentation
WordPress Webinar Training Presentation
 
Make hyperlink
Make hyperlinkMake hyperlink
Make hyperlink
 
Link Strategies for SEO: an SEMrush webinar
Link Strategies for SEO: an SEMrush webinarLink Strategies for SEO: an SEMrush webinar
Link Strategies for SEO: an SEMrush webinar
 
Web Optimization Playbook
Web Optimization PlaybookWeb Optimization Playbook
Web Optimization Playbook
 
ًWebsite_development and design
ًWebsite_development and designًWebsite_development and design
ًWebsite_development and design
 
Resistance is futile: Start writing accessible websites now!
Resistance is futile: Start writing accessible websites now!Resistance is futile: Start writing accessible websites now!
Resistance is futile: Start writing accessible websites now!
 
Web Service Creation in HTML5
Web Service Creation in HTML5Web Service Creation in HTML5
Web Service Creation in HTML5
 
SEO Tutorial For Beginners
SEO Tutorial For BeginnersSEO Tutorial For Beginners
SEO Tutorial For Beginners
 
Wordcamp rochester-2017-accessibility-johnson-steigelman
Wordcamp rochester-2017-accessibility-johnson-steigelmanWordcamp rochester-2017-accessibility-johnson-steigelman
Wordcamp rochester-2017-accessibility-johnson-steigelman
 
How To Build Accessible Websites
How To Build Accessible WebsitesHow To Build Accessible Websites
How To Build Accessible Websites
 
Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)Code &amp; design your first website (3:16)
Code &amp; design your first website (3:16)
 
Making social media work, building on line community
Making social media work, building on line communityMaking social media work, building on line community
Making social media work, building on line community
 
Online sub-editing - extended
Online sub-editing - extendedOnline sub-editing - extended
Online sub-editing - extended
 
Seo basics part 3
Seo basics part 3Seo basics part 3
Seo basics part 3
 

More from Katherine McCurdy-Lapierre, R.G.D.

Module 5 - WCM system comparison
Module 5 - WCM system comparison Module 5 - WCM system comparison
Module 5 - WCM system comparison
Katherine McCurdy-Lapierre, R.G.D.
 
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Katherine McCurdy-Lapierre, R.G.D.
 
Module 3 - Intro to Bootstrap
Module 3 - Intro to BootstrapModule 3 - Intro to Bootstrap
Module 3 - Intro to Bootstrap
Katherine McCurdy-Lapierre, R.G.D.
 
Week 4 - tablet app design
Week 4 - tablet app designWeek 4 - tablet app design
Week 4 - tablet app design
Katherine McCurdy-Lapierre, R.G.D.
 
Week 3 Lecture: Accessibility
Week 3 Lecture: AccessibilityWeek 3 Lecture: Accessibility
Week 3 Lecture: Accessibility
Katherine McCurdy-Lapierre, R.G.D.
 
Interactive Web Design 5 - Week 2 - Introduction
Interactive Web Design 5 - Week 2 -  IntroductionInteractive Web Design 5 - Week 2 -  Introduction
Interactive Web Design 5 - Week 2 - Introduction
Katherine McCurdy-Lapierre, R.G.D.
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
Katherine McCurdy-Lapierre, R.G.D.
 
Week 12 CSS Font - size
Week 12 CSS Font - sizeWeek 12 CSS Font - size
Week 12 CSS Font - size
Katherine McCurdy-Lapierre, R.G.D.
 
Week 12 CSS Font - family
Week 12 CSS Font - familyWeek 12 CSS Font - family
Week 12 CSS Font - family
Katherine McCurdy-Lapierre, R.G.D.
 
Week11 Lecture: CSS
Week11 Lecture: CSSWeek11 Lecture: CSS

More from Katherine McCurdy-Lapierre, R.G.D. (11)

Module 5 - WCM system comparison
Module 5 - WCM system comparison Module 5 - WCM system comparison
Module 5 - WCM system comparison
 
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
Module 4 - Dreamweaver Templates (Static vs. Dynamic Content)
 
Module 3 - Intro to Bootstrap
Module 3 - Intro to BootstrapModule 3 - Intro to Bootstrap
Module 3 - Intro to Bootstrap
 
Week 4 - tablet app design
Week 4 - tablet app designWeek 4 - tablet app design
Week 4 - tablet app design
 
Week 3 Lecture: Accessibility
Week 3 Lecture: AccessibilityWeek 3 Lecture: Accessibility
Week 3 Lecture: Accessibility
 
Interactive Web Design 5 - Week 2 - Introduction
Interactive Web Design 5 - Week 2 -  IntroductionInteractive Web Design 5 - Week 2 -  Introduction
Interactive Web Design 5 - Week 2 - Introduction
 
Week 12 CSS - Review from last week
Week 12 CSS - Review from last weekWeek 12 CSS - Review from last week
Week 12 CSS - Review from last week
 
Week 12 CSS Font - size
Week 12 CSS Font - sizeWeek 12 CSS Font - size
Week 12 CSS Font - size
 
Week 12 CSS Font - family
Week 12 CSS Font - familyWeek 12 CSS Font - family
Week 12 CSS Font - family
 
Week11 Lecture: CSS
Week11 Lecture: CSSWeek11 Lecture: CSS
Week11 Lecture: CSS
 
Week 4 Lecture Accessibility
Week 4 Lecture AccessibilityWeek 4 Lecture Accessibility
Week 4 Lecture Accessibility
 

Recently uploaded

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
datarid22
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 

Recently uploaded (20)

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
kitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptxkitab khulasah nurul yaqin jilid 1 - 2.pptx
kitab khulasah nurul yaqin jilid 1 - 2.pptx
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 

Week 6 Lecture

  • 2. • HTML tags can have attributes, attributes provide additional information to the tag • Attributes are always specified in the opening tag • Attributes come in name/value pairs like: name=“value” • Attribute values should always be enclosed in quotes “” • Some HTML tags require attributes to work REVIEW… ATTRIBUTES
  • 3. HTML ATTRIBUTES: LINKS • HTML links are defined with the <a> tag • The link address or link destination is specified in the “href” attribute: • <a>This link will not work because there is no attribute assigned</a> • <a href=“http://www.w3schools.com”>This is a link</a>
  • 4. LINKS • The <a> tag defines a hyperlink, which is used to link from one page to another or to another destination of your choice. • The <a></a> tag requires both an opening and closing tag. • The most important part when creating any link is to include the “href” attribute, which indicates the link’s destination. Without the “href” attribute you are not creating a link. • “href” means “hyperlink reference”
  • 5. LINKS Any text between the opening and closing <a> tag will become the clickable text user click on, seen in blue below: <a href=“http://www.mohawkcollege.ca”>Link</a> <a href=“index.html”>Homepage</a>
  • 6. TYPES OF LINKS Absolute path hyperlinks: <a href=“http://www.facebook.com”>Facebook</a> • Links to webpages and resources (eg. PDF) on the web • Links outside of the site • Must contain “http://…” so the browser knows to look on the web for that resource • www is not always needed… sometimes URLs will have other text where the www is… this is called a subdomain
  • 7. TYPES OF LINKS Relative path hyperlinks: <a href=“index.html”>My Homepage</a> • Links to webpages and resources located within the site (siblings) • Links to resources or files that are on the same domain • Examples: • mohawkcollege.ca/file • mohawkcollege.ca/folder/file • mohawkcollege.ca/document.pdf • mohawkcollege.ca/image.jpg
  • 8. TYPES OF LINKS Email hyperlinks: <a href=“mailto:info@mohawkcollege.ca”>Email Us</a> • Must include href=“mailto: followed by the email address • Additional attributes can be included to assign the subject link of the email, even the contents of the email!
  • 9. NEW WINDOWS/TABS • Find it annoying when new windows open unexpectedly? • Nearly everyone agrees that users ought to be alerted when a link does not open in the current window or frame • The problem? Some users may not understand they’ve been taken to a new window… they may try and use the back button and get frustrated or worse – lost on a page! • The solution? Communicate that they’re being taken to a new window – use an icon or a title in the link
  • 10. NEW WINDOWS/TABS How to make a link open in a new window or tab? • Add the attribute: target=“_blank” to the link… <a href=“link.html” target=“_blank”>Open page in a new tab</a>
  • 11. Open up Dreamweaver and we’ll practice… IN-CLASS PRACTICE!
  • 12. PRACTICE… Create the following structure in a new html file: <p>Linking to content and resources:</p> <ol> <li><a href=“about.html”>Relative Link</a> </li> <li><a href=“http://www.facebook.com/mohawkcollege” >Absolute Link</a> </li> <li><a href=“mailto:info@gmail.com”>Email Link<a> </li> </ol>
  • 13. Remember to think like you’re listening to the content on the page… MAKING LINKS ACCESSIBLE
  • 14. ACCESSIBILITY MATTERS! Making hypertext links accessible is one of the most basic and important aspects of web accessibility! • Standard hypertext links work with all technologies and platforms and users of all abilities can access them • But…some types of links are more accessible than others • Inaccessible links are one of the most severe barriers to overall accessibility
  • 15. ACCESSIBILITY: USING A KEYBOARD Users must be able to navigate to and select each link using the keyboard alone! • In most browsers, the Tab key allows users to jump from link to link, and the Enter key allows users to select a link • If the only way to access a link is with a mouse, the link is unusable by people who cannot use a mouse
  • 16. Visit cnib.ca and try using the TAB and ENTER keys to move to another page… Easy? TRY IT OUT!
  • 17. Visit canada.ca/en/ and try using the TAB, and arrow (< >) keys to show the drop down navigation… Easy? TRY IT OUT!
  • 18. Visit honda.com and try using the TAB key to get to the ABOUT section on the homepage… Easy? TRY IT OUT!
  • 19. ACCESSIBILITY: SCREEN READERS • Most screen readers say "link" before each link – so links don’t need the word “link” in the link text • For example, a Products link would be read as "link products” • Screen reader users often navigate from link to link, skipping the text in between • This is done by using keyboard shortcuts • Tabbing from link to link is a way of skimming web content, especially if the user is looking for a link on a page
  • 20. ACCESSIBILITY: SCREEN READERS • Links with no context such as “Click Here” are not useful • Add context to the link text • BAD: Click here for the arena schedule • GOOD: View the arena schedule • Place the distinguishing information of links at the beginning of a link. • Users can choose to listen to all links from a-z • Use familiar phrases whenever possible • Eg. Contact Us is better than You can can contact us
  • 21. ACCESSIBILITY: LONG VS. SHORT LINKS Long: • Be long enough to convey the purpose of the link but no longer • Screen reader users cannot visually skim through lengthy links, they must listen to all text Short: • There is no minimum length of link text, as long as the link is not empty • Keep in mind that really small link areas may be difficult to click on for some users
  • 22. ACCESSIBILITY: SUMMARY • Always use descriptive language in links • Create unique links, don’t use meaningless text: eg. “Click Here” • Be cautions about opening links in a new window • Remember absolute, relative and email coding standards
  • 24. Images can be used to provide branding, communicate critical information, or make a site more visually appealing USING IMAGES ON A SITE
  • 25. WHY ARE IMAGES IMPORTANT? • Articles with images get 94% more total views • Including a Photo and a video in a press release increases views by over 45% • 60% of consumers are more likely to consider or contact a business when an image shows up in local search results • In an ecommerce site, 67% of consumers say the quality of a product image is “very important” in selecting and purchasing a product • In an online store, customers think that the quality of a products image is more important than product-specific information, descriptiond and ratings /reviews • Engagement rate on Facebook for photos is 37% higher over text
  • 26. Full background image… impactful! USING IMAGES ON A WEB SITE
  • 27. Full background image… setting a mood and feel for the site USING IMAGES ON A WEB SITE
  • 28. Large HERO images filling homepages… major trend USING IMAGES ON A WEB SITE
  • 29. Interactivity… Sliders that let you view a series of images with text USING IMAGES ON A WEB SITE
  • 30. Interactivity… using Javascript and techniques like parallax. USING IMAGES ON A WEB SITE
  • 31. ADDING IMAGES • The <img /> tag is used to insert image into our webpages • Image tags are similar to <br /> and <hr />, they’re “self closing”: - the closing tag is built in • Images require the “src” attribute that specifies the location of the image • Without the “src” attribute (src is a short-form of source), your image will not work! • Example: <img src=“images/photo.jpg” />
  • 32. ADDING IMAGES: THE PATH • Adding an image is very similar to adding a hyperlink • You can add an image in a couple of ways, which include Absolute & Relative paths • Absolute: when the image resides OUTSITE your site • Relative: when the image reside ON your site Absolute path: <img src=”http://www.mohawkcollege.ca/images/photo.jpg” /> Relative path: <img src=”images/photo.jpg” alt=“photo” />
  • 33. ADDING IMAGES: ALT ATTRIBUTES • Images also need the “alt” attribute • The alt attributes provides alternative information for an image if a user for some reason cannot view it • Reasons an image may not be viewable: • a slow connection • an error in the “src” attribute • the user uses a screen reader • You cannot see the alternate text in the browser Example: <img src=”images/photo.jpg” alt=“Photo of something” />
  • 34. ADDING IMAGES: LINKING IMAGES • All images on a webpage can be used as a link • Now that we know how to code both, creating an image link is easy, we just need to put everything in the correct order. Just as text in between HTML is being described as something, so can images • Make sure to include all relevant “attributes” in order for the image and link to work correctly: • “href” for links • “src” for images • The first part to any image link is the links itself: <a href=“http://www.facebook.com” title=“Facebook”> • The second part to any image link is the image <img src=“images/fblogo” alt=“Facebook Logo” /> • The third part to any image link is the closing link tag </a> • Example: <a href=“http://www.facebook.com” title=“Facebook”><img src=“images/ fblogo” alt=“Facebook Logo” /></a>
  • 35. ADDING IMAGES: LINKING IMAGES 1. The first part to any image link is the links itself: <a href=“http://www.facebook.com” title=“Facebook”> 2. The second part to any image link is the image: <img src=“images/fblogo” alt=“Facebook Logo” /> 3. The third part to any image link is the closing link tag: </a>
  • 36. ADDING IMAGES: LINKING IMAGES Put it all together: <a href=“http://www.facebook.com” title=“Facebook”><img src=“images/ fblogo” alt=“Facebook Logo” /></a> This logo would now be a clickable link to Facebook
  • 37. Let’s try inserting some images… open up eLearn and Dreamweaver! IN-CLASS DEMO!