SlideShare une entreprise Scribd logo
1  sur  35
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/

Contenu connexe

Tendances

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
Sahil Gandhi
 

Tendances (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
 

Similaire à Web 101 intro to html

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
 

Similaire à 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
 
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
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 

Plus de Hawkman Academy

Plus de 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
 

Dernier

➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
nirzagarg
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
imonikaupta
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 

Dernier (20)

➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men  🔝mehsana🔝   Escorts...
➥🔝 7737669865 🔝▻ mehsana Call-girls in Women Seeking Men 🔝mehsana🔝 Escorts...
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort ServiceBusty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
Busty Desi⚡Call Girls in Vasundhara Ghaziabad >༒8448380779 Escort Service
 
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 

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/

Notes de l'éditeur

  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.