HTML and CSS Flashcards

(38 cards)

1
Q

what are the opening and closing tags for the largest heading

A

<h1></h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what opening and closing tags do you put the code for your website in

A

<body></body>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What opening and closing tags are used for a paragraph

A

<p></p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what opening and closing tags used to break up one paragraph from another

A

<div></div>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the opening and closing tags for the second largest heading

A

<h2></h2>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are the opening an closing tags for the third largest heading

A

<h3></h3>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what do you add to the opening div tag to show the attribute of the line

A

Id=”…”>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the opening and closing tags that put certain words in italics

A

<em></em>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the opening and closing tags that put certain words in bold

A

<strong></strong>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does HTML stand for

A

Hyper Text Markup Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is HTML used for

A

HTML provides structure to the content appearing on a website, such as images, text, or videos.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

HTML is composed of elements. Describe an HTML element.

A

An element is made up of:
- an opening tag <p>
- The content “Hello World” text
- A closing tag </p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

how many heading elements are there

A

6 heading elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which one is used of main headings

A

heading 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is the <p> element used for

A

The paragraph element is used for displaying text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is the tag for a line break

17
Q

What are the opening and closing tags for an unordered list

18
Q

what are the opening and closing tags for an ordered list

19
Q

what are the opening and closing tags that you use within and unordered/ordered list

20
Q

What is the tag that you use for an image

21
Q

What do you put inside an image tag to include an alt

A

alt=”your text”

22
Q

what is tag that you use to add a video to your website

A

<video>
</video>

23
Q

what do you put in your video tag to adjust the width and size of the video

A

height/width=however many pixels you want

24
Q

what is unique about the line break tag

A

it is the only tag with composed of one starting tag only

25
Write the HTML code to create the list below: 1.Disney+ 2.Netflix 3.Amazon Prime
  1. Disney+
  2. Netflix
  3. Amazon Prime
26
Write the HTML code to create the list below: January February March
  • January
  • February
  • March
27
What is the attribute that is required when using the tag? Describe its purpose
The attribute that must be used in src. This is the source, or location of the image.
28
‘Alt’ is another attribute that can be used with the tag. This is used to add alternative text. State one purpose of this alternative text.
-If an image fails to load on a web page, a user can move the mouse over the area intended for the image and read a brief description of the image. -Visually impaired users often browse the web with the aid of screen reading software. It will read the image’s description out loud to the visually impaired user. -Search engines cannot see images on websites as they crawl the internet. Having descriptive alt attributes can improve the ranking of your site.
29
What does URL Stand for
Universe Resource Locater
30
What is a URL
This is the address (location) where a file is stored
31
Videos can be added to a web page using the
Width and height are used to set the size of the video displayed in the browser. Controls attribute instructs the browser to include the basic video controls: pause, play and skip.
32
what is the tag used to create a link on a website
33
what CSS tag do you use to make a certain things background a certain colour
thing that you want to change the colour of{ background-color: your colour; }
34
What CSS tag do you use to change somethings colour
thing you want to change the colour of { color:your colour; }
35
What CSS tag do you use to change the font of something
Thing you want to change the font of { font-family: your font;
36
what CSS tag is used to change the size of the text
text you want to change the font size of } font-size: your sizept;
37
what CSS tag do you use to get and underlined piece of text
Text you want to underline } text decoration: underline; }
38
what CSS tag do you use to move something to each side of the screen or the middle
text you want to move } text-align: centre; }