What is a website?
Web pages served from a unique domain
Accessible via a network
What is a webpage?
Document written in
plain text
interspersed with
formatting
instructions of HTML
Content is
structured
What is HTML?
Hyper Text Markup
Language
Code for web pages
HTML5 is the latest standard
oStandardized in October
2014
oHTML4 was standardized
in 1997
Markup Tags
o<p>
o<h3>
o<video>
4
Style of HTML
<html>
<head>
<title> document title </title>
</head>
<body>
...your page content
</body>
</html>
5
Elements of HTML
Tags are the elements that create the components of a
page
Tags surrounded by angle brackets < >
Usually come in pairs
Example: Start tag <p> and end tag </p>
Stuff between is called element content
Tags are not case sensitive
New standard is to use lower case
Tag Example
Common Tags
Headings
<h1></h1>
Title of section
Paragraph
<p> </p>
Text
8
to
<h6></h6>
My New Heading
This is my new Paragraph. Creating web pages is
exciting and fun. This is awesome!
<h1>
<h3>
<p>
<a>
10
11
Image Tag
<img>
There is no </img> closing tag, just > or />
<img src=URL alt=description of image />
Source URL points to link of image
12
13
Full Example
14
<!DOCTYPE html>
<html>
<head>
<title>MAISS Website</title>
</head>
<body>
<nav>
<a href="index.html>Home</a>
<a href="courses.html">Courses</a>
<a href="contact.html">Contact</a>
</nav>
<div>
<p>Hello my name is Julio and I am writing about myself.
</p>
<img src="me.jpg" alt=a picture of me/>
</div>
</body>
</html>
Result
15
What is CSS?
Cascading Style Sheets
Standard method of
applying style and
appearance to content
Cascading means that
properties cascade
down through all child
elements of a given
element
16
17
18
.red-text{
color: red;
font-size: 40px;
}
.green-text{
font-family: Verdana;
color: green;
}
Anatomy
19
Anatomy
20
Regular Syntax
p { font-size: 24px; }
.my-class{
color: #ffffff;
display: block;
}
21
<p style=font-size:
24px;>Hi!</p>
same as
p { font-size: 24px; }
22
<style> in
<head>
<html>
<p style=font-size:
24px;>Hi!</p>
}
23
<head>
<title>My Site</title>
<style>
p{
font-size: 24px;
}
.my-class{
color: #ffffff;
display: block;
</head>
<body>
content..
</body>
</html>
Separate File
Lets Code!
https://jsbin.com/
https://justpaste.it/shoutm
d
24