Introduction To HTML CSS
Introduction To HTML CSS
CSS
YEAR 7/8
SEPTEMBER 2021
Learning Objectives
To be able
CSS, web page, web browser, attribute, formatting, text editor, curly brace
Complete the HTML code below.
<html>
<head>
<…………………….>
My first webpage </title>
</…………………….>
<body>
<h1>
<font …………………=blue> Football Teams
</………………> </……>
This is where the text will go to tell you all about my favourite
football team. I have supported this team since I was 8 years
old and I have been to see them play over 20 times.
<……………>
</………………………...>
</………………………...>
<html>
<head>
<title> My first webpage </title>
</head>
<body>
<h1> <font color=blue> Football Teams </font> </h1>
<p>
This is where the text will go to tell you all about my favourite football team. I have
supported this team since I was 8 years old and I have been to see them play over 20
times.
</p>
</body>
</html>
Task 1: What is CSS?
With CSS, you can control the color, font, the size of text, the
spacing between elements, how elements are positioned and laid
out, what background images or background colors are to be
used, different displays for different devices and screen sizes, and
much more!
Task 2: Why is CSS useful?
Well that is where CSS comes in. CSS is short for 'Cascading Style Sheet'.
And one CSS style sheet can control the look and feel of hundreds, even thousands, of
HTML web pages.
Try this (b):
Using your style sheet change the justification of H1, H2 and the paragraph text
Your options are: text-align:left (right, center or justify)
Check your changes
Do this:
Do this:
Go and set up your H1 CSS commands in your style sheet
<head>
<style>
h1 {
color: blue;
font-family: verdana;
font-size: 300%;
}
p {
color: red;
font-family: courier;
font-size: 160%;
border: 2px solid powderblue;
border: 2px solid powderblue;
padding: 30px;margin: 50px;
}
</style>
</head>
Write a ‘Tweet’ to sum up today’s lesson. Remember that
Tweets are limited to 140 characters, including spaces.