Save
A-level Computer Science
School Notes
HTML and CSS
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Ana Saker
Visit profile
Cards (58)
What is HTML used for?
To
set
the
structure
of a
web page
View source
What is the purpose of CSS in web design?
To
format
the
web page's
appearance
View source
What tags indicate the start and end of an HTML document?
<html>
tags
View source
What is the function of the <link> tag in HTML?
To link to a
CSS
file
View source
What does the <head> tag signify in an HTML document?
Start
and
end
of the
head
section
View source
What is the purpose of the <title> tag?
To
give
the
title
of the
webpage
View source
What does the <body> tag indicate?
Where
the
main
part
of the
web page
begins
View source
What are the <h1>, <h2>, and <h3> tags used for?
To
set
headers
of
different
sizes
View source
How is an image placed in an HTML document?
Using the <
img
> tag with
properties
View source
What properties are used with the <img> tag?
src
,
alt
,
height
,
width
View source
How would you write an <img> tag for a smiley face image?
<img
src
="smiley.gif"
alt
="Smiley face"
height
="42"
width
="42">
View source
What does the <a> tag create?
A
hyperlink
View source
What property is used in the <a> tag to specify the link location?
href
property
View source
How would you write a hyperlink to Ealing Independent College?
<a
href
="
https
://www.ealingindependentcollege.com/">Visit the college!</a>
View source
What is the purpose of the <div> tag?
To
divide
a
web page
into
sections
View source
What does the <form> tag do?
Formats
a
section
as a
form
View source
What does the <p> tag indicate?
A
paragraph
View source
What does the <li> tag indicate?
An item on a
list
View source
How would you write list items for red, yellow, and blue?
<
li
>red</li> <li>yellow</li> <li>blue</li>
View source
What does the <ol> tag indicate?
An
ordered list
View source
What does the <ul> tag indicate?
An
unordered list
View source
How would you write an ordered list for red, yellow, and blue?
red 2.
yellow
3.
blue
View source
How would you write an unordered list for red, yellow, and blue?
● red ●
yellow
●
blue
View source
What does the <input> tag do?
Sets up
input
text
boxes or
buttons
View source
What properties does the <input> tag contain?
Type
and
name
properties
View source
How would you write an input for first name?
<input
type
="text" name="
first_name
" value=""
maxlength
="100" />
View source
How would you write an input for last name?
<input
type
="text" name="last_name" value=""
maxlength
="100" />
View source
What does the <script> tag contain?
A section of
Javascript
View source
How can CSS be applied to a web page?
To individual
elements
,
identifiers
, or
classes
View source
What is an element in CSS?
A single part of a
web page
View source
How would you apply CSS directly to an <h1> element?
<h1
style
="color:blue;">Header</h1>
View source
What are identifiers in CSS?
Begin with # and apply
formatting
View source
How would you define an identifier in CSS?
#para1 { text-align:
center
; color:
red
; }
View source
How would you apply an identifier to a paragraph?
<p id="
para1
">Hello World!</p>
View source
What is the difference between an id and a class in CSS?
Id is
unique
; class can be
reused
View source
How would you define a class in CSS?
.
center
{ text-align: center; color: red; }
View source
How would you apply a class to an <h1> element?
<h1 class="center">
Heading
</h1>
View source
Where is the <link> tag placed in an HTML document?
In the
header
of the HTML document
View source
What does the <link> tag do?
Tells the page where to find the
CSS
file
View source
How would you write a <link> tag for a CSS file?
<link
href
="mystylesheet.css"
rel
="stylesheet">
View source
See all 58 cards