General Assembly Prep Flashcards

(63 cards)

1
Q

tags

A

HTML documents use to tell the browser how to format our content

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

<h1> </h1>

A

first level heading

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

<p> </p>

A

normal paragraph

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

normal paragraph tag

A

<p> </p>

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

first level heading tag

A

<h1> </h1>

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

— attribute / attributes value

A

attribute is type attribute value is “email”

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

attributes

A

attribute is an option for each tag

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

what is html

A

HTML is the structure of the content that goes inside the tags. Browsers, provide default style, but its pretty ugly by itself.

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

what is CSS

A

CSS controls the style of the HTML content, it lets you change colors, fonts, layout and more

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

<h1> </h1>

A

first level heading

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

<p> </p>

A

normal paragraph

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

normal paragraph tag

A

<p> </p>

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

first level heading tag

A

<h1> </h1>

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

— attribute / attributes value

A

attribute is type attribute value is “email”

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

attributes

A

attribute is an option for each tag

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

what is html

A

HTML is the structure of the content that goes inside the tags. Browsers, provide default style, but its pretty ugly by itself.

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

what is CSS

A

CSS controls the style of the HTML content, it lets you change colors, fonts, layout and more

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

boilerplate - basic structure of every website

A

head
metadata . . . . . . .

body
content …….

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

unordered list tag

A

<ul> used to make navigation bar</ul>

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

how do you use to get info from user

A

an input tag

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

text align options

A

right left center or justify

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

examples of tags that don’t have > end

A

<img></img>

<img></img>

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

background image

A

background: url(“https…”)

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

some url background styling

A

background: url(“http://dash.ga.co/assets/anna-bg.png”);
background-size: cover;
background-position: center;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
what is padding
the edge of an element to whats inside the element
26
what is the header
think of the as a container that holds elements, kind of like the body, but for the web page's header.
27
    unordered list, one of html's most common tags. We can use it to make a navigation bar.
    28
  • list item
    29
    bullet points are crated
    when you use a unordered list ul or a list item, li
    30
    anchor link
    31
    what does the link tag do
    the link tag works as opposed to the style tag. It allows you to link to a different page instead of having to do it all in your one age of code.
    32
    link tags two attributes
    href - where the CSS file lives | ref - always set to "stylesheet"
    33
    how to make things line up
    select the right tag in the styling section and put in it display: inline;
    34
    padding with one value does?
    padding on all sides
    35
    padding with four values does
    Up Right Down Left like clock
    36
    margin vs padding
    margin outside, padding inside
    37
    how create border on image
    img { border: 7px solidwhite; border-radius: 20px; }
    38
    can a ul have a background
    yes an unordered list can have o long stripe background
    39
    sample anchor link
    40
    what is block display
    means display whole width of pageand have line breaks before and after
    41
    controlling width of text on a page example
    ``` article { width 500px; padding 20px; margin: 0 auto; } ```
    42
    media query example
    ``` @media (max-width: 500px;){ body{ background: red; } } ```
    43
    advanced colors
    rgba(0,0,0,0.5) rgb 0 - 255 a - transparency 0 - 1
    44
    display which takes up whole width of page
    block
    45
    where does padding go to get rid of bullet points
    ul ex. ul { padding: 10px; }
    46
    adding some space between list items
    li { padding: 0px 10px 0px 10px; }
    47
    adding javascript 1
    $("button").on("click", function() {alert("a button was clicked")}); $ ("button") - selector chooses element to listen to .on() - the .on function sets up an event listener for the element we've selected .on("click", function() - "click" says what type of event we are listening for
    48
    getting most pictures to be aligned correctly.
    body { margin: 0 auto; max-width: 600px; }
    49
    when adding attributes and attribute values to a tag do you use a comma?
    no
    50
    adding class to a tag
    51
    where div and class disagree who wins
    class
    52
    line-height:
    tells us to increase or decrease vertical space between lines
    53
    getting text to the bottom of a few divs
    ``` div { position: relative; } p { position: absolute; bottom: 0; margin: 0; } ```
    54
    line break

    55
    prices text example

    marzipan pudding $14
    This goes good with stuff

    56
    tag you use to make part of an element display differently than the rest of the element
    span
    57
    span example
    $25
    58
    block elements verse inline elements
    block - p, h1, h2, ul, li, div | inline - hyperlinks, images, form fields, span
    59
    difference between block and inline
    block take up the whole page width, inline only exist within those lines take up only as much space as they need to.
    60
    text-align: right; will move any ___ to the right
    block
    61
    float
    float will allow you to move a span or more likely an image around in its container element
    62
    gradient example
    background: black; background: -webkit-linear-gradient(bottom, rgba(0,0,0,1), rgba(0,0,0,.4)); background: -moz-linear-gradient(bottom, rgba(0,0,0,1), rgba(0,0,0,.4));
    63
    media query example
    ``` @media (max-width: 600px;) { body { background: red; { { ```