Which tag is used to create a paragraph?
What are the two tags that nest directly within the <html> tags?
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
* Heading number indicates hierarchy, not size. Think of outlines from high school papers
<p>
Here is a paragraph with <em>emphasized</em> text and <strong>important</strong> text.
</p>
Here is a paragraph with Emphasized text and Important text.
* Notice: em and strong are meant to indicate meaning through style. If you want to have italicized for appearance and not to communicate meaning, you should use CSS.
Let's add some content to our site!
Add one of each level of heading with 1-2 short paragraphs of text below each heading.
Use <strong> and <em> within a few paragraphs.
<div id="copyright">©BizStream Academy logo 2016</div>
<img src="my_picture.jpg" />
<a href="http://www.bizstreamacademy.com">BizStream Academy</a>
Links have three components
<a href="http://www.bizstreamacademy.com" title="BizStream Academy">BizStream Academy</a><
The <a> tag surrounds text or images to turn them into links
Links can have attributes that tell the link to do different actions like open in a new tab, or launch your e-mail program.
<a href="home.html" target="_blank">Link Text</a>
Link opens in a new window/tab with target="_blank"
<a href="mailto:sponsorships@bizstream.com">E-mail us!</a>
Adding mailto: directly before the email address means the link will open in the default email program.
"filename.jpg"
"img/filename.jpg"
"http://www.bizstreamacademy.com/returning"
Let's add links to our site!
Add links that open in the same window, a new window and link to an e-mail address.
Images have three components
<img src="https://raw.githubusercontent.com/misterhamm/bzsa-featured-html-css-intro/master/img/bzs-academy-logo-2015.png"
alt="BizStream Academy Logo"/>
* Notice: This tag is our first example of a stand-alone or "self-closing" element.
Let's add a few images to our page.
Be sure to upload your images to your site folder in Editey
We can even turn our images into links.
<ul>
<li>List Item</li>
<li>AnotherList Item</li>
</ul>
<ol>
<li>List Item</li>
<li>AnotherList Item</li>
</ol>
Unordered list (bullets)
Ordered list (sequence)
Lists can be used to organize any list of items.
You'd be surprised how often lists are used in web design.
Let's add one of each ordered and unordered lists to our page.
We can make a list of links or even a list of images!
<div>
<p>Content</p>
<p>Content</p>
</div>
<div id="header">
<h1>Main Heading</h1>
</div>
<div class="sub-content">
<p>Some more content</p>
</div>
You can add comments to your code that will not be seen by the browser, but only visible when viewing the code.
<!-- Comment goes here -->
Comments can be used to organize your code into sections so you (or someone else) can easily understand your code. It can also be used to 'comment out' large chunks of code to hide it from the browser.
<!-- Beginning of header -->
<div> Header Content </div>
<!-- End of header -->
<!--
<ol>
<li>List Item</li>
<li>Another List Item</li>
</ol>
-->
Let's add some divs your site to separate content into different sections based off of your wireframe drawings.
Then add comments to organize your divs content.
There are character codes for many different characters in many different languages
CSS = Cascading Style Sheets
CSS is a "style sheet language" that lets you style the elements on your page.
CSS works in conjunction with HTML, but is not HTML itself.
All colored text, position, and size
selector {
property: value;
}
Declarations: Property and value of style you plan to use on HTML element.
Declarations end with a semicolon
Declaration groups are surrounded by curly brackets.
selector {
property: value;
property: value;
property: value;
}
3 ways
"Inline"
"Embedded"
"External"
<p style="color:red">Some text.</p>
Uses the HTML attribute style.
Difficult to use in large projects
Not preferred.
<head>
<style type="text/css">
p {
color: blue;
font-size: 12px;
}
</style>
</head>
Inside <head> element.
Uses <style> tag.
Can only be used in one html file
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
body {
background-color: yellow;
}
p {
property: value;
}
Selects all paragraph elements.
img {
property: value;
}
Selects all image elements.
Your browser can accept colors in many different ways:
The 17 standard colors are: aqua, black, blue, fuchsia, gray, grey, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
The color property changes the color of the text.
p {
color: red;
color: #ff0000;
color: rgb(255, 0, 0);
}
The background-color property changes the color of the background.
p {
background-color: black;
background-color: #000000;
background-color: rgb(0,0,0);
}
The font-family property defines which font is used. Each property can have one or more comma separated values.
p {
font-family: "Times New Roman";
font-family: serif;
font-family: "Arial", sans-serif;
}
Specific font name
Generic name
Comma-separated list
The font-size property specifies the size of the font.
p {
font-size: 12px;
font-size: 1.5em;
font-size: 2rem;
font-size: 100%;
}
Pixels
"em"
"rem"
Percentage
p {
font-style: italic;
font-weight: bold;
font-size: 10px;
font-family: sans-serif;
}
OR
p {
font: italic bold 10px sans-serif;
}
Don't forget your homework!