Fundamentals of HTML Flashcards

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

A

html tag

24
Q

syntax errors

A

spelling or punctuation errors

25
Q

logic errors

A

the syntax is correct, but the code isn’t what you intended to be

26
Q

what element is used to create a table

A

table element

27
Q

what element is used to add a row to a table

A

tr element

28
Q

what element is used to add data to a row of a table

A

td element

29
Q

what element is used to add a heading to a table

A

th element

30
Q

what element is used to span a column

A

add a colspan attribute to a td element and set its value to how many columns you want to span

31
Q

table body

A

should contain our table data

32
Q

table head

A

should contain our table headings

33
Q

table footer

A

should contain sums, differences…

34
Q

CSS =

A

Cascading Style Sheets

35
Q

semantic=

A

related to meaning

36
Q

what element is used in semantic HTML for headers

A

header element

37
Q

what element is used in semantic HTML to define a block of navigation links

A

nav element

38
Q

what element is used in semantic HTML for the dominant content

A

main element

39
Q

what element is used in semantic HTML for the footer of a web page

A

footer element

40
Q

what element is used in semantic HTML to separate the themes of discussion on a website

A

section element

41
Q

what element is used in semantic HTML for articles, blogs…

A

article element

42
Q

what element is used in semantic HTML to add aside content like a quote, comment…

A

aside tag

43
Q

what element is used in semantic HTML to encapsulate media

A

figure tag

44
Q

what element is used in semantic HTML to add a caption to an image/video

A

figcaption element

45
Q

what element adds audio content

A

audio tag

46
Q

what attribute is being used to play a video as soon as the page is loaded?

A

autoplay attribute

47
Q

what attribute is being used to play a video in a loop

A

loop attribute

48
Q

what element is used to add a gif/image/video…

A

the embed element

- self closing tag