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?

A

unlinked

20
Q

What tag in an html links other files?

A

link tag

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
Q

when defining color what are the two options?

A

rgb or hexadecimal

26
Q

When adding a class to a tag, what needs to precede the tag name in the css file?

A

A period

27
Q

How do you define the path/name of the background image?

A

background-image: url(“PATH.name”)

28
Q

How do you make the image cover the div?

A

By using the background-size:cover

29
Q

when should the id attribute be used?

A

When one element must be unique

30
Q

What should precede an id name in the sector

A

A hash

31
Q

Like in most languages, what do parenthesis usually indicate?

A

php functions

32
Q

are functions case sensitive?

A

Yes

33
Q

Can arguments be passed by reference?

A

No

34
Q

Give an example of an include statement in php

A

include “library.php”;

35
Q

Is php object oriented?

A

yes

36
Q

how is a class declared?

A

Class name{}

37
Q

How are fields in an object accessed in php?

A

$object -> feildname

38
Q

Do php objects have constructors

A

Yes

39
Q

If a method is static what must precede the name?

A

the word static

40
Q

When retrieving a static function from an object is the “->” used?

A

No, a double colon is used

41
Q

What three properties can a function have?

A

protected, public, private

42
Q

What two ways can constants be defined?

A

The defined keyword or const