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
In HTML, why should the “alt” attribute be as descriptive as possible?
It helps consumers that have visual impairments to understand what’s being displayed as best as possible
When should you use a blank “alt” attribute in HTML?
When using a logo with a descriptive name (i.e. logo.jpg) or simple decorative images (i.e. replacing bullets with a small decorative red ball)
In HTML, what does the link element do?
Links two pages together (i.e. a webpage to a main CSS file)
What are the required attributes for a link element in HTML?
“href” and “rel”
What is the default for height and width in a HTML block element?
Height: 0px
Width: 100% of parent element
Define “markup” as it pertains to HTML
A set of tags assigned to elements of a text to indicate their relation to the rest of the text or dictate how they should be displayed
What is the “section” element used for in HTML?
It separates major sections of the layout (generic form of header/main/footer)