HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head element.
Where do you put visible content about the HTML document?
Within the body element.
Where do the head and body tags go in a valid HTML document?
Within the html element.
What is the purpose of a !DOCTYPE declaration?
To set the document type for the webpage. ie, html.
Give five examples of HTML element tags.
,div ,p , h1, h2, p
What is the purpose of HTML attributes?
To attach more info to an element
Give an example of an HTML entity (escape character).
© = copyright, & = &
How do block-level elements affect the document flow?
They create a new line at the end of every one.
How do inline elements affect the document flow?
They do not, they take place right after the previous element.
What are the default width and height of a block-level element?
Default width is 100% and the height is auto.
What are the default width and height of an inline element?
Width and height are auto.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists start the list item with ordered characters 1,a,I. while unordered lists use bullet points or other shapes
Is an HTML list a block element or an inline element?
An HTML list is a block element.
What HTML tag is used to link to another website?
The “<a> tag”</a>
What is an absolute URL?
The full web address for a website
What is a relative URL?
An address to another page within the same website
How do you indicate the relative link to a parent directory?
By using href=”../”
How do you indicate the relative link to a child directory?
By using href=that child directories name / the file
How do you indicate the relative link to a grand parent directory?
By using href=”../../”
How do you indicate the relative link to the same directory?
By using href=the name of the file you want to access
What is the purpose of an HTML form element?
To allow user input for certain tasks
Give five examples of form control elements.
input, select, textarea, form, button
Give three examples of type attributes for HTML elements.
text, radio, submit
Is an HTML element a block element or an inline element?
An inline element
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, tbody
What purpose do the thead and tbody elements serve?
semantic reasons for text readers
Give two examples of data that would lend itself well to being displayed in a table.
revenue, customer info, sports stats.