SlideShare a Scribd company logo
Web 101: Intro to HTML
Outline
• What is HTML?
• Webpage Structure
• What is an Element?
• Common HTML elements
• Commenting HTML
Learning Outcomes
• Basic knowledge of Web Design using HTML
• Create a simple web page using the
fundamental HTML Elements
• Display images on a web page
• Including external web pages
• Basic page layout techniques
What is HTML?
• A markup language for describing web
documents (web pages).
• Stands for Hyper Text Markup Language
• A markup language is a set of markup tags
• HTML documents are described by HTML tags
• Each HTML tag describes different document
content
HTML Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML Tags
• Keywords (tag names) surrounded by angle
brackets:
– <tagname>content</tagname>
• Usually come in pairs like <p> and </p>
• The first tag in a pair is the start tag, the
second tag is the end tag
• The end tag is written like the start tag, but
with a slash before the tag name
Web Browsers
• Read HTML documents and display them
• The browser does not display the HTML tags
• Uses tags to determine how to display the
document
• Examples
– Chrome, IE, Firefox, Safari, Opera, Edge
HTML Page Structure
<!DOCTYPE> Declaration
• Helps the browser to display a web page
correctly.
• Different document types exist
• Browser must know both type and version.
• The doctype declaration is not case sensitive.
<!DOCTYPE html>
<!DOCTYPE HTML>
<!doctype html>
<!Doctype Html>
Common Declarations
• HTML5
– <!DOCTYPE html>
• HTML 4.01
– <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
• XHTML 1.0
– <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
HTML Versions
Version Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 2000
HTML 5 2014
What is CSS?
• Used with HTML to style the page.
• No CSS Today!
• Will be covered in the WEB 102 : Intro to CSS
Editors
• Basic Editors
– NotePad
– TextEdit
– Vim
• Power Editors
– Sublime Text
– Brackets
• Professional Editors
– Microsoft WebMatrix
– DreamWeaver
Brackets Demo
HTML Document
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Exercise 1 : Document
• Let’s start by defining the basic structure of your website.
• Create a new folder for your work called “web101”.
• Then inside this folder create a new file called
“index.html”.
• open and close a set of <html></html> tags
• Within this, create the head and body tags
• If you load this in your browser, do you see anything on the
page?
• Now inside your head tag create a <title> tag with I love
owls as your title.
• You should see that the tab bar has changed. If not, double
check your code.
Solution 1
<!DOCTYPE html>
<html>
<head>
<title>I love Owls</title>
</head>
<body>
</body>
</html>
HTML Heading
<h1>This is a heading1</h1>
<h2>This is a heading2</h2>
<h3>This is a heading3</h3>
<h4>This is a heading4</h4>
<h5>This is a heading5</h5>
<h6>This is a heading6</h6>
HTML Paragraph
• Putting content into a <p> tag will break your
text up into paragraphs.
• This helps make the content of your page
easier to read for the user.
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Exercise 2: Paragraphs
• Add a h1 heading tag, which includes the word
Owls, inside the body tag of your page.
• Add the following paragraph inside
your <body> tag, after the <h1>:
<p>
Most birds of prey sport eyes on the sides of their heads,
but the stereoscopic nature of the owl's forward-facing eyes
permits the greater
sense of depth perception necessary for low-light hunting.
</p>
HTML Links
<a href=http://www.meetup.com/learnsoftwaredevelopment>Us on Meetup</a>
• A link lets the user click through to another
webpage.
• The href attribute is used to indicate where you
want the user to go when the link is clicked
Exercise 3: Links
• Let’s add a link to the bottom of your
paragraph:
<a href="http://en.wikipedia.org/wiki/Owl">More information about
owls...</a>
HTML DIV
• A div tag lets you group elements together.
• Grouping elements is useful as we can later
style them together (e.g. giving them all the
same colour).
Exercise 4 : DIV
• Wrap your existing paragraph and link in a div
and add a new heading to it.
<div>
<h1>Owls</h1>
<p>Most birds of prey sport eyes on the sides of their heads, but the
stereoscopic nature of the owl's forward-facing eyes permits the greater
sense of depth perception necessary for low-light hunting.
<a href="http://en.wikipedia.org/wiki/Owl">More information about
owls...</a>
</p>
</div>
HTML List
• There are two types of lists that can included
on a webpage,
– ordered and unordered.
• An unordered list <ul> is defined with bullets
• An ordered list <ol> uses a numbered
sequence.
Exercise 5: Lists
• Let’s create a new <h2> then underneath list
the reasons we love owls:
<h2>Why do I like owls so much?</h2>
<ol>
<li>they are adorable</li>
<li>and lovely</li>
<li>and cuddly</li>
</ol>
HTML Images
• Images are primarily made up of three attributes
• the <img> tag
– src attribute lets the page know what image we want
to view
– alt attribute provides extra information if the image
cannot be seen on the webpage for any reason
• to see an image on the webpage we need to link
to the image
• this involves telling the webpage where it is and
what it is called.
Exercise 6: Images
• Before the main heading of the page, add a
logo image
• The src of the image points to the images
folder
• We have given it a relevant alt attribute
<img src="images/logo.png" alt=”Some logo ">
Exercise 7
• Let’s add some more images. This time, we’ll put
them in a list.
• Do this underneath the <h2>Why do I like owls so
much?</h2> heading.
<ul>
<li><img src="images/img1.jpg" alt="adorable"></li>
<li><img src="images/img2.jpg" alt="lovely"></li>
<li><img src="images/img3.jpg" alt="cuddly"></li>
</ul>
Formatting Text
• Text can be emphasised or made important.
• Use <strong> for emphasis,
• Use <em> for importance
Exercise 8: Formatting
• Let’s emphasise some of the content of your
paragraph
<p> Most birds of prey sport eyes on the
sides of their heads, but the stereoscopic
nature of the owl's forward-facing
<strong>eyes permits the greater sense of
depth perception</strong> necessary for
low-light hunting. </p>
HTML Commenting
• You can use a special kind of tag to add notes
to our page that the computer will ignore.
• Comments are particularly useful when
wanting to remind yourself, or other
programmers, how your code works.
<!-- Note to self: this is where the header goes -->
Exercise 9: Twitter Share Link
• Add a share on twitter link along with your
other sharing links
<a href="http://twitter.com/home?status=I love
HTML! via @hawkmanacademy">Share your love
HTML on twitter</a>
Questions
Resources
• HTML elements
– https://developer.mozilla.org/en/docs/Web/HTML/Element
• Special characters
– http://htmlandcssbook.com/extras/html-escape-codes
• The Bare Bones Guide to HTML
– http://werbach.com/barebones/barebones.html
• Web Design Frameworks
– Bootstrap - http://getbootstrap.com/
– Bootstrap Themes - http://wrapbootstrap.com/

More Related Content

What's hot

WordPress Theme Structure
WordPress Theme StructureWordPress Theme Structure
WordPress Theme Structure
keithdevon
 
HTML 5 Fundamental
HTML 5 FundamentalHTML 5 Fundamental
HTML 5 Fundamental
Lanh Le
 
Html lesson1 5
Html lesson1 5Html lesson1 5
Html lesson1 5
SabahtHussein
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalWordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
Chandra Prakash Thapa
 
Introduction to Custom WordPress Themeing
Introduction to Custom WordPress ThemeingIntroduction to Custom WordPress Themeing
Introduction to Custom WordPress Themeing
Jamie Schmid
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
Florian Letsch
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointSahil Gandhi
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
Abhishek Kesharwani
 
HTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ SearchcampHTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ Searchcamp
James Mills
 
HTML Semantic Tags
HTML Semantic TagsHTML Semantic Tags
HTML Semantic Tags
Bruce Kyle
 
Theme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.orgTheme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.org
ThemeHorse
 
How to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public ReleaseHow to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public Release
David Yeiser
 
A Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 MinutesA Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 Minutes
Snake Hill Web Agency
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
Abhishek Kesharwani
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
danpaquette
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
aakash choudhary
 

What's hot (20)

WordPress Theme Structure
WordPress Theme StructureWordPress Theme Structure
WordPress Theme Structure
 
HTML 5 Fundamental
HTML 5 FundamentalHTML 5 Fundamental
HTML 5 Fundamental
 
Html lesson1 5
Html lesson1 5Html lesson1 5
Html lesson1 5
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalWordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
 
Introduction to Custom WordPress Themeing
Introduction to Custom WordPress ThemeingIntroduction to Custom WordPress Themeing
Introduction to Custom WordPress Themeing
 
Html for beginners
Html for beginnersHtml for beginners
Html for beginners
 
Html5
Html5Html5
Html5
 
Basics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPointBasics of Front End Web Dev PowerPoint
Basics of Front End Web Dev PowerPoint
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
HTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ SearchcampHTML/CSS Workshop @ Searchcamp
HTML/CSS Workshop @ Searchcamp
 
Web development basics
Web development basicsWeb development basics
Web development basics
 
HTML Semantic Tags
HTML Semantic TagsHTML Semantic Tags
HTML Semantic Tags
 
Theme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.orgTheme Development: From an idea to getting approved to wordpress.org
Theme Development: From an idea to getting approved to wordpress.org
 
How to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public ReleaseHow to Prepare a WordPress Theme for Public Release
How to Prepare a WordPress Theme for Public Release
 
A Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 MinutesA Custom Drupal Theme in 40 Minutes
A Custom Drupal Theme in 40 Minutes
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Css
CssCss
Css
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 

Similar to Web 101 intro to html

Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
malrad1
 
Lecture 2 - HTML Basics
Lecture 2 - HTML BasicsLecture 2 - HTML Basics
Lecture 2 - HTML Basics
KULeuven-OnlinePublishing
 
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptxDESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
bmit1
 
Class1slides
Class1slidesClass1slides
Class1slides
Alexis Goldstein
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
Tadpole Collective
 
Unit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSSUnit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSS
abhinandankondekar2
 
Lab_Ex1.pptx
Lab_Ex1.pptxLab_Ex1.pptx
Lab_Ex1.pptx
sherrilsiddhardh
 
html
htmlhtml
html
tumetr1
 
Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25
New Tricks
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentation
alledia
 
Html part 2
Html part 2Html part 2
Html part 2
lokenra
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
LinnAlexandra
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
DenMas Hengky
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Meghan Frisco
 
The web context
The web contextThe web context
The web context
Dan Phiffer
 
Web1
Web1Web1

Similar to Web 101 intro to html (20)

Html intro
Html introHtml intro
Html intro
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Lecture 2 - HTML Basics
Lecture 2 - HTML BasicsLecture 2 - HTML Basics
Lecture 2 - HTML Basics
 
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptxDESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
 
Class1slides
Class1slidesClass1slides
Class1slides
 
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
Rd.Html
Rd.HtmlRd.Html
Rd.Html
 
Unit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSSUnit2_2024.pptx are related to PHP HTML CSS
Unit2_2024.pptx are related to PHP HTML CSS
 
Lab_Ex1.pptx
Lab_Ex1.pptxLab_Ex1.pptx
Lab_Ex1.pptx
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
html
htmlhtml
html
 
Khoa dang (kay)
Khoa dang (kay)Khoa dang (kay)
Khoa dang (kay)
 
Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25Newbies guide to customizing word press themes 25
Newbies guide to customizing word press themes 25
 
Joomla Beginner Template Presentation
Joomla Beginner Template PresentationJoomla Beginner Template Presentation
Joomla Beginner Template Presentation
 
Html part 2
Html part 2Html part 2
Html part 2
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
The web context
The web contextThe web context
The web context
 
Web1
Web1Web1
Web1
 

More from Hawkman Academy

Introduction to DevOps
Introduction to DevOpsIntroduction to DevOps
Introduction to DevOps
Hawkman Academy
 
What is the secret to great Agile leadership?
What is the secret to great Agile leadership?What is the secret to great Agile leadership?
What is the secret to great Agile leadership?
Hawkman Academy
 
Agile Retrospectives
Agile RetrospectivesAgile Retrospectives
Agile Retrospectives
Hawkman Academy
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
Hawkman Academy
 
Java 101 intro to programming with java
Java 101  intro to programming with javaJava 101  intro to programming with java
Java 101 intro to programming with java
Hawkman Academy
 
Intro to software development
Intro to software developmentIntro to software development
Intro to software development
Hawkman Academy
 
Software Testing Overview
Software Testing OverviewSoftware Testing Overview
Software Testing Overview
Hawkman Academy
 
Introduction to Agile
Introduction to AgileIntroduction to Agile
Introduction to Agile
Hawkman Academy
 
Introduction to Agile & Scrum
Introduction to Agile & ScrumIntroduction to Agile & Scrum
Introduction to Agile & Scrum
Hawkman Academy
 
Agile Requirements Discovery
Agile Requirements DiscoveryAgile Requirements Discovery
Agile Requirements Discovery
Hawkman Academy
 
Design 101 : Beyond ideation - Transforming Ideas to Software Requirements
Design 101 : Beyond ideation - Transforming Ideas to Software RequirementsDesign 101 : Beyond ideation - Transforming Ideas to Software Requirements
Design 101 : Beyond ideation - Transforming Ideas to Software Requirements
Hawkman Academy
 

More from Hawkman Academy (11)

Introduction to DevOps
Introduction to DevOpsIntroduction to DevOps
Introduction to DevOps
 
What is the secret to great Agile leadership?
What is the secret to great Agile leadership?What is the secret to great Agile leadership?
What is the secret to great Agile leadership?
 
Agile Retrospectives
Agile RetrospectivesAgile Retrospectives
Agile Retrospectives
 
C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#C# 101: Intro to Programming with C#
C# 101: Intro to Programming with C#
 
Java 101 intro to programming with java
Java 101  intro to programming with javaJava 101  intro to programming with java
Java 101 intro to programming with java
 
Intro to software development
Intro to software developmentIntro to software development
Intro to software development
 
Software Testing Overview
Software Testing OverviewSoftware Testing Overview
Software Testing Overview
 
Introduction to Agile
Introduction to AgileIntroduction to Agile
Introduction to Agile
 
Introduction to Agile & Scrum
Introduction to Agile & ScrumIntroduction to Agile & Scrum
Introduction to Agile & Scrum
 
Agile Requirements Discovery
Agile Requirements DiscoveryAgile Requirements Discovery
Agile Requirements Discovery
 
Design 101 : Beyond ideation - Transforming Ideas to Software Requirements
Design 101 : Beyond ideation - Transforming Ideas to Software RequirementsDesign 101 : Beyond ideation - Transforming Ideas to Software Requirements
Design 101 : Beyond ideation - Transforming Ideas to Software Requirements
 

Recently uploaded

1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 

Recently uploaded (16)

1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 

Web 101 intro to html

  • 1. Web 101: Intro to HTML
  • 2. Outline • What is HTML? • Webpage Structure • What is an Element? • Common HTML elements • Commenting HTML
  • 3. Learning Outcomes • Basic knowledge of Web Design using HTML • Create a simple web page using the fundamental HTML Elements • Display images on a web page • Including external web pages • Basic page layout techniques
  • 4. What is HTML? • A markup language for describing web documents (web pages). • Stands for Hyper Text Markup Language • A markup language is a set of markup tags • HTML documents are described by HTML tags • Each HTML tag describes different document content
  • 5. HTML Example <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 6. HTML Tags • Keywords (tag names) surrounded by angle brackets: – <tagname>content</tagname> • Usually come in pairs like <p> and </p> • The first tag in a pair is the start tag, the second tag is the end tag • The end tag is written like the start tag, but with a slash before the tag name
  • 7. Web Browsers • Read HTML documents and display them • The browser does not display the HTML tags • Uses tags to determine how to display the document • Examples – Chrome, IE, Firefox, Safari, Opera, Edge
  • 9. <!DOCTYPE> Declaration • Helps the browser to display a web page correctly. • Different document types exist • Browser must know both type and version. • The doctype declaration is not case sensitive. <!DOCTYPE html> <!DOCTYPE HTML> <!doctype html> <!Doctype Html>
  • 10. Common Declarations • HTML5 – <!DOCTYPE html> • HTML 4.01 – <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> • XHTML 1.0 – <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">
  • 11. HTML Versions Version Year HTML 1991 HTML 2.0 1995 HTML 3.2 1997 HTML 4.01 1999 XHTML 2000 HTML 5 2014
  • 12. What is CSS? • Used with HTML to style the page. • No CSS Today! • Will be covered in the WEB 102 : Intro to CSS
  • 13. Editors • Basic Editors – NotePad – TextEdit – Vim • Power Editors – Sublime Text – Brackets • Professional Editors – Microsoft WebMatrix – DreamWeaver
  • 15. HTML Document <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 16. Exercise 1 : Document • Let’s start by defining the basic structure of your website. • Create a new folder for your work called “web101”. • Then inside this folder create a new file called “index.html”. • open and close a set of <html></html> tags • Within this, create the head and body tags • If you load this in your browser, do you see anything on the page? • Now inside your head tag create a <title> tag with I love owls as your title. • You should see that the tab bar has changed. If not, double check your code.
  • 17. Solution 1 <!DOCTYPE html> <html> <head> <title>I love Owls</title> </head> <body> </body> </html>
  • 18. HTML Heading <h1>This is a heading1</h1> <h2>This is a heading2</h2> <h3>This is a heading3</h3> <h4>This is a heading4</h4> <h5>This is a heading5</h5> <h6>This is a heading6</h6>
  • 19. HTML Paragraph • Putting content into a <p> tag will break your text up into paragraphs. • This helps make the content of your page easier to read for the user. <p>This is a paragraph.</p> <p>This is another paragraph.</p>
  • 20. Exercise 2: Paragraphs • Add a h1 heading tag, which includes the word Owls, inside the body tag of your page. • Add the following paragraph inside your <body> tag, after the <h1>: <p> Most birds of prey sport eyes on the sides of their heads, but the stereoscopic nature of the owl's forward-facing eyes permits the greater sense of depth perception necessary for low-light hunting. </p>
  • 21. HTML Links <a href=http://www.meetup.com/learnsoftwaredevelopment>Us on Meetup</a> • A link lets the user click through to another webpage. • The href attribute is used to indicate where you want the user to go when the link is clicked
  • 22. Exercise 3: Links • Let’s add a link to the bottom of your paragraph: <a href="http://en.wikipedia.org/wiki/Owl">More information about owls...</a>
  • 23. HTML DIV • A div tag lets you group elements together. • Grouping elements is useful as we can later style them together (e.g. giving them all the same colour).
  • 24. Exercise 4 : DIV • Wrap your existing paragraph and link in a div and add a new heading to it. <div> <h1>Owls</h1> <p>Most birds of prey sport eyes on the sides of their heads, but the stereoscopic nature of the owl's forward-facing eyes permits the greater sense of depth perception necessary for low-light hunting. <a href="http://en.wikipedia.org/wiki/Owl">More information about owls...</a> </p> </div>
  • 25. HTML List • There are two types of lists that can included on a webpage, – ordered and unordered. • An unordered list <ul> is defined with bullets • An ordered list <ol> uses a numbered sequence.
  • 26. Exercise 5: Lists • Let’s create a new <h2> then underneath list the reasons we love owls: <h2>Why do I like owls so much?</h2> <ol> <li>they are adorable</li> <li>and lovely</li> <li>and cuddly</li> </ol>
  • 27. HTML Images • Images are primarily made up of three attributes • the <img> tag – src attribute lets the page know what image we want to view – alt attribute provides extra information if the image cannot be seen on the webpage for any reason • to see an image on the webpage we need to link to the image • this involves telling the webpage where it is and what it is called.
  • 28. Exercise 6: Images • Before the main heading of the page, add a logo image • The src of the image points to the images folder • We have given it a relevant alt attribute <img src="images/logo.png" alt=”Some logo ">
  • 29. Exercise 7 • Let’s add some more images. This time, we’ll put them in a list. • Do this underneath the <h2>Why do I like owls so much?</h2> heading. <ul> <li><img src="images/img1.jpg" alt="adorable"></li> <li><img src="images/img2.jpg" alt="lovely"></li> <li><img src="images/img3.jpg" alt="cuddly"></li> </ul>
  • 30. Formatting Text • Text can be emphasised or made important. • Use <strong> for emphasis, • Use <em> for importance
  • 31. Exercise 8: Formatting • Let’s emphasise some of the content of your paragraph <p> Most birds of prey sport eyes on the sides of their heads, but the stereoscopic nature of the owl's forward-facing <strong>eyes permits the greater sense of depth perception</strong> necessary for low-light hunting. </p>
  • 32. HTML Commenting • You can use a special kind of tag to add notes to our page that the computer will ignore. • Comments are particularly useful when wanting to remind yourself, or other programmers, how your code works. <!-- Note to self: this is where the header goes -->
  • 33. Exercise 9: Twitter Share Link • Add a share on twitter link along with your other sharing links <a href="http://twitter.com/home?status=I love HTML! via @hawkmanacademy">Share your love HTML on twitter</a>
  • 35. Resources • HTML elements – https://developer.mozilla.org/en/docs/Web/HTML/Element • Special characters – http://htmlandcssbook.com/extras/html-escape-codes • The Bare Bones Guide to HTML – http://werbach.com/barebones/barebones.html • Web Design Frameworks – Bootstrap - http://getbootstrap.com/ – Bootstrap Themes - http://wrapbootstrap.com/

Editor's Notes

  1. The DOCTYPE declaration defines the document type to be HTML The text between <html> and </html> describes an HTML document The text between <head> and </head> provides information about the document The text between <title> and </title> provides a title for the document The text between <body> and </body> describes the visible page content The text between <h1> and </h1> describes a heading The text between <p> and </p> describes a paragraph Using this description, a web browser can display a document with a heading and a paragraph.
  2. <!DOCTYPE html> <!DOCTYPE HTML> <!doctype html> <!Doctype Html>
  3. If you wanted to make this an unordered list, what would you change? How could you check it worked? Try it, then change your list back to an ordered list.