HTML and CSS Flashcards

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

A

<br></br>

17
Q

What are the opening and closing tags for an unordered list

A

<ul></ul>

18
Q

what are the opening and closing tags for an ordered list

A

<ol></ol>

19
Q

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

A

<li></li>

20
Q

What is the tag that you use for an image

A

<img></img>

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
Q

Write the HTML code to create the list below:

1.Disney+
2.Netflix
3.Amazon Prime

A

<ol>
<li>Disney+</li>
<li>Netflix</li>
<li>Amazon Prime</li>
</ol>

26
Q

Write the HTML code to create the list below:

January
February
March

A

<ul>
<li>January</li>
<li>February</li>
<li>March</li>
</ul>

27
Q

What is the attribute that is required when using the <img></img> tag?
Describe its purpose

A

The attribute that must be used in src. This is the source, or location of the image.

28
Q

‘Alt’ is another attribute that can be used with the <img></img> tag. This is used to add alternative text. State one purpose of this alternative text.

A

-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
Q

What does URL Stand for

A

Universe Resource Locater

30
Q

What is a URL

A

This is the address (location) where a file is stored

31
Q

Videos can be added to a web page using the <video> tag. Width, height and controls are attributes that can be used with this tag. Explain what each attribute is for.</video>

A

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
Q

what is the tag used to create a link on a website

A

<a>clickable text</a>

33
Q

what CSS tag do you use to make a certain things background a certain colour

A

thing that you want to change the colour of{
background-color: your colour;
}

34
Q

What CSS tag do you use to change somethings colour

A

thing you want to change the colour of {
color:your colour;
}

35
Q

What CSS tag do you use to change the font of something

A

Thing you want to change the font of {
font-family: your font;

36
Q

what CSS tag is used to change the size of the text

A

text you want to change the font size of }
font-size: your sizept;

37
Q

what CSS tag do you use to get and underlined piece of text

A

Text you want to underline }
text decoration: underline;
}

38
Q

what CSS tag do you use to move something to each side of the screen or the middle

A

text you want to move }
text-align: centre;
}