HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head element.
Where do you put visible content about the HTML document?
In the body element.
Where do the head andbodytags go in a valid HTML document?
In the html tag.
The content within the head tag will appear in the title bar at the top of the browser.
The content within the body tag will appear in the main browser window.
What is the purpose of a DOCTYPEdeclaration?
The DOCTYPE element declares which version of HTML the page is using.
Give five examples of HTML element tags.
<p>, </p>
<h1>-<h6>, <div>, <img></img>, <span></span></div></h6></h1>
What is the purpose of HTML attributes?
It provides additional information about the contents of an element.
Give an example of an HTML entity (escape character).
© < ®
How do block-level elements affect the document flow?
The block-level element takes up the entire horizontal space.
How do inline elements affect the document flow?
stay in the same line.
What are the default width and height of a block-level element?
The entire width of the parent element. The height of the content.
What are the default width and height of an inline element?
It takes as much as space it needed.
What is the difference between an ordered list and an unordered list in HTML?
The ordered list is the items in the list are numbered.
The unordered list is the items that begin with a bullet point.
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
The href attribute is full web address.
What is a relative URL?
The href attribute is the
name of the file.
How do you indicate the relative link to a parent directory?
../ and then followed by the file name
How do you indicate the relative link to a child directory?
The name of the child folder followed by a forward slash and then the file name
How do you indicate the relative link to a grandparent directory?
../../then followed by the file name.
How do you indicate the relative link to the same directory?
just use the file name
What is the purpose of an HTML form element?
collect user data
Give five examples of form control elements.
input, textarea, select, option, button, label
Give three examples of type attributes for HTML elements.
text, password, radio, checkbox, submit
Is an input HTML element a block element or an inline element?
inline element
What are the six primary HTML elements for creating tables?
table, thead, tr, th, td, tbody
What purpose do the thead and tbody elements serve?
thead-the headings of the table
tbody-the body of the table
Give two examples of data that would lend itself well to being displayed in a table.
financial report, TV schedule, and sports results.