alt
attribute being used in a website?
alt
title
attribute that displays info the user when they hover over the image<figure>
or <figcaption>
for ease of understanding its rolfigure
element would be useful in an HTML document.
id
or create a class
of images for ease of formatting in CSSgif
image and an svg
image, pretend you are explaining to an elder in your community.
gif
can be use for animations while svg
supports static imagessvg
contains all the code required to make the image and can be drawn to scale at any sizePNG
because of lossless compression. This means that my text within my image will stay sharp, as opposed to becoming fuzzy as with a JPEGfont-size
, font-weight
, and font-style
do to HTML text elements?
font-size
: changes the size of the fontfont-weight
: changes how thick the font isfont-style
: sets it normal, italic, or obliqueh1
element.
letter-spacing
could be increased to increase the space between individual letters
word-spacing
could be increased to increase the space between words in the header<script>
in html file is ok given what we’ve learned so far, but we will be adding .eventListener
functions into our code to make it execute based on events in the browser// if correct >>
alert(`Correct! ${responseAlert[i]}`);
countCorrect = countCorrect + 1;
//Those two lines could be placed into a single function like so:
function correct() {
alert(`Correct! ${responseAlert[i]}`);
countCorrect = countCorrect + 1;
}
// This function could then be referenced by each branch of the 'correct' logic tree
pop()
shift()
push()
unshift()
Keep boxes without content from collapsing when using display: float;
by:
.clearfix:after {
content:"";
clear: both;
display: table;
}
float
property and removing the box from the normal flow*
at the top of CSS files to make global changesmargin: auto;
centers a box in the middle of the viewportmargin
has values go clockwise starting from the top
margin: top right bottom left;