HTML Flashcards
What is the purpose of a declaration?
To tell the browser what version of HTML we are using
What is the purpose of HTML attributes
To give information about the html element such as links and what language the element is in
Give an example of an HTML entity (escape character)
® for registration trademark; © for copyright
How do block-level elements affect the document flow?
They take up the entire width of the document
How do inline elements affect the document flow?
They can fit within block elements and do not take up the entire width of a document
What are the default width and height of a block-level element?
The width is entire width of document. Height is how much space the content takes up.
What are the default width and height of an inline element?
The width and height are just how much space the content takes up
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered, and an unordered list isn’t
Is an HTML list a block element or an inline element?
It is a block element
What HTML tag is used to link to another website?
The <a> tag</a>
a
What is an absolute URL?
An absolute URL is a ‘full’ URL that contains the entire address of the page or file
What is a relative URL?
A link that shows where a file is relevant to the current file
How do you indicate the relative link to a parent directory?
use ../ to indicate folder above it, then the file name
How do you indicate the relative link to a child directory?
name of child folder followed by a forward slash
How do you indicate the relative link to a grand parent directory?
use ../ twice to indicate two folders above it, then the file name
How do you indicate the relative link to the same directory?
Just put the file name
What is the purpose of an HTML form element?
To submit information to the website
Give five examples of form control elements.
label, textarea, button, select, input, fieldset
Give three examples of type attributes for HTML form elements.
file, radio, password, checkbox, date, email, image, search, submit, url
Is an HTML form element a block element or an inline element?
inline element
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, and tbody
What purpose do the thead and tbody elements serve?
thead is for the header of the table, and tbody is for the body of the table