CSS / HTML, HTML & CSS

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/98

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

99 Terms

1
New cards

CSS

Cascading Style Sheets

2
New cards

Style=

to apply styles locally, type _______ within an HTML tag.

3
New cards

property:value

the format to define properties in style format is

4
New cards

;

what symbol goes between each style definition?

5
New cards

internal style sheets must go between which tags

6
New cards

which tag comes after if creating an internal style sheet?

7
New cards

{

Which symbol follows the name of the tag when creating style sheets?

8
New cards

tags

H1 and P are examples of what?

9
New cards

what are the comment tags

10
New cards

h1 {color:red}

to apply the text color red to H1 using styles...

11
New cards

p {color:yellow;text-align:right}

to apply the text color yellow and align right to P uisng styles...

12
New cards

a:link {color:red}

to make an untouched link red

13
New cards

a:visited {color:blue}

to make a visited link blue

14
New cards

a:hover {color:green}

to make a link green when moused over

15
New cards

tag for adding an image or video

16
New cards

p {text-indent:8pt}

to indent the text in P by 8 pts

17
New cards

h1 {font: 10pt "Arial","Times"}

to change the font of H1 to 10pt Arial with a backup Times font

18
New cards

h1 {background:green;color:yellow}

to change the background color of H1 to green and the text to yellow

19
New cards

p {letter-spacing:.5em}

to change kerning (the area around each letter) of paragraph element to .5em

20
New cards

-

a two worded property is separated by what symbol

21
New cards

p {font-weight:bold}

to change the text on a paragraph element to bold

22
New cards

.css

to save an external style sheet, save it with what extension?

23
New cards

p.intro

to assign a class called intro to tag P

24
New cards

to apply the class H1.heading to a paragraph

25
New cards

p#intro

to assign an ID called inro to tag P

26
New cards

div

a special tag that allows you to change the style of a section of the document

27
New cards

span

a special tag that allows you to change the style of a few words of the document

28
New cards

div.love {background:red}

to set a DIV called love to have a red backgroud

29
New cards

to apply a DIV called love, which TAGS should be used?

30
New cards

span.caps {font-variant:small-caps}

to set a SPAN called caps to have all capital letters

31
New cards

to apply a SPAN called caps, which TAGS should be used?

32
New cards

p {font-family:"verdana"}

to change the font family of P to Verdana

33
New cards

p {font-style:italic}

to change the font style of P to italic

34
New cards

700

what number represents bold weight

35
New cards

p {font-size:12pt}

to change the font size of p to 12pt

36
New cards

p {line-height:15pt}

to change the leading between text lines of p by 15pt

37
New cards

h1 {background:url("pic.gif")}

to apply a background to h1 named pic.gif

38
New cards

fixed

to keep the background from moving use the word...

39
New cards

repeat

which word tiles an image horizontally and vertically

40
New cards

repeat-x

which word tiles an image horizontally

41
New cards

repeat-y

which word tiles an image vertically

42
New cards

no-repeat

which words keep the image from being tiled

43
New cards

letter-spacing

which property specifies kerning

44
New cards

h1 {white-space:pre}

to set white space for h1

45
New cards

p {text-decoration:underline}

to underline text for p

46
New cards

p {text-transform:uppercase}

to change the text of p to uppercase

47
New cards

style="z-index:-1"

if 2 images are overlaping which property can be used to decide which goes on bottom

48
New cards

Heading (h1 to h6)

49
New cards

Paragraph

50
New cards

h1, p {

color: #ff00000;

}

having the same CSS color of Red for both

and

51
New cards

.logo {

padding: 20px;

}

Padding the class called logo with 20px surrounding it

52
New cards

.logo {

padding: 20px 10px 20px 10px;

}

Padding the top and bottom 20px and left & right with 10px

53
New cards

.logo {

padding: 20px 10px;

}

Padding the top&bottom with 20px and left&right with 10px in short-cut

54
New cards

float: right;

Align elements horizontally from right

55
New cards

Welcome to Progate !

Applying CSS to a part of a text with

= You can now change the CSS of the word Progate individually

56
New cards

.logo {

border: width style color;

}

Adding a border

57
New cards

.logo {

border-bottom: 1px solid #333

{

Adding a border with only the bottom with solid style and black-ish

58
New cards

Margin, border, and padding relationships

The margin is the space just outside the border whilst padding is inside the border covering the text

59
New cards

Making a link tag

60
New cards

Comment

61
New cards

Putting a URL/destination to a link

62
New cards

Putting an image (no closing tag needed)

63
New cards

  • Creating a list of items

    64
    New cards

    A parent element for a

  • tag.
  • This will make a bulleted list.

    65
    New cards

    where {

    what: how;

    }

    Basic structure of a CSS

    66
    New cards

    / /

    Comments for CSS

    67
    New cards

    color: #ff0000;

    CSS color for Red

    68
    New cards

    font-size: 10px;

    Font size of 10 pixel for CSS

    69
    New cards

    font-family: "Avenir Next";

    font-family: serif;

    Font styles for CSS

    70
    New cards

    background-color: #ffd800;

    Background color for CSS

    71
    New cards

    class="Name that you selected"

    Naming a specific tag so you can only specify it for CSS changes

    72
    New cards

    li {

    }

    .selected {

    }

    During classification you must add a (.)period but not for tags like

  • 73
    New cards

    Basic structure of HTML

    74
    New cards

    Main structure of the of HTML

    75
    New cards

    A division element to divide the of HTML

    76
    New cards

    li {

    list-style: none;

    }

    Removing the bullets from the

  • 77
    New cards

    float: left;

    Align elements horizontally from left

    78
    New cards

    Header tag

    79
    New cards

    Footer tag

    80
    New cards

    background-image: url(URL);

    CSS to put a background image

    81
    New cards

    background-size: cover;

    CSS to fill the background with a single image

    82
    New cards

    margin: 0 auto;

    CSS to center the container class by having the margin auto (0 is for the top and bottom and auto for left and right)

    83
    New cards

    letter-spacing: 10px

    CSS for letter spacing

    84
    New cards

    opacity: 0.7

    CSS on how to make something invisible

    85
    New cards

    display: block;

    Makes an element VERTICALLY aligned and CAN specify width, height, margin, and paddings

    86
    New cards

    div:hover {

    background-color: red;

    }

    element in a hover mode and so when the cursor is pointing it, the background-color turns into red

    87
    New cards

    border-radius: 10px;

    Making a border-radius of 10px. Border-radius makes an element round, the bigger the px the more rounder it will be.

    88
    New cards

    text-align: center;

    Making an element align in the center. This could also be used with left or right.

    89
    New cards

    Difference between using margin and text-align is?

    Margin is use for block elements and so it will move the whole block to the center if auto margin is used. On the other hand, text-align is for inline or inline-block element and so it will move the text or button to the center.

    90
    New cards

    Font Awesome

    https://fontawesome.com/ to find icons for a website

    91
    New cards

    To put an Icon into your webpage

    92
    New cards

    background-color: rgba(84, 190, 238, 0.5);

    Turning the background-color to 0.5 transparent

    93
    New cards

    line-height: 10px;

    Specifying the height that a text occupies

    94
    New cards

    font-weight: normal; OR font-weight: bold;

    Changing the thickness of text

    95
    New cards

    box-shadow: 10px 10px #000

    Box-shadow property to add shadow to an element

    96
    New cards

    div:active {

    background-color: red;

    {

    To add an CSS to an element that is being clicked

    97
    New cards

    .btn:active {

    box-shadow: none;

    }

    Hide shadow when pressed

    98
    New cards

    .btn:active {

    position: relative;

    top: 10px;

    left: 7px;

    }

    Changing the position of an element when activated (clicked) so than when you click an element it looks like a 3D button has been clicked

    99
    New cards

    .logo {

    position: fixed;

    top: 10px

    left: 7px

    }

    To fix an element to a certain position even though the screen is scrolled