dec2 test Flashcards

1
Q

what is the code to link an html page to a css page

A

link rel=”stylesheet” type = “text/css” href=”filename.css”/>

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

Name 3 font names and 3 generic font names

A

“Comic Sans MS”, “Arial”, “Brush Script MT”

“serif”, “sans serif”, “monospace”

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

embed a font family

A

@font-face{
font-family: myfavfont;
src:url(realnameoffont.ttf);

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

code a class element in html and for css

A

html: <p class="example"></p>
css: .example{style}

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

code the id attribute in html and css

A

html: <p></p>
css: #sample{style}

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

code a div span in html and css

A

html: <span>the word you want to look different</span>
css: .nameofsomething{style}

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

code a flex container and a flex item in html and css

A

html: <div class="mainflexcontainer">

<div></div>

</div>

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

what are some examples of code used to style a flex container

A

{display:flex;
flex-direction:row;
justify-content:center;
}

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

what are some examples of code used to style a flex item

A

{background-color:blue;
color:red;
font-size:1em
text-align:center;

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

what is the code for a form element?

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

what is the code for a label?

A

Instruction!

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

code a textbox

A

placeholder can be used instead of value. We can also make this a required field by adding the word required before the slash (required/>)

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

code a fieldset

A

Command for user

html elements here

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

code a text area

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

code a listbox

A

Choose a thing

This is the first option
This is the second option
This is your final option

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

code a checkbox

A

yes or no?

17
Q

code 3 radio buttons

A
18
Q

code a button with no javascript attached

A

press me

19
Q

code a button which will do something when clicked (code the html and the js)

A
html:<p></p>
clickhere
js: function myFunction{
var option="you clicked";
document.getElementByID("demo").innerHTML=option;}
20
Q

code a button that will change the color of the page when clicked (html and js, assuming the page already has css)

A

html:<p></p>
Click here to change color
js: function changeColour{
document.body.style.background-color=red;}