Getting started with
+
Front-end Engineer @ Vox Media
Also a graphic designer
I like to make internet things
@mylifeasalllly
ally@palanzi.com
Front End
Back End
HyperText Markup Language gives content structure and meaning by defining that content as, for example, headings, paragraphs, or images.
Cascading Style Sheets is a presentation language created to style the appearance of content—using, for example, fonts or colors.
Project folder - includes anything that you want on your site.
index.html - for main content page.
File names are case sensitive and shouldn’t have special characters or spaces
Create a folder on your desktop (or where ever you want on your computer) called femsplain-workshop and put the files you’ll need inside
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>I am a heading!</h1>
<p>I am a paragraph!</p>
</body>
</html>
Tells the browser that you are using HTML, and the type of HTML.
Tells the browser that everything inside will be HTML
Contains the which tells the browser the name of the page
<title>
Contains tags, which give the browser information about the page - used for search engines mostly
<meta>
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="description" content="This is my webstie about website things.">
<meta name="keywords" content="various, keywors, here">
<meta name="author" content="Ally Palanzi">
</head>
<body>
<h1>I am a heading!</h1>
<p>I am a paragraph!</p>
</body>
</html>
Contains the content of the page
Tags tell the browser how to render what is inside
<tagname>Some Content</tagname>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
...
<h6>Heading 6</h6>
<p>I am a paragraph!</p>
<em>I am emphasis & italic</em>
<strong>I am important and bold</strong>
<blockquote>I am a block quote</blockquote>
act as containers solely for styling purposes
generic containers
do not come with any meaning or semantic value
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
...
<h6>Heading 6</h6>
<div>
<p>I am a paragraph!</p>
</div>
<span>
<em>I am emphasis & italic</em>
</span>
<strong>I am important and bold</strong>
<blockquote>I am a block quote</blockquote>
<h3>I am an unordered list</h3>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<h3>I am an ordered list</h3>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<header>
<nav>
I am navigation!
</nav>
</header>
<section>
<h1>I am a section</h1>
<article>
<h2>I am an article</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit,
et dolore magna aliqua. Ut enim ad minim veniam, quis no
aliquip ex ea commodo consequat. Duis aute irure dolor in
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
officia deserunt mollit anim id est laborum.</p>
</article>
</section>
<aside>
<h2>I am an aside</h2>
</aside>
<footer>
<p>I am the footer.</p>
</footer>
<h1>Heading 1</h1>
<hr>
<img src="https://placekitten.com/g/500/500">
Place an image into your image folder and call it with the following syntax:
<img src="images/filename">
<img src="images/kitten.jpg">
classes
ids
src
linking to source of elements
ex: adding images, adding source to script or style file (examples to come)
<a href="http://femsplain.com">Femsplain!!!</a>
Add the largest header to your index.html file
Add a header, section, article, and footer element. Make sure to place some text inside these using either headers or paragraphs.
Bold and italicise some text too!
Create a list with numbers inside of the article element.
Have at least one link.
body {
background: pink;
}
h1 {
color: red;
}
div {
background-color: blue;
color: white;
font-family: Helvetica;
width: 500px;
}
selector {
property: value;
}
p {
color: red;
}
Selects all <p> tags on a page.
header {
background-color: red;
}
Selects all <header> tags on a page.
body {
background: pink;
}
h1 {
color: red;
}
div {
background-color: blue;
color: white;
font-family: Helvetica;
width: 500px;
}
Selects all elements with the class .alert
.alert {
color: red;
}
<p class="alert">Alert! Alert!</p>
HTML
Selects all elements with the class #navigation
#navigation {
background-color: black;
}
<nav id="navigation">I'm here to navigate you.</nav>
HTML
The "." is how you tell CSS "this is a class name."
A webpage only has one footer
The "#" is how you tell CSS "this is an id."
h1 {
font-family: Times;
font-size: 25px;
}
p {
font-family: Helvetica;
font-size: 15px;
}
<head>
<style>
header {
background-color: blue;
}
p {
color: red;
}
</style>
</head>
<header>
<nav>
I am navigation!
</nav>
</header>
<section>
<h1>I am a section</h1>
<article>
<h2>I am an article</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit,
et dolore magna aliqua. Ut enim ad minim veniam, quis no
aliquip ex ea commodo consequat. Duis aute irure dolor in
dolore eu fugiat nulla pariatur. Excepteur sint occaecat
officia deserunt mollit anim id est laborum.</p>
</article>
</section>
<footer>
<p>I am the footer.</p>
</footer>
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
Add styles to a separate file, and then call that file in the head tag.
<p style="color: red;">I am a red paragraph!</p>
div {
margin-top: 10px;
margin-right: 20px;
margin-bottom: 10px;
margin-left: 20px;
padding-top: 20px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 20px;
border-color: blue;
border-size: 2px;
border-style: solid;
background-color: red;
width: 500px;
height: 500px;
}
div {
margin: top right bottom left;
padding: top right bottom left;
border: size color style;
}
div {
margin: 10px 20px;
padding: 10px 20px;
border: 1px red solid;
}
selector {
display: inline;
}
selector-two {
display: inline-block;
}
selector-three {
display: block;
}
div {
float: left;
}
section {
float: right;
}