html Flashcards

1
Q

What is the tag <h1> known as?</h1>

A

An opening tag

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

What is the tag known as?

A

a closing tag

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

How many header elements (hn) are there?

A

six

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

What is the purpose of the <p> tag?</p>

A

To contain one or more sentences

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

What does the anchor element (<a>) do?</a>

A

Creates a hyper link defined by the attribute href that equals the value string url

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

for the image src attirubute in the img tag, what should the value be?

A

A url string like the anchor tag

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

What is special about the img tag?

A

It is self closing. which means it doesn’t need a closing tag

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

Is the video tag self closing?

A

No it requires a closing tag

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

How is the source of the video defined?

A

A separate source tag with a src attribute like the image tag

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

What attribute is used in the video tag to make the video have play/pause ability

A

the control attribute

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

How is the type of video defined?

A

As the type attribute in the video tag. For example, type=”video/mp4”

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

What is the <ul> tag?</ul>

A

unordered list that can contain list tags

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

When a tag is inside the opening & closing tags of another element what is this called?

A

nested elements, where on is the child and one is the parent

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

What can metadata be thought of in an html file?

A

The brains

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

What does the metadata, do?

A

Tells the browser that we are expecting an html file

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

What is the purpose of the tags?

A

It acts as the parent of all tags in the file

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

What does html stand for?

A

hypertext markup language

18
Q

What does css stand for?

A

Cascading style sheet

19
Q

What is it called when the css comes external from the file?

20
Q

What tag in an html links other files?

21
Q

What attributes can be included in a tag.

A

rel, or relation such as stylesheet. type such as text/css. href, which specifies the file/path

22
Q

Where should the link tag be put?

A

In the header

23
Q

What is a css file made of?

A

Sectors and properties help in curly brackets which make up the “rule”

24
Q

What does the font family attribute do?

A

font-family: Palatino, ‘Palatino Linotype’, serif, gives thee selected text in that tag palatino font

25
when defining color what are the two options?
rgb or hexadecimal
26
When adding a class to a tag, what needs to precede the tag name in the css file?
A period
27
How do you define the path/name of the background image?
background-image: url("PATH.name")
28
How do you make the image cover the div?
By using the background-size:cover
29
when should the id attribute be used?
When one element must be unique
30
What should precede an id name in the sector
A hash
31
Like in most languages, what do parenthesis usually indicate?
php functions
32
are functions case sensitive?
Yes
33
Can arguments be passed by reference?
No
34
Give an example of an include statement in php
include "library.php";
35
Is php object oriented?
yes
36
how is a class declared?
Class name{}
37
How are fields in an object accessed in php?
$object -> feildname
38
Do php objects have constructors
Yes
39
If a method is static what must precede the name?
the word static
40
When retrieving a static function from an object is the "->" used?
No, a double colon is used
41
What three properties can a function have?
protected, public, private
42
What two ways can constants be defined?
The defined keyword or const