HTML CSS 2
HTML CSS 2
3
Overall...
Everything to do with how
webpages are displayed!
4
HTML
Intro to HTML
The absolute basics
Intro To HTML
What exactly is html? How and where is html used?
● HTML is the standard ● HTML works because it
language for creating web contains elements that are
pages clearly described.
● It describes the structure of ○ It labels certain parts to be
a web page. certain things like
“paragraphs” or “headers”
● It is used to make all
webpages.
7
The Basics of Html
Tags and how to use them
● Tags are what allows html code to be properly formatted.
● They look like this:
<h1> and always come in pairs </h1>
^ the text comes between two tags that mark that text to be a
certain type. This particular tag (<h1>) means a large header.
8
Creating basic things on a webpage
Tags are one of the most In HTML everything needs to be inside
important things to coding two tags. Here is example code:
HTML. So… how do we use
them to make:
● Headings
● paragraphs
● Media
● And more?
9
Breaking down the basic code:
Always start with this. One of the only
tags that doesn’t need an ending tag
To add images:
13
Adding videos
Adding videos with HTML is similar to adding photos, but instead of just having
one tag, you have a start <video> tag and an ending one.
<video width="320" height="240" controls>
</video>
Inside the start tag are the width and height controls. In between the tags is
where you will put the source of the video.
14
Side note: You can use
Making tables
<th> and </th> to
indicate the categories in
your table
15
Adding links that lead to another
page
Here’s how you can add links to another page
on your website! If you want to create another
page for your website then you will need to
first make the html doc then link it to your
page. Here’s how your do it!
17
Extra things in html!
There are a lot of things to do in html! Here are
some extra things you can do to make your
website look nice!
18
Fun fact! ^High school
yearbook pic
19
CSS
Intro to CSS
What is CSS and How is it used?
What exactly is it? How and where is CSS it used?
● CSS is what makes web ● CSS code is a put in a file that
pages more aesthetic accompanies an HTML file.
● It changes things like text ● It takes what the HTML code
color, font, and things like has created ( text, images, etc.)
that. and formats it to look nice on
To add CSS to your Html file write:
the webpage.
<link
rel="stylesheet"type="text/css"href="styles.css">
within the head tags at the top of your html page.
“styles.css” would be the name of your css file. 22
Web page with CSS: Web page without CSS
23
How is CSS written/formatted?
Changing
things just
for header 1 Each part, like with
html tags, is sectioned
off with curly brackets
Changing
things just
for this
paragraph
Earlier in the code, if some elements were grouped together into something named “.red_txt”,
then later everything under that could be easily changed to be red using these lines of CSS code. 24
Let’s get into it!
How to use CSS to do some basic things
Changing text colors and fonts
h1 {
color: blue;
font-size: 20 pt;
font-family: “Times New Roman”;
}
Anything you want to change about the text of one html element
goes inside the two curly brackets. Format it like this:
Italics: font-style:italic;
Bold: font-weight:bold;
27
Changing background color
If you want to change the background color of
your website then here’s how you do it!
body {
background:
28
Adding borders!
Adding borders to your website
makes it look really nice. Here’s
how you can do it!
29
Fun Fact!
Håkon Wium Lie
first proposed CSS
30
HTML CSS
31
Sources
● https://web.squaredaisy.com/what-is-a-website-made-of/
● https://css-tricks.com/that-time-i-tried-browsing-the-web-without-css/
● https://agendamahala.com/introduction-to-css
● How to make Italic Fonts With CSS | Beamtic
● How to Bold Text in CSS - Web Design Blog
● w3schools.com
● Artemis Slideshows
○ HTML.pdf (bu.edu)
○ Microsoft Word - HTML Reference.docx (bu.edu)
○ CSS.pdf (bu.edu)
● Washington.edu
● https://www.theguardian.com/technology/2017/nov/15/tim-berners-lee-world-wide-web-net-neutrality
● https://en.wikipedia.org/wiki/CSS
● https://commons.wikimedia.org/wiki/File:Hakon_Wium_Lie%22.jpg
● https://usesthis.com/interviews/hakon.wium.lie/
● youtube.com
32
Thank you!!
33
SlidesCarnival icons are editable shapes.
Examples:
34
DIAGRAMS AND INFOGRAPHICS
35