2
Most read
8
Most read
12
Most read
HTML for beginners
From zero to your-own-website in 90 minutes
What is HTML?
•

“HTML or HyperText Markup Language is the
main markup language for creating web
pages and other information that can be displayed
in a web browser.” (wikipedia)
Markup (HTML)

Presentation
(CSS = Cascading
Style Sheets)

Interaction
(JavaScript)
Today
•

Creating content (HTML)
•

text, images, links

•

advanced elements (lists, tables)

•

Making it look pretty (CSS)

•

Putting it all together
•

your own website?
Getting started
<p>In a hole in the ground, there lived <strong>a
hobbit</strong>. Not a nasty, dirty, wet hole,
filled with the ends of worms and an oozy smell,
nor yet a dry, bare, sandy hole with nothing in it
to sit down on or to eat: it was a hobbit-hole, and
<em>that means comfort</em>.</p>

In a hole in the ground, there lived a hobbit. Not a
nasty, dirty, wet hole, filled with the ends of worms and
an oozy smell, nor yet a dry, bare, sandy hole with
nothing in it to sit down on or to eat: it was a hobbithole, and that means comfort.
Tags and attributes
<p>…</p>

Tags, opening and closing

<img />

Tags, self-closing

<img src=“picture.jpg” />

Attributes in tags
Text elements
<H1>This is Heading 1</H1>
!

<H2>This is Heading 2</H2>
!

<H3>This is Heading 3</H3>
!
<H4>This is Heading 4</H4>
!
<H5>This is Heading 5</H5>

!

<H6>This is Heading 6</H6>

<p>This is a paragraph</p>
!
<strong>This is bold</strong>!
<b>This was bold (until HTML5)</b>!
!
<em>This is italic text.</em>
<i>This is italic text.</i>
!
<p>Or just <br />
break the line.</p>
The heart of the web
Hyperlinks:
<p>
Have you heard of this new
<a href=“http://google.com”>website</a>?<br/>
Or just go <a href=“#down”>further down</a> this page.
</p>
!
<p>
<a name=“down"></a>
This is further down the page.
</p>
Images

<img src=“http://florianletsch.de/test.jpg”
alt=“Test picture” width=“400” height=“300”/>
Get your hands dirty
•

http://codepen.io/pen/!

•

Task (5 minutes)
•

1. Play around, create some text, some links, and
so on.

•

2. What does <u> do?

•

3. How to create a horizontal line in HTML?
(google)
And yet another task
•

Create your own little profile, including:
•

Headline, “About Me” text, one image, list of
hobbies, one link to your favourite website

•

hint: some elements need to be nested:
<ul>
<li>List item one</li>
<li>List item two</li>
</ul>

10 minutes (use the cheat sheet)
Making it pretty
CSS (Cascading Style Sheets) work with selectors
for elements and a list of values for properties that
influence the visual representation.
a {
color: red;
text-decoration: none;
}
!

p {
background: black;
colour: white;
padding: 20px;
}
CSS
•

You can use style definitions directly inside an element.
This is <em style=“text-decoration:
underline”>random</em> text.

Check out the next cheat sheet.
Now really make it pretty
•

Task (10 minutes)
•

Continue with your profile from before.

•

Make the image to “float” next to the text.

•

Pick a new text colour and background colour
(hint, selector “body” is the whole page)

•

Change the appearance of the links.
Colour codes
Putting it together
index.htm:
<!DOCTYPE html>
<html>
<head>
<title>My website</title>
<link rel=“stylesheet” href=“style.css”>
</head>
<body>
<h1>Welcome</h1>
<p>Content…</p>
</body>
</html>

style.css:
body {
background: grey;
}
A real world example
<div class="head">
<h1>My website</h1>
</div>

!

<div class="menu">
<ul>
<li><a href="index.htm">Home</a></li>
<li><a href="profile.htm">Profile</a></li>
</ul>
</div>

!

<div class="content">
<h2>Home</h2>
<p>Whatever bla bla</p>
</div>

.menu {
float: left;
width: 200px;
}

!
.content {
float: left;
width: 600px;
margin-left: 20px;
}

!
.head {
width: 820px;
margin-bottom: 20px;
}

Task: Do this yourself, add your own colours, fonts and content (10 minutes)
Now what?
•


Where to from now on?
•

HTML course: http://www.codecademy.com/
tracks/web

•

CSS reference: https://developer.mozilla.org/enUS/docs/Web/CSS/Reference

More Related Content

PPT
Html basics
PPT
Introduction to JavaScript (1).ppt
PPT
Intro Html
PDF
Intro to HTML and CSS basics
PPT
Js ppt
ODP
Html basics
Introduction to JavaScript (1).ppt
Intro Html
Intro to HTML and CSS basics
Js ppt

What's hot (20)

PDF
Introduction to HTML5
PPT
Css Ppt
PPT
Introduction to CSS
ODP
CSS Basics
PPSX
Introduction to Html5
PPT
Advanced Cascading Style Sheets
PPTX
(Fast) Introduction to HTML & CSS
PPTX
Basic HTML
PPT
CSS Basics
PPTX
Html n CSS
PPT
Asp.net.
PDF
Introduction to Web Design
PPT
JavaScript - Part-1
PPT
Javascript
PPT
PHP - Introduction to PHP Fundamentals
PPTX
An Overview of HTML, CSS & Java Script
PPTX
PPT
Introduction to Cascading Style Sheets (CSS)
Introduction to HTML5
Css Ppt
Introduction to CSS
CSS Basics
Introduction to Html5
Advanced Cascading Style Sheets
(Fast) Introduction to HTML & CSS
Basic HTML
CSS Basics
Html n CSS
Asp.net.
Introduction to Web Design
JavaScript - Part-1
Javascript
PHP - Introduction to PHP Fundamentals
An Overview of HTML, CSS & Java Script
Introduction to Cascading Style Sheets (CSS)
Ad

Similar to Html for beginners (20)

PDF
Html css crash course may 11th, atlanta
PPTX
Basics of Front End Web Dev PowerPoint
PDF
Code & Design your first website 4/18
PDF
Code &amp; design your first website (3:16)
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
PDF
Html:css crash course (4:5)
PDF
Chapter 2.pdf
PDF
Punch it Up with HTML and CSS
KEY
Class1slides
ODP
Light introduction to HTML
PPT
Introduction css
PPT
Introduction css
PPTX
Workshop 2 Slides.pptx
PDF
Thinkful - HTML/CSS Crash Course (May 4 2017)
PPTX
Web development basics
PPTX
Castro Chapter 3
PDF
HTML/CSS Crash Course (april 4 2017)
PPTX
Introduction to html fundamental concepts
PPTX
INTRODUCTION CODING - THE HTML AND CSS.pptx
Html css crash course may 11th, atlanta
Basics of Front End Web Dev PowerPoint
Code & Design your first website 4/18
Code &amp; design your first website (3:16)
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Html:css crash course (4:5)
Chapter 2.pdf
Punch it Up with HTML and CSS
Class1slides
Light introduction to HTML
Introduction css
Introduction css
Workshop 2 Slides.pptx
Thinkful - HTML/CSS Crash Course (May 4 2017)
Web development basics
Castro Chapter 3
HTML/CSS Crash Course (april 4 2017)
Introduction to html fundamental concepts
INTRODUCTION CODING - THE HTML AND CSS.pptx
Ad

Recently uploaded (20)

PDF
Advancing precision in air quality forecasting through machine learning integ...
PPTX
SGT Report The Beast Plan and Cyberphysical Systems of Control
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PDF
SaaS reusability assessment using machine learning techniques
PDF
Statistics on Ai - sourced from AIPRM.pdf
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
PPTX
Configure Apache Mutual Authentication
Advancing precision in air quality forecasting through machine learning integ...
SGT Report The Beast Plan and Cyberphysical Systems of Control
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
4 layer Arch & Reference Arch of IoT.pdf
Enhancing plagiarism detection using data pre-processing and machine learning...
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Basics of Cloud Computing - Cloud Ecosystem
SaaS reusability assessment using machine learning techniques
Statistics on Ai - sourced from AIPRM.pdf
future_of_ai_comprehensive_20250822032121.pptx
NewMind AI Weekly Chronicles – August ’25 Week IV
Co-training pseudo-labeling for text classification with support vector machi...
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Early detection and classification of bone marrow changes in lumbar vertebrae...
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
Configure Apache Mutual Authentication

Html for beginners

  • 1. HTML for beginners From zero to your-own-website in 90 minutes
  • 2. What is HTML? • “HTML or HyperText Markup Language is the main markup language for creating web pages and other information that can be displayed in a web browser.” (wikipedia) Markup (HTML) Presentation (CSS = Cascading Style Sheets) Interaction (JavaScript)
  • 3. Today • Creating content (HTML) • text, images, links • advanced elements (lists, tables) • Making it look pretty (CSS) • Putting it all together • your own website?
  • 4. Getting started <p>In a hole in the ground, there lived <strong>a hobbit</strong>. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and <em>that means comfort</em>.</p> In a hole in the ground, there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbithole, and that means comfort.
  • 5. Tags and attributes <p>…</p> Tags, opening and closing <img /> Tags, self-closing <img src=“picture.jpg” /> Attributes in tags
  • 6. Text elements <H1>This is Heading 1</H1> ! <H2>This is Heading 2</H2> ! <H3>This is Heading 3</H3> ! <H4>This is Heading 4</H4> ! <H5>This is Heading 5</H5> ! <H6>This is Heading 6</H6> <p>This is a paragraph</p> ! <strong>This is bold</strong>! <b>This was bold (until HTML5)</b>! ! <em>This is italic text.</em> <i>This is italic text.</i> ! <p>Or just <br /> break the line.</p>
  • 7. The heart of the web Hyperlinks: <p> Have you heard of this new <a href=“http://google.com”>website</a>?<br/> Or just go <a href=“#down”>further down</a> this page. </p> ! <p> <a name=“down"></a> This is further down the page. </p>
  • 9. Get your hands dirty • http://codepen.io/pen/! • Task (5 minutes) • 1. Play around, create some text, some links, and so on. • 2. What does <u> do? • 3. How to create a horizontal line in HTML? (google)
  • 10. And yet another task • Create your own little profile, including: • Headline, “About Me” text, one image, list of hobbies, one link to your favourite website • hint: some elements need to be nested: <ul> <li>List item one</li> <li>List item two</li> </ul> 10 minutes (use the cheat sheet)
  • 11. Making it pretty CSS (Cascading Style Sheets) work with selectors for elements and a list of values for properties that influence the visual representation. a { color: red; text-decoration: none; } ! p { background: black; colour: white; padding: 20px; }
  • 12. CSS • You can use style definitions directly inside an element. This is <em style=“text-decoration: underline”>random</em> text. Check out the next cheat sheet.
  • 13. Now really make it pretty • Task (10 minutes) • Continue with your profile from before. • Make the image to “float” next to the text. • Pick a new text colour and background colour (hint, selector “body” is the whole page) • Change the appearance of the links.
  • 15. Putting it together index.htm: <!DOCTYPE html> <html> <head> <title>My website</title> <link rel=“stylesheet” href=“style.css”> </head> <body> <h1>Welcome</h1> <p>Content…</p> </body> </html> style.css: body { background: grey; }
  • 16. A real world example <div class="head"> <h1>My website</h1> </div> ! <div class="menu"> <ul> <li><a href="index.htm">Home</a></li> <li><a href="profile.htm">Profile</a></li> </ul> </div> ! <div class="content"> <h2>Home</h2> <p>Whatever bla bla</p> </div> .menu { float: left; width: 200px; } ! .content { float: left; width: 600px; margin-left: 20px; } ! .head { width: 820px; margin-bottom: 20px; } Task: Do this yourself, add your own colours, fonts and content (10 minutes)
  • 17. Now what? • Where to from now on? • HTML course: http://www.codecademy.com/ tracks/web • CSS reference: https://developer.mozilla.org/enUS/docs/Web/CSS/Reference