dec2 test Flashcards
what is the code to link an html page to a css page
link rel=”stylesheet” type = “text/css” href=”filename.css”/>
Name 3 font names and 3 generic font names
“Comic Sans MS”, “Arial”, “Brush Script MT”
“serif”, “sans serif”, “monospace”
embed a font family
@font-face{
font-family: myfavfont;
src:url(realnameoffont.ttf);
code a class element in html and for css
html: <p class="example"></p>
css: .example{style}
code the id attribute in html and css
html: <p></p>
css: #sample{style}
code a div span in html and css
html: <span>the word you want to look different</span>
css: .nameofsomething{style}
code a flex container and a flex item in html and css
html: <div class="mainflexcontainer">
<div></div>
</div>
what are some examples of code used to style a flex container
{display:flex;
flex-direction:row;
justify-content:center;
}
what are some examples of code used to style a flex item
{background-color:blue;
color:red;
font-size:1em
text-align:center;
what is the code for a form element?
what is the code for a label?
Instruction!
code a textbox
placeholder can be used instead of value. We can also make this a required field by adding the word required before the slash (required/>)
code a fieldset
Command for user
html elements here
code a text area
code a listbox
Choose a thing
This is the first option
This is the second option
This is your final option