Week 3 Flashcards

1
Q

What do these do?

<table><table>
<td></td>
<th></th>
<tr></tr>
</table></table>

A

Create table
Table data (default left-aligned)
Table header (bold by default and centered)
Table row

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

<td>
<th>

What do these do?
</th></td>

A

They can make table cells cover several columns or rows

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

What are the advantages of using a semantic structure in html?

A

Maintainability
Performance
Accessibility
Search Engine Optimization (most important)

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

article, aside, figure, figcation, footer, header, hgroup, nav, section

What are these examples of?

A

Semantic structure elements

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

Rules and Exceptions:

Block elements

A

<body>, <form>: some block elements can only contain other block elements
</form></body>

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

Rules and Exceptions:

<p> tags
</p>

A

<p> tags can only contain inline elements and plain text
</p>

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

<div> and <li> can contain
</li></div>

A

Block AND inline elements

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

<ul> can only contain
</ul>

A

<li>, but <li> can only other elements (think <ul>) for nested lists
</ul></li></li>

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

<html> <body> <head> <main>
What do these have in common?
</main></head></body></html>

A

They’re only allowed once per document

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

T/F - you can use <h4> without using h1-3

A

False

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

T/F - use <hr> when you want to have a horizontal lines that separates sections, rather than a <div> with a border

A

True

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

T/F - Accessible designs account for all abilties

A

True

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

Why use valid HTML5 and web standards?

A

Useful across different browsers
More likely that the pages display correctly now and in the future
Ensures accessibility

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

The W3c created the WAI in 1997. One of their important guidelines are to provide ____ alternatives for any non-text content, so that it can be changed into other forms people need

A

text

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

To create an accessible table, we can use the _____ attribute to give textual descriptions of table headers

A

scope

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

Accessible forms: use the fieldset, legend, and label elements - but what should each element be associated with?

A

Each label element should be associated with a single input element

17
Q

What is a wireframe? What is its advantage?

A

It’s a web site plan. It helps clarify what needs on the different page types of the website.

18
Q

More in depth, why do wireframing?

A
  1. Clear view of page structure
  2. Can focus on the functionality now
  3. Organizaiton
  4. Make it easier to share/communicate your ideas/what you want
19
Q

Each file header comment should contain

A

Name, course/section/date/brief description of the assignment

Each file comment should describe that file/class and its main purpose in the program

20
Q

Spacing and indentation should be _________ throughout your code

A

consistent

21
Q

In HTML you should not have any lines longer than ___ characters

A
  1. Exception is URLs
22
Q

T/F - All letters should be lowercase for elements, attributes, values, classes, ids

A

True. Multi-world names should be concatenated with a -

23
Q

Benefits of CSS
Separation of _______ from __________

A

Separation of Content from presentation

24
Q

CSS Rule Syntax - declarations

A

declaration
selector{ property: value; }

declaration block:

selector {property1: value1;
property2: value2;
property3: value3; }

25
Q

T/F- External stylesheets may only control 1 document

A

False. External stylesheets may control multiple stylesheets

26
Q

T/F - Elements of different types can share the same class

A

True

27
Q

T/F - elements can have multiple IDs

A

False

28
Q

Types of selectors:

___ selectors
_____ selectors
__ selectors
__________ or __m_______ selectors

A

tag selectors
class selectors
id selectors
contextual or combinator selectors

29
Q

ID selectors should be used with a ______ element, class selectors should be used with ________ selectors

A

single, multiple

30
Q

Tag based selectors will format the entire

A

HTML tag specified

31
Q

T/F - you can group selectors to provide the same CSS style with added comas

A

True

32
Q

CSS Links
Link
Visited
Hover
Active

A

Link - before a visit
Visited - after a visit
Hover - when your mouse is over it but you have not clicked
Active - you have clicked it and you have not yet seen the new page