SlideShare a Scribd company logo
1 of 27
Unit 1: Web Fundamentals
Lesson 4: History and Future of the Web
August 20, 2013
Lesson 4: History and Future of the Web
2
Introduction
to HTML
Learning to
Use HTML
HTML and
Email
History and
Future of the
Web
HTML and
Forms
Search
Engine
Optimization
Learning to
Use CSS
Introduction
to CSS
Reusing
Code
3 Ways to
Use CSS
Separation of
Concerns
Launching
Your Own
Website
Lesson 1 Lesson 2 Lesson 3 Lesson 4
Lesson 8 Lesson 7 Lesson 6 Lesson 5
Lesson 9 Lesson 10 Lesson 11 Lesson 12
Build understanding Develop skills
Recap from last time (I)
• HTML is important – not only is it used to create websites, but it also
allows us to send email
• While both websites and email are made to look pretty on the
outside, they are actually created with some HTML code
3
Website Email
HTML
Recap from last time (II)
• The way email works is similar to the way websites load
4
Thanks Andy!
iamandy@gmail.com
federererer@yahoo.com
Gmail
server
Hotmail
server
Yahoo
server
AOL
server
DNS
The World Wide Web
• Webpages connect to other webpages using links
• Millions of websites link to each other, creating a rich web of content
• That’s why the internet is called the World Wide Web (WWW)
5
HTML tags (I)
• Start and end tags are used in HTML to label sections of code
• Tags are words surrounded by angle brackets, <>, that tell the
browser what kind of content to expect
• So start tags will look like <tag>, while end tags will look like </tag>
6
HTML tags (II)
• Start and end tags are used in HTML to label sections of code
• Tags are words surrounded by angle brackets, <>, that tell the
browser what kind of content to expect
• So start tags will look like <tag>, while end tags will look like </tag>
• A couple examples:
• <title>A Tale of Two Cities</title> is a title
• <p>It was the best of times, it was the worst of times</p>
7
is a paragraph
It wasn’t always like this…
• Before images and video appeared, there were only text links
• These text links are created in HTML using <a> tags (a for anchor)
8
See the <a> tags?
Then <img> came along
• The <img> tag was a BIG deal – it allowed images to become links
of their own!
• Clicking the image takes a user to a new webpage
9
Here’s the <img> tag
…
What if you want users to stay on the page?
• The problem with using links is that users will need to leave to go to
another website
• To allow them to view content without leaving, you can embed
content
10
Video can be viewed
directly on the page
Now with embedding possible, websites began
adding all kinds of exciting content
11
Embedded videos
<video> tag
Embedded music
<audio> tag
Embedded flash
<embed> tag
Even embedded webpages!
<iframe> tag
Let’s learn to embed content ourselves (I)
1. Open your Chrome browser and go to www.youtube.com
12
Let’s learn to embed content ourselves (II)
2. When you find a video you like, click ‘Share’ and then ‘Embed’
13
First click here
Then click here
Let’s learn to embed content ourselves (III)
3. Copy the HTML code you see beneath ‘Embed’
14
Copy this code
Let’s learn to embed content ourselves (IV)
4. If on a PC, open a new file in Notepad. If on a Mac, open TextEdit
15
MacPC
Let’s learn to embed content ourselves (V)
• If on a Mac, and you haven’t already
done so, go to ‘TextEdit’’Preferences’
16
• Select ‘Plain text’
• Close the dialog box and open a new
file by going to ‘File’’New’
Let’s learn to embed content ourselves (VI)
6. Paste the code in the new file, and add ‘http:’ right before
‘//www.youtube.com’ (this is a glitch in YouTube!)
17
MacPC
Add ‘http:’
Let’s learn to embed content ourselves (VII)
7. Now go to ‘File’’Save’
18
MacPC
Let’s learn to embed content ourselves (VIII)
8. Name the file ‘baaaa.html’ and hit ‘Save’.
19
MacPC
‘baaaa.html’
Let’s learn to embed content ourselves (IX)
9. Open your Chrome browser. Go to ‘File’’Open File’.
20
MacPC
Let’s learn to embed content ourselves (X)
10. Locate your file and click ‘Open’.
21
MacPC
Let’s learn to embed content ourselves (XI)
11. Not bad!
22
This address will look
different for you
What’s in store for the future? (I)
• Embedding media is pretty complicated now
• The HTML code needed to embed is too long and complex:
23
<iframe width="560" height="315" src=”http://www.youtube.com/embed/-
bayV3wez50" frameborder="0" allowfullscreen></iframe>
What’s in store for the future? (II)
• What if we could use our own, custom tags?
• <img> and <audio> are boring. Use <gangnam-style>!
24
Summary (I)
• The World Wide Web was created by allowing webpages to link to
one another
• Tags such as <img>, <video>, and <audio> have enabled users to
view content
• Embedding allows users to view content without leaving a webpage
25
A webpage A webpage embedded
within a webpage
Summary (II)
• It’s not hard to embed content into your own HTML page
• Websites such as YouTube will often provide code for you to copy
and paste into your page
• In the future, websites will be able to invent their own tags!
26
<iframe width="560" height="315" src=”http://www.youtube.com/embed/-
bayV3wez50" frameborder="0" allowfullscreen></iframe>
YouTube-provided HTML code
What to do on your own
1. Go to URL to complete the Codecademy course online
2. Do the practice set on the material learned
1. Take the follow-up quiz to test your understanding
27

More Related Content

What's hot

Lesson 110 24 aug13-1400-ay
Lesson 110 24 aug13-1400-ayLesson 110 24 aug13-1400-ay
Lesson 110 24 aug13-1400-ay
Codecademy Ren
 
Lesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ayLesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ay
Codecademy Ren
 
Lesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ayLesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ay
Codecademy Ren
 
Slides(1) june entre
Slides(1) june entreSlides(1) june entre
Slides(1) june entre
EntreMT2012
 
Personal learning environments and portals
Personal learning environments and portalsPersonal learning environments and portals
Personal learning environments and portals
Matthew Mobbs
 
My site won't load in the sitebuilder
My site won't load in the sitebuilderMy site won't load in the sitebuilder
My site won't load in the sitebuilder
Yolaclass
 

What's hot (18)

Lesson 110 24 aug13-1400-ay
Lesson 110 24 aug13-1400-ayLesson 110 24 aug13-1400-ay
Lesson 110 24 aug13-1400-ay
 
Lesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ayLesson 109 23 aug13-1430-ay
Lesson 109 23 aug13-1430-ay
 
Gmail
GmailGmail
Gmail
 
Lesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ayLesson 206 11 oct13-1500-ay
Lesson 206 11 oct13-1500-ay
 
Slides(1) june entre
Slides(1) june entreSlides(1) june entre
Slides(1) june entre
 
Basics of web
Basics of webBasics of web
Basics of web
 
Html complete course | Lec -1 | what is html
Html complete course | Lec -1 | what is htmlHtml complete course | Lec -1 | what is html
Html complete course | Lec -1 | what is html
 
Personal learning environments and portals
Personal learning environments and portalsPersonal learning environments and portals
Personal learning environments and portals
 
Getting started with HTML & CSS
Getting started with HTML & CSSGetting started with HTML & CSS
Getting started with HTML & CSS
 
Beginners WordPress JALC Lesson 2
Beginners WordPress JALC Lesson 2Beginners WordPress JALC Lesson 2
Beginners WordPress JALC Lesson 2
 
Creating Webquests
Creating WebquestsCreating Webquests
Creating Webquests
 
My site won't load in the sitebuilder
My site won't load in the sitebuilderMy site won't load in the sitebuilder
My site won't load in the sitebuilder
 
Chapter1
Chapter1Chapter1
Chapter1
 
INLS461_day14a.ppt
INLS461_day14a.pptINLS461_day14a.ppt
INLS461_day14a.ppt
 
Leran html
Leran htmlLeran html
Leran html
 
OpenID Intro @ Barcamp Brussels 3
OpenID Intro @ Barcamp Brussels 3OpenID Intro @ Barcamp Brussels 3
OpenID Intro @ Barcamp Brussels 3
 
Chapter14
Chapter14Chapter14
Chapter14
 
HTML standards
HTML standardsHTML standards
HTML standards
 

Similar to Lesson 104 23 aug13-1430-ay

Lesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayLesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ay
Codecademy Ren
 
Lesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayLesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ay
Codecademy Ren
 
Lesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ayLesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ay
Codecademy Ren
 
Spirit-teknologiapäivät Petri Niemi HTML5 & JavaScript Developereille
Spirit-teknologiapäivät Petri Niemi HTML5 & JavaScript DevelopereilleSpirit-teknologiapäivät Petri Niemi HTML5 & JavaScript Developereille
Spirit-teknologiapäivät Petri Niemi HTML5 & JavaScript Developereille
Tieturi Oy
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Siva Rushi
 
Drupal is not your Website
Drupal is not your Website Drupal is not your Website
Drupal is not your Website
Phase2
 

Similar to Lesson 104 23 aug13-1430-ay (20)

Lesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ayLesson 112 24 aug13-2300-ay
Lesson 112 24 aug13-2300-ay
 
Lesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ayLesson 111 24 aug13-1430-ay
Lesson 111 24 aug13-1430-ay
 
Lesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ayLesson 108 23 aug13-1430-ay
Lesson 108 23 aug13-1430-ay
 
Open Apereo - Web components workshop
Open Apereo - Web components workshopOpen Apereo - Web components workshop
Open Apereo - Web components workshop
 
HTML5_3.ppt
HTML5_3.pptHTML5_3.ppt
HTML5_3.ppt
 
Make your first webpage
Make your first webpageMake your first webpage
Make your first webpage
 
Spirit-teknologiapäivät Petri Niemi HTML5 & JavaScript Developereille
Spirit-teknologiapäivät Petri Niemi HTML5 & JavaScript DevelopereilleSpirit-teknologiapäivät Petri Niemi HTML5 & JavaScript Developereille
Spirit-teknologiapäivät Petri Niemi HTML5 & JavaScript Developereille
 
Html5
Html5Html5
Html5
 
CMWP, the technical lecture
CMWP, the technical lectureCMWP, the technical lecture
CMWP, the technical lecture
 
Html5 with SharePoint 2010
Html5 with SharePoint 2010Html5 with SharePoint 2010
Html5 with SharePoint 2010
 
BASICS OF WEB DESIGNING AND DEVELOPMENT
BASICS OF WEB DESIGNING AND DEVELOPMENTBASICS OF WEB DESIGNING AND DEVELOPMENT
BASICS OF WEB DESIGNING AND DEVELOPMENT
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Upload stuff on your webpage
Upload stuff on your webpageUpload stuff on your webpage
Upload stuff on your webpage
 
Weebly Web Site Accessories for Teachers
Weebly Web Site Accessories for TeachersWeebly Web Site Accessories for Teachers
Weebly Web Site Accessories for Teachers
 
Blogging in the classroom
Blogging in the classroomBlogging in the classroom
Blogging in the classroom
 
Drupal is not your Website
Drupal is not your Website Drupal is not your Website
Drupal is not your Website
 
10 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 201610 things you can do to speed up your web app today 2016
10 things you can do to speed up your web app today 2016
 
DW Unit 1.pdf
DW Unit 1.pdfDW Unit 1.pdf
DW Unit 1.pdf
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Easy computer for bds12 website review
Easy computer for bds12 website reviewEasy computer for bds12 website review
Easy computer for bds12 website review
 

More from Codecademy Ren

Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ay
Codecademy Ren
 
Lesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayLesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ay
Codecademy Ren
 
Lesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayLesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ay
Codecademy Ren
 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ay
Codecademy Ren
 
Lesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ayLesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ay
Codecademy Ren
 
Lesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayLesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ay
Codecademy Ren
 
Lesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayLesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ay
Codecademy Ren
 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ay
Codecademy Ren
 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ay
Codecademy Ren
 

More from Codecademy Ren (9)

Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ay
 
Lesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ayLesson 303 05 jan14-1500-ay
Lesson 303 05 jan14-1500-ay
 
Lesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayLesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ay
 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ay
 
Lesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ayLesson 207 19 oct13-1500-ay
Lesson 207 19 oct13-1500-ay
 
Lesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ayLesson 205 07 oct13-1500-ay
Lesson 205 07 oct13-1500-ay
 
Lesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ayLesson 204 03 oct13-1500-ay
Lesson 204 03 oct13-1500-ay
 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ay
 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ay
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Lesson 104 23 aug13-1430-ay

  • 1. Unit 1: Web Fundamentals Lesson 4: History and Future of the Web August 20, 2013
  • 2. Lesson 4: History and Future of the Web 2 Introduction to HTML Learning to Use HTML HTML and Email History and Future of the Web HTML and Forms Search Engine Optimization Learning to Use CSS Introduction to CSS Reusing Code 3 Ways to Use CSS Separation of Concerns Launching Your Own Website Lesson 1 Lesson 2 Lesson 3 Lesson 4 Lesson 8 Lesson 7 Lesson 6 Lesson 5 Lesson 9 Lesson 10 Lesson 11 Lesson 12 Build understanding Develop skills
  • 3. Recap from last time (I) • HTML is important – not only is it used to create websites, but it also allows us to send email • While both websites and email are made to look pretty on the outside, they are actually created with some HTML code 3 Website Email HTML
  • 4. Recap from last time (II) • The way email works is similar to the way websites load 4 Thanks Andy! iamandy@gmail.com federererer@yahoo.com Gmail server Hotmail server Yahoo server AOL server DNS
  • 5. The World Wide Web • Webpages connect to other webpages using links • Millions of websites link to each other, creating a rich web of content • That’s why the internet is called the World Wide Web (WWW) 5
  • 6. HTML tags (I) • Start and end tags are used in HTML to label sections of code • Tags are words surrounded by angle brackets, <>, that tell the browser what kind of content to expect • So start tags will look like <tag>, while end tags will look like </tag> 6
  • 7. HTML tags (II) • Start and end tags are used in HTML to label sections of code • Tags are words surrounded by angle brackets, <>, that tell the browser what kind of content to expect • So start tags will look like <tag>, while end tags will look like </tag> • A couple examples: • <title>A Tale of Two Cities</title> is a title • <p>It was the best of times, it was the worst of times</p> 7 is a paragraph
  • 8. It wasn’t always like this… • Before images and video appeared, there were only text links • These text links are created in HTML using <a> tags (a for anchor) 8 See the <a> tags?
  • 9. Then <img> came along • The <img> tag was a BIG deal – it allowed images to become links of their own! • Clicking the image takes a user to a new webpage 9 Here’s the <img> tag …
  • 10. What if you want users to stay on the page? • The problem with using links is that users will need to leave to go to another website • To allow them to view content without leaving, you can embed content 10 Video can be viewed directly on the page
  • 11. Now with embedding possible, websites began adding all kinds of exciting content 11 Embedded videos <video> tag Embedded music <audio> tag Embedded flash <embed> tag Even embedded webpages! <iframe> tag
  • 12. Let’s learn to embed content ourselves (I) 1. Open your Chrome browser and go to www.youtube.com 12
  • 13. Let’s learn to embed content ourselves (II) 2. When you find a video you like, click ‘Share’ and then ‘Embed’ 13 First click here Then click here
  • 14. Let’s learn to embed content ourselves (III) 3. Copy the HTML code you see beneath ‘Embed’ 14 Copy this code
  • 15. Let’s learn to embed content ourselves (IV) 4. If on a PC, open a new file in Notepad. If on a Mac, open TextEdit 15 MacPC
  • 16. Let’s learn to embed content ourselves (V) • If on a Mac, and you haven’t already done so, go to ‘TextEdit’’Preferences’ 16 • Select ‘Plain text’ • Close the dialog box and open a new file by going to ‘File’’New’
  • 17. Let’s learn to embed content ourselves (VI) 6. Paste the code in the new file, and add ‘http:’ right before ‘//www.youtube.com’ (this is a glitch in YouTube!) 17 MacPC Add ‘http:’
  • 18. Let’s learn to embed content ourselves (VII) 7. Now go to ‘File’’Save’ 18 MacPC
  • 19. Let’s learn to embed content ourselves (VIII) 8. Name the file ‘baaaa.html’ and hit ‘Save’. 19 MacPC ‘baaaa.html’
  • 20. Let’s learn to embed content ourselves (IX) 9. Open your Chrome browser. Go to ‘File’’Open File’. 20 MacPC
  • 21. Let’s learn to embed content ourselves (X) 10. Locate your file and click ‘Open’. 21 MacPC
  • 22. Let’s learn to embed content ourselves (XI) 11. Not bad! 22 This address will look different for you
  • 23. What’s in store for the future? (I) • Embedding media is pretty complicated now • The HTML code needed to embed is too long and complex: 23 <iframe width="560" height="315" src=”http://www.youtube.com/embed/- bayV3wez50" frameborder="0" allowfullscreen></iframe>
  • 24. What’s in store for the future? (II) • What if we could use our own, custom tags? • <img> and <audio> are boring. Use <gangnam-style>! 24
  • 25. Summary (I) • The World Wide Web was created by allowing webpages to link to one another • Tags such as <img>, <video>, and <audio> have enabled users to view content • Embedding allows users to view content without leaving a webpage 25 A webpage A webpage embedded within a webpage
  • 26. Summary (II) • It’s not hard to embed content into your own HTML page • Websites such as YouTube will often provide code for you to copy and paste into your page • In the future, websites will be able to invent their own tags! 26 <iframe width="560" height="315" src=”http://www.youtube.com/embed/- bayV3wez50" frameborder="0" allowfullscreen></iframe> YouTube-provided HTML code
  • 27. What to do on your own 1. Go to URL to complete the Codecademy course online 2. Do the practice set on the material learned 1. Take the follow-up quiz to test your understanding 27