INTRO
INTRO // Technologies
HTML
Content
CSS
Presentation
We'll be learning about HTML & CSS today
INTRO
INTRO // Tools
https://atom.io
https://google.com/chrome
INTRO // Goal
INTRO
https://github.com/codepals
HyperText Markup Language
HTML
HTML
Think of HTML as ....
HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>Can be though of as the brain of the document
Its properties are not part of the physical layout of the page
HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>Represents the area from the top left corner of our page, to the bottom right
Holds the physical structure of the page, much like our own body
All of our work today will be done here!
HTML
HTML
<p>Content</p>The tag above represents a paragraph
<p>Content</p>This is the opening tag.
It always starts with a tag name ('p' in this case).
HTML tags always start with a < and end with a >
HTML
<p>Content</p>This is the closing tag.
Most (but not all) HTML tags have a closing tag.
Closing tags always start with a forward slash ( / )
followed by the tag name.
HTML
<p>Content</p>This is the content of the tag.
The content appears between the opening and closing tags. This is the content that will appear on your page.
HTML
We write elements (content wrapped in tags) to the document's body
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p>Content</p>
</body>
</html>HTML
Some tags don't have closing tags.
Tags such as image do not enclose any content
(in the case of an image, it points to the location of a file) ...
So it doesn't need an opening and closing tag.
<img src="picture.jpg" />
Note: the / at the end is optional
HTML
<section>
<p>
Some text in a paragraph.
<a href="http://www.cbc.ca">CBC</a>
</p>
</section>HTML tags can be nested inside on another.
HTML is represented as a tree. That means you can put tags inside other tags as their content. The outer tag is the parent and the inner tag(s) are the children.
HTML
Heading Text
Paragraphs
Content containers
List Item
<h1> to <h6>
<p>
<header> <footer>
<main> <section>
<nav>
<li>
HTML
Images
<img>
List Container
<ul> or <ol>
<a>
Anchor
(Linking to other sites)
Cascading Style Sheets
CSS
CSS
HTML Only
With CSS
The Magic of CSS
CSS
p {
font-size: 16px;
color: purple;
}CSS Syntax
CSS
p {
font-size: 16px;
color: purple;
}CSS Selector
CSS
p {
font-size: 16px;
color: purple;
}CSS Declaration Block
CSS
p {
font-size: 16px;
color: purple;
}CSS Declaration
CSS
p {
font-size: 16px;
color: purple;
}Property
CSS
p {
font-size: 16px;
color: purple;
}Value
CSS
p {
font-size: 16px;
color: purple;
}The Colon => :
CSS
p {
font-size: 16px;
color: purple;
}The Semi-Colon => ;
CSS
h1 {
background-color: red;
text-align: center;
}Selecting an element
CSS
CSS
.highlight {
background-color: yellow;
}Classes
CSS
.red {
background-color: red;
}HTML
<h1 class="red">Ninja Turtles</h1>
<h2>Leonardo</h2>
<p class="red">blurb text</p>
CSS
CSS // General
CSS Properties You'll Be Using
background-color
color
font-size
font-family
text-align
border
- changes the background-color of an element
- changes the type of font
- changes the alignment of your text
- changes the color of your text
- changes the size of your font
- changes the outline of your element
CSS // Images
CSS Properties You'll Be Using
width
border
height
- changes the width of your element
- changes the height of your element
- changes the outline of your element
CSS
How are we going to memorize all of this!?
CSS
Fear not my friends! You don't have to 😅.
http://www.w3schools.com/cssref/
CSS
Intro to GitHub Pages
GitHub
GitHub
GitHub is a web application where we can upload our code and publish our website.
GitHub // Step 1
https://github.com
GitHub // Step 2
GitHub // Step 3
GitHub // Step 4
https://github.com/LothertonVillage/home
GitHub // Step 5
GitHub // Step 6
GitHub // Step 7
GitHub // Step 8
GitHub // Step 9
GitHub // Step 10
GitHub
NEXT STEPS
NEXT STEPS
NEXT STEPS
( http://html5doctor.com/ )
( https://css-tricks.com/almanac/ )
NEXT STEPS
NEXT STEPS
NEXT STEPS
In 2014, 26% of computing jobs were held by women – and that’s down from 36% in 1991.
http://themacro.com/articles/2016/06/women-who-code/
But you can solve real world problems with code!
NEXT STEPS
NEXT STEPS
@skimke
@bettymakes
Find us on Twitter