HTML Flashcards
What are the HTML “head” elements?
head title base link meta script style
What element should be used for a Navbar?
“nav” with inner “ul” and individual “li” elements
What is an inline element?
An element that does not start on a new line
What is a block element?
An element that starts on a new line and uses the full width of the container or page
What is the title attribute?
A tool-tip style window that appears on mouseover
What does the “strong” HTML element do?
It makes text bold and adds importance (i.e. deeper tone from text reader-software for blind consumers)
What does the “em” HTML element do?
Italicizes and adds stress emphasis (i.e. stress tone from text-reader software for blind consumers) to text
In HTML, why should you use “strong” over “b” and “em” over “i”?
They add importance to the text as well
What element highlights text?
“mark”
In HTML, how would you cite a title?
Using the “cite” element, which italicizes text by default
In HTML, what is the difference between an “absolute path” and a “relative path”
Relative paths are for local resources (files), which can be abbreviated, and absolute paths include “http://” or “https://” and the full path to the site
In HTML, what is the syntax for an external link?
The absolute path must be used (i.e. https://www.sample.com/samples)
When a user interacts with another website from within yours (i.e. in an iframe), do the requests come from the user or your server?
The user. The code is run by the browser, which acts of behalf of the user.
In HTML, what is the title element?
It determines what the title of a page is in search engine results and displays in the tab within the browser
Img elements aren’t valid without which attribute?
“alt”, which describes the image in the event that it cannot be rendered or for accessibility reasons