HTML Flashcards
Where do you put non-visible content about the HTML document?
within the [head]
Where do you put visible content about the HTML document?
within the [body]
Where do the [head] and [body] tags go in a valid HTML document?
within the [html] tag
What is the purpose of a [DOCTYPE] declaration?
to tell the computer what type of document it will be reading
What is the purpose of HTML attributes?
to give more info to the html element
How do block-level elements affect the document flow?
put the content on a new line
How do inline elements affect the document flow?
put the content on the same line as other content
What are the default width and height of a block-level element?
width will take up entire length. height will take up as much space needed to display the contents.
What are the default width and height of an inline element?
both the defualt width and height will take up enough space to display contents
What is the difference between an ordered list and an unordered list in HTML?
ordered list have a perticular sequence while unordered list do not
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
the anchor tag <a> with the href attribute</a>
What is an absolute URL?
a URL to a different website (ex: http://google.com)
What is a relative URL?
a URL to a page on the same website (ex: index.html)
What are the six primary HTML elements for creating tables?
[table] , [thead], [tr], [td], [tbody]