HTML and CSS Flashcards

1
Q

HTML

A
  • Hypertext Markup Language
  • consists of entirely of tags
  • files usually end in .html or .htm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Absolute filepaths

A

point directly to a file using a full path to its direction

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

Relative filepath

A

how to get to the file relative to the HTML file containing that link
eg. images/apple.jpg

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

what are the attributes to
img src=’picnic.jpg’ width=’200’/

A

src and width are attributes to img

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

b

A

bold text

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

i

A

italicized text

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

ul

A

unordered list

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

ol

A

ordered list

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

li

A

adds a list item to <ul> or <ol>

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

div

A

create layouts w/o a table

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

Input attributes

A
  • name: ID for the input
  • value: text displayed on/in the input
  • placeholder: temporary, descriptive text
  • tabindex: gives an order to the elements for users to “tab” through them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

label for=” “

A
  • associated filed becomes focused
  • field becomes activated so that the user can begin typing in it
  • reference field by its ID attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Captcha

A
  • prevents bots from automatically filling out web forms
  • eg. Google’s reCaptcha
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In HTML, which attribute is used to specify that an input field must be filled out?

A

required

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

attribute to limit how many characters can be entered

A

“maxlength”

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

Server processing for form validation

A
  • PHP is a common server-side language
  • databases/external files
  • processing orders (e-commerce)
  • functions involving security
  • anything that the host needs to know about or track
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Client processing for form validation

A
  • JavaScript is used for client side coding
  • interactivity/animations
  • non-secure form processing
  • receiving user input in real-time
  • loading or changing elements that appear on a user’s device
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

CSS

A
  • Cascading Style Sheets
  • only to style websites
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Padding

A

space inside the element, keeping its contents away from the edges

20
Q

Margin

A

space outside the element, keeping it away from other elements

21
Q

‘position’ styles

A

static, relative, absolute, fixed, sticky

22
Q

position: static;

A

default value, it’s added sequentially in the site and cannot be moved

23
Q

position: relative;

A

similar to static but can be shifted w/ TRBL values

24
Q

position: absolute;

A
  • location is directly based on TRBL values within its parent
  • precise location, doesn’t care what it’s underneath
25
position: fixed;
location is locked in place
26
position: sticky;
position changes between relative and fixed on scrolling
27
Top, right, bottom, and left (TRBL)
- can be set, but their behavior depends on the position type - no effect on static position
28
'display' styles
block, inline block, none, table-cell
29
display: block;
takes up entire (up and down)
30
display: inline-block;
- can be place in row (side by side) - will only stay together if they can fit
31
display: none;
not added to page
32
display: table-cell;
- placed side by side and resizes to fit a row - elements remain together and just squish smaller
33
rule-set selector { property1: value1; property2: value2; }
group of styles for a certain selector or selectors
34
selectors
- ways of determining which elements are given the styles of the rule set - 3 main types of selectors: tag/element, class name, ID
35
Class selectors
- apply to all elements that are given the specific class - eg. .nav
36
ID selectors
- apply to the element w/ that ID - IDs must be unique and not given to multiple elements
37
'type' attribute for web forms
- "text" - "radio" - "submit"
38
Wrapper or container
- include all or most of the content in a giant div - often centered to keep the content in the middle
39
section (tag)
keeping the different areas separated
40
columns
- done by using 'display' styles, 'float' styles, or 'position' styles - display: block, inline-block, table-cell - float: left or right - position: absolute
41
float
let text wrap around an image on the left or right
42
Child selectors
- parent selector, space, then child selector - can continue w/ multiple levels of children - eg. ul li, .nav li
43
Combined selectors
- tag and class and ID selectors can be combined to select elements of a certain tag AND have a specific class or ID - eg.div.nav{}
44
Psuedo-classes
- advanced CSS selectors that apply to certain states or actions on elements - ie. hovering the cursor over an element - eg. :hover
45
Transitions
- specify the parameters like duration, speed curve, and time delay - usually triggered by :hover, :focus, or another pseudo-class
46
Animations
- independent of user input - uses keyframes (@keyframes)
47
Animation parameters
- growAnim: grow in different segemnts 0%{width:200px;} 100%{width:300px;} - 3 main parameters: animation name, duration, iteration count (looping) - direction: normal (start to finish), reverse (finish to start), alternate, etc. - timing function: ease, ease-in, ease-out, linear, etc.