Section 1

Preview this deck

how do you override the css in the main style sheet for a few pages.

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (41)

Section 1

(41 cards)

how do you override the css in the main style sheet for a few pages.

Front

insert css in the head: <style type="text/css"> p {font-weight: normal; color: gray; } h1 {color: black; } </style>

Back

attribute: text-align

Front

put inside an element that has the following: used for centering inline elements or text

Back

Default widths for all block-level elements are all

Front

%100

Back

what is the span tag? <span> </span>

Front

it does nothing, but it's useful if you want to put ATTRIBUTES inside of it (such as CLASS or ID)

Back

and here is the link

Front

<a href="#top">link</a>

Back

Block-level elements

Front

used to format whole blocks of text — they stand out on their own, spanning the available screen-width and usually adding line breaks before and after themselves.

Back

ex. {display: inline;}

Front

displays as an inline element

Back

<a name="top"></a>

Front

you place this where you want the link to go

Back

two types of html elements

Front

block level elements, inline elements

Back

img attributes

Front

the following

Back

when do you use class and id

Front

class is for more than 1 element id is used for only 1 element.

Back

how do you make a nice line across the screen?

Front

<hr /> stands for: Horizontal Rule

Back

height and width attributes

Front

when the page loads, this is the size of the box where the image will be placed(after it has been downloaded)

Back

hspace and vspace="10"

Front

give space to your images

Back

aligning images

Front

use float float="left" image is on the left float="right" image is on the right

Back

another way to write : href="folder/index.html"

Front

href="folder/"

Back

the display property

Front

changes the way an element is displayed; an inline element can display like a block-level element or vice-versa

Back

you must have these in the following order: a:link { } a:visited { } a:hover { } a:active { }

Front

Love/Hate

Back

naming html files, folders, images

Front

use lowercase

Back

<br>

Front

line break, skips a line

Back

get all the links that occur in your navigation bar (which you've defined as <div id="navigation"> to be white

Front

div#navigation a {color: white; }

Back

make stronger lines

Front

<hr size="4" noshade>

Back

<p>

Front

skip a line then start a new paragraph

Back

alternatives to using id and class

Front

contextual style

Back

how many cells must each row contain

Front

equal number

Back

center text

Front

the style text-align=:""

Back

p strong {color: red; }

Front

all strong elements that are contained in paragraphs are now red

Back

inline elements

Front

cannot contain blocklevel elements

Back

rowspan="2" colspan="3"

Front

...

Back

difference between padding and margin

Front

padding is space INSIDE any borders you have made, and margin is OUTSIDE the borders.

Back

attribute format:

Front

<tag attribute="value">Affected Text</tag>

Back

for block level elements, Default margins, borders and padding are all set to WHAT

Front

0(there are some exceptions)

Back

how do you change the width of the line?

Front

<hr width="100">

Back

wichever style definition is closer...

Front

affects the text

Back

remove an element from a page entirely(from being seen )

Front

display: none;

Back

<img alt="for blind people">

Front

alt is REQUIRED FOR ALL IMAGES

Back

block level elements can contain what?

Front

other block level elements and inline elements

Back

how many css pages should you have

Front

1

Back

link to a folder in the same directory as your file

Front

href="folder/html.html"

Back

what are block level elements?

Front

elements that add line breaks around themselves.

Back

three main image formats

Front

giv, jpg, png

Back