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

A

Structure

20
Q

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

A

True

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

A

True

24
Q

3 types of list:
Ordered, unordered, and

A

Definition lists. They use the <dl> tag

25
Q

For definition lists:
Term tag -
Describe a term tag-
Definition list tag -

A

Term tag - <dt>
Describe a term tag- <dd>
Definition list tag - <dl>

26
Q

The img tag uses ___ to specify the path to an image source

A

src

27
Q

When it comes to links - Linking to an img on your computer is considered a _______ path, linking a website is considered an ________ path

A

relative path, absolute path

28
Q

T/F - each div element starts a new line and will end a line

A

True

29
Q

3 types of form attributes:

A

Action, method, enctype

30
Q

This form attribute is a URL to use for form submission

A

action attribute

31
Q

This form attribute is the HTTP method to use for form submission

A

method attribute

32
Q

This form attribute is the encoding type to use for form submission

A

enctype

33
Q

This request method sends all of the form data encoded into the URL

A

get request

34
Q

This request supplies additional data from data from the browser to the server in the message body

A

post request

35
Q

What is more secure, a get or post request? What one can be bookmarked?

A

POST is more secure, GET can be bookmarked

36
Q

Post or get, which one is more often used?

A

GET