Fundamentals of HTML Flashcards

(48 cards)

1
Q

Headings tags are:

A

h1, h2, h3, h4, h5, h6 elements

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

What is div for and what it means?

A

div is short for division

div divides the page into sections

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

how to add a simple paragraph

A

using p element

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

what span is for

A

span separates text from other text on the same line

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

what em element is for

A

emphasises text - italic

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

what is strong element for

A

highlights important text - bold

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

what element is used to space a line

A

br element

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

what element is used to create a list with bullets

A

ul element

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

what element is used to create a numbered list

A

ol element

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

what element is used to add an item to a list

A

li element

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

what element is used to add an image

A

img element - self-closing tag + src attribute which contains the link to the image

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

what attribute is used to add an image alt

A

alt attribute

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

what element is used to add a video

A

video element with the attribute src value set to the link of the video
+ we can add width and height attributes

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

what attribute is used to add controls to a video

A

controls attribute

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

what HTML stands for

A

HypertTextMarkupLanguage

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

any visible content must be nested inside of what tags?

A

body tags

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

how to start any HTML file

A

declare !DOCTYPE html

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

what element is used to add the page title

A

title element

the title is going to show as the title of the tab on a modern computer

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

what element is used to link to other pages

A

a element

a element must contain a href attribute with the value of the link we are linking to

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

what href means

A

href= HyperLink Reference

21
Q

what attribute is used to open a link to a new window

A

we must add the target attribute to the anchor tag and set its value to blank_

22
Q

what element is used to turn an image into a link

A

just wrap the image into an anchor tag

23
Q

what is the tag that contains ALL the code

24
Q

syntax errors

A

spelling or punctuation errors

25
logic errors
the syntax is correct, but the code isn't what you intended to be
26
what element is used to create a table
table element
27
what element is used to add a row to a table
tr element
28
what element is used to add data to a row of a table
td element
29
what element is used to add a heading to a table
th element
30
what element is used to span a column
add a colspan attribute to a td element and set its value to how many columns you want to span
31
table body
should contain our table data
32
table head
should contain our table headings
33
table footer
should contain sums, differences...
34
CSS =
Cascading Style Sheets
35
semantic=
related to meaning
36
what element is used in semantic HTML for headers
header element
37
what element is used in semantic HTML to define a block of navigation links
nav element
38
what element is used in semantic HTML for the dominant content
main element
39
what element is used in semantic HTML for the footer of a web page
footer element
40
what element is used in semantic HTML to separate the themes of discussion on a website
section element
41
what element is used in semantic HTML for articles, blogs...
article element
42
what element is used in semantic HTML to add aside content like a quote, comment...
aside tag
43
what element is used in semantic HTML to encapsulate media
figure tag
44
what element is used in semantic HTML to add a caption to an image/video
figcaption element
45
what element adds audio content
audio tag
46
what attribute is being used to play a video as soon as the page is loaded?
autoplay attribute
47
what attribute is being used to play a video in a loop
loop attribute
48
what element is used to add a gif/image/video...
the embed element | - self closing tag