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 and body tags go in a valid HTML document?
The head tags go immediately after the opening html tag and the body tags go after the closing head tag.
What is the purpose of a !DOCTYPE declaration?
To instruct the browser what version of HTML is being used.
Give five examples of HTML tags.
html, head, title, body, h1
What is the purpose of HTML attributes.
Attributes specify additional information for the elements.
Give an example of an HTML entity (escape character).
© ampersand immediately followed by copy;
How do block-level elements affect the document flow?
Block elements always start on new lines in the browser window.
How do inline elements affect the document flow?
Inline elements always appear on the same line as their neighboring elements if space permits it.
What are the default width and height of a block-level element?
Default width is inherited from parent element, default height is auto.
What are the default width and height of an inline element?
Default width is auto, default height is auto.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is indexed whereas an unordered list uses bullet points.
Is an HTML list a block element or an inline element?
It is a block element.
What HTML tag is used to link to another website?
The anchor (a) tag.
What is an absolute URL?
An absolute URL is a URL that includes the domain name of the website.