HTML Flashcards
Where do you put non-visible content about the HTML document?
In between the opening & closing head tag.
Where do you put visible content about the HTML document?
In between the opening & closing body tag.
Where do the head and body tags go in a valid HTML document?
Inside the html tag. Head tag goes first, then body tag.
What is the purpose of a declaration?
Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document.
In quirks mode, layout emulates nonstandard behavior in Navigator 4 and Internet Explorer 5.
Give five examples of HTML element types.
body element, head element, div element, p element & h1 element.
What is the purpose of HTML attributes?
Attributes are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want.
Give an example of an HTML entity (escape character).
© (This is the copyright sign).
How do block-level elements affect the document flow?
Block-Level elements always take up the whole line & will also appear to start on a new line on the browser window.
How do inline elements affect the document flow?
Unlike block-level elements, inlines do not start on a new line and stay on their same line as their neighboring elements.
What is the default width and height of a block-level element?
A block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents (aka auto), thereby creating a “block”.
What is the default width and height of an inline element?
An inline element does not start on a new line and only takes up as much width as necessary. The vertical space equal to the height of its contents, aka “auto”.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered whereas an unordered list uses bullets.
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 anchor tag.
What is an absolute URL?
When you link to a different website, the value of the href attribute will be the full web address, showing the domain aka the “absolute URL”.