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