Implement and manipulate document structures and objects (24%) Flashcards
Which HTML control defines self-contained areas on a page?
article
Which HTML control defines smaller content areas outside the flow of a webpage?
aside
Which HTML control defines the caption of a figure element?
figcaption
Which HTML control defines content that contains a figure, such as an image, chart, or picture?
figure
Which HTML control defines text that should be highlighted?
mark
Which HTML control defines the bottom of a section or page?
footer
Which HTML control defines the top of a section or page?
header
Which HTML control defines a group of headings (H1–H6 elements)?
hgroup
Which HTML control defines navigation to other pages in the site?
nav
Which HTML control defines the progress of a task?
progress
Which HTML control defines the distinct content of a document?
section
What elements are contained in a basic HTML template?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title></title> </head> <body> <!-- page content goes here --> </body> </html>
What is the header tag?
Declares a header for any part of the web page. Intended to contain H1-H6, but can contain anything. Does not have to be at the top of the page. Does not actual position the content.
What is the article tag?
Represents a whole and complete piece of content like an article or blog post. Can be taken as-is and used outside the original website.
What is the section tag?
Used to subdivide an article tag.
What is the aside tag?
Contains content outside of the scope of the main content of the page. Does not actual position the content.
How are figure and figcaption tags used together?
<figure>
<img></img>
<figcaption>Fig 1: A really juicy orange.</figcaption>
</figure>
What is the progress tag?
Displays a progress bar. Can be determinate or indeterminate. To make indeterminate, omit the value attribute.
How do you create a determinate progress tag?
<progress></progress>
How do you create an indeterminate progress tag?
<progress></progress>
What is the mark tag?
Highlights a portion of the page.
What tags do search engines primarily look for?
Article and section tags.
Which DOM method gets an individual element on the page by its unique id attribute value
?
getElementById
Which DOM method gets all the elements that have the specified CSS class applied to them?
getElementsByClassName