Week 2 Flashcards

1
Q

What is the extension for an html file?

A

.html

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

Who developed HTML at CERN in Geneva, Switzerland?

Who was in Paris?

A

Tim Berners-Lee

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

HTML elements have a _____ and an ___ tag

A

start and end tag

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

T/F - Tag names are case sensitive

A

False. Tag names are not case sensitive. <p> == </P>, but W3C recommends lower case

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

HTML elements contain the element name, _________, and content within the tag

A

attributes,

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

What are void elements?

A

They’re an instruction to the browser to do something
They do not contain any text content
They only have a start tag, no end tag

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

Attributes provide additional ____ about the given element. ALL HTML elements can have attributes that alter their ________. They’re put inside of the _______ tag

A

info, behavior, opening tag

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

There are 4 different types of attributes, what are they?

A

Required attributes, optional attributes, standard attributes, and event attributes

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

Required attributes,
optional attributes,
standard attributes,
event attributes

A

Required attributes, - needed for functionality of element
optional attributes, -can be used to modify the default functionality
standard attributes, -also called global attributes. They’re literally the standard attributes (id, class, style, title, dir, lang)
event attributes -used to cause elements to run scripts

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

This element generally takes up an entire line, whereas its counterpart allows many elements to appear on the same line

A

Block elements, as opposed to inline elements

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

Inline elements must be ______ inside of a block element, and they only take up as much space as

A

nested, as much space as the content inside of them, unlike block elements

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

T/F - <html> goes before <!DOCTYPE html>

A

False, DOCTYPE always goes first

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

The <html> element is the ____ element, it’s a container for all other HTML elements. (/html always ends the page)

A

root

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

This element is considered the brain of the webpage. It contains metadata about the document

A

<head>
</head>

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

T/F - The head includes the CSS design & JavaScript functionality

A

True

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

What is the title element for?

A

It’s displayed in the browser toolbar. The title will be used for bookmarks as well as search engine results.

17
Q

What meta data is often included in the head?

A

charset (encoding style ie. UTF-8), author, viewport

18
Q

Define viewport

A

Users visible area of the web page. Will differ depending on the device.

19
Q

The body element is used for the _________ of the web page

20
Q

T/F - The body should only contain elements that will be displayed on the page

21
Q

T/F - The h1 element can be used a number of times on one web page

A

False. The h2 tag should only be used once

22
Q

T/F - Heading elements behave differently from <p> elements in terms of spaces

A

False. Heading elements add blank lines before and after the text

23
Q

T/F - Browsers automatically add a blank line before and after each paragraph

24
Q

3 types of list:
Ordered, unordered, and

A

Definition lists. They use the <dl> tag

25
For definition lists: Term tag - Describe a term tag- Definition list tag -
Term tag -
Describe a term tag-
Definition list tag -
26
The img tag uses ___ to specify the path to an image source
src
27
When it comes to links - Linking to an img on your computer is considered a _______ path, linking a website is considered an ________ path
relative path, absolute path
28
T/F - each div element starts a new line and will end a line
True
29
3 types of form attributes:
Action, method, enctype
30
This form attribute is a URL to use for form submission
action attribute
31
This form attribute is the HTTP method to use for form submission
method attribute
32
This form attribute is the encoding type to use for form submission
enctype
33
This request method sends all of the form data encoded into the URL
get request
34
This request supplies additional data from data from the browser to the server in the message body
post request
35
What is more secure, a get or post request? What one can be bookmarked?
POST is more secure, GET can be bookmarked
36
Post or get, which one is more often used?
GET