QUESTIONS AND ANSWERS ALREADY PASSED
How do you include images in HTML? - Answers <img src=[relative/absolute]>
Why would you include "objects" on an HTML page? - Answers Allow other items that do not
allow the image mold; like plug-ins, applets, videos.
What is also required in an image tag besides src? - Answers alt=""; containing some alternative
text
Is the "px" required in height/width on img tags? - Answers No.
What is the issue with using height/width on image tags to crop? - Answers It doesn't actually
affect the size of the image itself, only the visual representation of it.
How do you pass parameters to an object? - Answers <object>
<param name="" value="" />
</object>
How is the HTML5 spec split? - Answers The working group ("the numbered version") and the
living spec, which is what the W3C is concerned.
How are the audio/video controls different in HTML5? - Answers They are the same.
How is section and div different in terms of grouping elements? - Answers Section is used when
there is no regard for styling and div should be used if the purpose is to make elements look
different.
What is pubdate? - Answers A variable in time tag that represents the publish date.
What is the DOM? - Answers The W3C Document Object Model
When using the Selection API in HTML5, what is used to query for IDs, classnames, and CSS3
selector? - Answers ID: #
Classnames: . (period)
CSS3: correct syntax ('div:nth-child...')
What is the difference between using document.getElementsByClassName and
document.querySelectorAll? - Answers getElementsByClassName is considered a live result
where the result set is immediately updated if the underlying DOM structure changes.
querySelectorAll is not.
How to shift focus to an event? - Answers autofocus attribute
, What are the steps to a datalist to text input? - Answers Add a list="name" attribute to the list
tag and create a datalist tag with id="name" with option tags representing items in the list.
How to invalidate a form item? - Answers element.setCustomValidity('invalid')
What is an issue with video formats? - Answers There is no common format.
What are two audio formats that are near universal? - Answers AAC/MP3
How do you create a fallback experience for audio/video? - Answers Just put an HTML element
inside the audio/video tags.
Difference between raster and vector images? - Answers Raster is an explicit, pixel image that
will lose definition on zoom. Vector images are instructions regarding drawing images.
What is a canvas? - Answers Drawing surface that is rasterized. Combination of the canvas
HTML element and JS API built on a grid system.
What values can .addColorStop on a gradient take? - Answers Value between 0 and 1 inclusively.
In a radial gradient arc, what must the end angle value take? - Answers Math.PI * 2
How do you stop an animation? - Answers clearInterval on the frame interval
What is the method used to clip and what is it called on? - Answers context.clip();
Where context = canvas.getContext('2d');
What needs to happen before rendering when you are clipping an image? - Answers You should
have your clip area established before rendering onto the canvas.
What is one way to reset your clip area? - Answers Save and restore states.
How does drag and drop work? - Answers You have to define a drag source and drop target. But
you must cancel the default behavior on the drop target.
When can a drop target accept a drop? - Answers 1) Handle the drop events
2) Correctly cancel the default behavior, which is allow dropping in order to allow the drop
operation to continue.
What are some drag/drop events? - Answers drag (drag src)
dragover (req. cancellation)
dragstart (drag src)