HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head tag
Where do you put visible content about the HTML document?
Within the body tag
Where do the head and body tags go in a valid HTML document?
The head goes at the top, below the doctype declaration and html tag
The body will come after the head tag
What is the purpose of a DOCTYPE declaration?
It lets us know what version of HTML you are using
Give five examples of HTML element types.
!DOCTYPE, head, body, footer, ul, li
What is the purpose of HTML attributes?
Attribute tell us more information about the element
Give an example of an HTML entity (escape character).
& with copy © is the copyright symbol and & with reg ® is the registered trademark symbol
How do block-level elements affect the document flow?
Block-level elements always start on a new line
How do inline elements affect the document flow?
Inline elements continue in the same line as their neighboring elements
What are the default width and height of a block-level element?
The width of its parent element and the height of its content
What are the default width and height of an inline element?
The height and width of its content
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered while and unordered list has bullet points
Is an HTML list a block element or an inline element?
Lists are block elements because they start on new line
What is a relative URL?
A relative URL is a link to a file within the same domain
What is an absolute URL?
an absolute URL links to an exact webpage using the entire URL
What HTML tag is used to link to another website?
The anchor or a tag is used to link to another website
What is the purpose of an HTML form element?
Forms allow users to search for or input information
Give five examples of form control elements.
Form, input, textarea, select, option, button
Give three examples of type attribute values for HTML input elements
id, type, name
Is an HTML input element a block or inline element?
Inline element
How do you indicate the relative link to a parent directory?
../parentdirectory.file
How do you indicate the relative link to a child directory?
ParentDirectory.file/ChildDirectory.file
How do you indicate the relative to a grandparent directory?
../../grandparentdirectory.file
How do you indicate the relative link to the same directory?
nameOfFile.file
What are the six primary HTML elements for creating tables?
tr, td, th, thead, tbody, tfoot
What purpose do the thead and tbody elements serve?
The thead contains the rows that represent the heading of each column of the table.
The tbody contains the tables rows that represent the data that should be displayed in the table.
Give two examples of data that would lend itself to being displayed in a table
Stocks and banking spending reports