HTML Flashcards

1
Q

How do you indicate the parent folder in a path?

A

../fileName.file – two dots, forward slash, name of file.

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

How do you indicate the child folder in a path?

A

childFolder/fileName.file – name of folder, forward slash, name of file

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

How do you indicate the grand parent folder in a path?

A

../../fileName.file – two dots, forward slash, two dots, forward slash, fileName.file

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

How do you indicate the current folder in a path?

A

FileName.file – Just type the filename. No dots or forward slashes needed.

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

What are the six primary HTML elements for creating tables?

A

table, thead, tbody, tr, th, td

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

What purpose do thetheadandtbodyelements serve?

A

Thead defines a set of rows defining the head of columns of the table. Tbody like, thead and tfoot, provide useful semantic info that can be used when rendering for either screen or printer as well as for accessibility purposes.

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

Give two examples of data that would lend itself well to being displayed in a table.

A

stocks and sports stats.

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

What is an absolute URL?

A

The web address to a specific page.

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

What is a relative URL?

A

A path to other pages within the same site.

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

What other ways can we use an anchor tag?

A

Linking to another part of the same page, links that open in a new browser/tab, links that start up your email program and address a new email to someone.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. Where do you put non-visible content about the HTML document?
A

the head

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Where do you put visible content about the HTML document?
A

the body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. Where do the headand bodytags go in a valid HTML document?
A

in html tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. What is the purpose of a doctypedeclaration?
A
  1. To tell the browser which version of HTML your page is using.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Give five examples of HTML element tags.

A

a, img, li, div, p, br, etc

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

What is the purpose of HTML attributes?

A

They give additional information about the contents of an element. Made up of a name=”value”.

17
Q

Give an example of an HTML entity (escape character).

A

Ampersand - & a m p ;. Left bracket - < or < // you need the semi-colon. It will worth without it, but html has to work harder to find out that its an entity.

18
Q

What is the difference between an ordered list and an unordered list in HTML?

A

Ordered lists are numbered. Good for recipes or instructions or legal contract. Unordered lists have a bullet point – good for maybe ingredients list on a recipe.

19
Q

What three HTML elements do you use to build a description list?

A

< dl > - initializing the definition list //description list
< dt > - where the term being defined is placed // description term
< /dt >
< dd > - where the definition of the term is placed. // description definition
*NOTE- It’s now called a description, instead of definition. < /dd >< /dl >

20
Q

Why are forms useful?

A

It allows interaction between a user and a website/app by providing the ability to enter data which is sent to a web server for processing and storage, or used to update the interface in some way (to-do list, hiding or showing UI features) on the client side. Let’s use receive data from a user.

21
Q

What attribute do you have to match between alabeland aninput?

A

Label for and input id

22
Q

What type of input allows you to select multiple items in a dropdown?

A

input tag attribute < select multiple >

23
Q

What is theactionof a form?

A

Defines the location(url) where the form’s collected data should be sent when submitted.

24
Q

What is the purpose of an HTML form element?

A

To provide interaction between the client and server. Collecting data.

25
Q

Give five examples of form control elements.

A

Input, textarea, upload, output, range, button, submit, select, selectOne, selectMany
Text, password, textarea, radio, checkbox, dropdown boxes (select), submit button, image button, file upload, option.

26
Q

Give three examples oftypeattributes for HTMLform elements.

A

Button, checkbox, email, password, file, image, hidden, radio, range, reset, search, submit, text.

27
Q

Why would we choose specific element types when we have elements such asdivandspanwhich can be used for anything?

A

For semantic value. Each tag holds different value in regards to SEO. It helps those who need screen readers to navigate a page. It’s more organized and easier to read by others. (prevents ‘divitis’).

28
Q

What factors contribute to a well-designed HTML document?

A

Proper semantics and using appropriate tags for each type of data. Well formatted/easy to read. Clear and organized visual layout. Easy to navigate. Indentation and formatting.

29
Q

How do block-level elements affect the document flow?

A

It takes up it’s own line and adds line breaks. Doesn’t allow content on either side of it.

30
Q

How do inline elements affect the document flow?

A

They don’t interrupt the flow. They display exactly where you put them, regardless if there is content on either side.

31
Q

What are the default width and height of a block-level element?

A

Width takes up 100% (of the page) Height would be as high as the element needs. (width: 100%, height: auto;)

32
Q

What are the default width and height of an inline element?

A

Width and height: auto;. Takes up only the amount of space the content needs.

33
Q

What accessibility considerations must be considered when choosing HTML elements?

A

Basically all the semantic tags. <strong> <em> etc.</em></strong>