In this course
Making a web page with HTML and CSS
Writing HTML text tags and CSS selectors
Laying out a web page with multiple sections
Working with images on a web page
Customizing fonts and building HTML forms
1 Button
Save to LEVEL
Drive
HTML
A Quick Story of the Web
In 1980, Tim worked for CERN, where he
proposed a better way for researchers
there to share and read documents.
Tim Berners-Lee
n
u
r
o
h
w
e
l
p
o
e
p
N
e
R
m
a
s
CE
e
e
h
l
t
c
i
,
t
w
r
o
a
n
p
k
n
u
o
r
o
d
Y
a
H
e
g
r
a
L
the
.
r
o
t
a
r
e
l
e
c
c
a
ENQUIRE
So in 1984, he built something called ENQUIRE for CERN, which was
made up of Cards (Documents) and Hyperlinks (which connected the
Documents).
Hyperlink
Card
yp
But Tim realized he could do
better.
Card
er
lin
k
Hyp
erli
nk
Card
Card
The World Wide Web
With Robert Cailliau, Tim Berners-Lee wrote a proposal in 1990 for
the creation of the World Wide Web.
When it started, the WWW was a way for scientists around the world
to create and share their own webpages.
The World Wide Web's
First Logo
The language of a webpage is HTML
HTML allows you to take a plain text document
created in any simple text editor
Learn By Doing!
No setup. No hassle. Just Learning.!
Code School teaches web technologies in the
comfort of your browser with video lessons,
coding challenges, and screencasts.
.. and organize it into lists, link to other
webpages, include images, and more.
But what does HTML mean?
HTML stands for HyperText Markup Language
Hypertext
Overcoming the constraints of written text. Interactive.
Markup Language
A way to literally "Mark Up" a document to specify attributes, like
dierent font sizes, lists, links to other webpages, and images.
HTML is written in text les
Just like most programming languages, we type a bunch of HTML into a
file (aka. document) so we can send it around.
index.html
Name of the file
File extension
(tells the browser the file contains HTML)
To display an HTML le we need a browser
Web Browsers are basically "HTML Readers.
They understand how to read HTML and display it for you.
index.html
Hopefully they all display
the same thing (that's the idea).
A guide to the slides
In this course, were going to show you HTML, CSS
and what those look like in the browser.
Look for these symbols to help you figure out what youre looking at:
HTML
CSS
HTML code
CSS code
What it looks like displayed in the browser
Building Recipe World
First things rst: get some content!!
Before you start making a web page, youve got to figure out what
content it is going to show.
Well start with a single recipe with these sections.
Page Title:
Recipe World
Recipe Name:
Magic Cake
Section Name:
Ingredients
Section Name:
Directions
Writing HTML
Most of the time, youll put your content in between HTML tags, which
have corresponding opening and closing versions.
HTML
<h1> Recipe World </h1>
opening
tag
the
closing
version
has
a
slash
before
the
tag
name
closing
tag
Use heading tags to dene your content hierarchy
Higher heading numbers mean the content that appears
between the headings is less important than lower numbers.
HTML
<h1>Recipe World</h1>
<h2>Magic Cake</h2>
<h3>Ingredients</h3>
<h3>Directions</h3>
More
important
Less
important
Generally speaking:
The page title/company name goes in the <h1>
The page main subject goes in the <h2>
<h3> through <h6> are used to organize other divisions of page content
Use paragraph tags for non-heading text
<p> is called the paragraph tag.
HTML
<h1>Recipe World</h1>
<h2>Magic Cake</h2>
<p>Magic Cake is one of the tastiest...</p>
<h3>Ingredients</h3>
...
Add paragraph content (where
necessary) in between heading tags.
This
paragraph
describes
Magic
Cake
Use an unordered list to display a list of things
<ul> stands for unordered list.
Each list item needs to also be put inside of an <li> tag.
HTML
unordered
list
list
items
<h3>Ingredients</h3>
<ul>
<li>2 eggs</li>
<li>1 pound of sugar</li>
<li>3 sticks of butter</li>
</ul>
This
list
of
ingredients
doesn't
need
to
be
in
a
specific
order
Nesting tags
HTML tags dont have to always just contain text, they can contain other
HTML tags.
parent
children
HTML
<p>Magic Cake is one of...
<h3>Ingredients</h3>
<ul>
<li>2 eggs</li>
<li>1 pound of sugar</li>
<li>3 sticks of butter</li>
</ul>
<h3>Directions</h3>!
...
when
you
indent,
it's
easy
to
see
that
3
<li>