HTML Flashcards
Where do you put non-visible content about the HTML document?
In the < head > tag
Where do you put visible content about the HTML document?
In the < body > tag
Where do the < head > and < body > tags go in a valid HTML document?
In the < HTML > tag
What is the purpose of a < !DOCTYPE > declaration?
To let the browser know what type of document this is.
What is the purpose of HTML attributes?
To provide more information about the element
What is an HTML entity?
Special characters and characters that may disrupt the flow of the HTML document. Copyright and Trademark and Angle Brackets are examples.
How do block-level elements affect the document flow?
Block-level elements will start on a new line and the element that follows will also start on a new line.
How to inline elements affect the document flow?
Inline elements continue on the same line as their neighboring elements.
What are the default width and height of a block-level element?
Default width is the maximum wdith available. Default height is equal to the height of its contents.
What are the default width and height of an inline element?
The default height and width is the minimum amount of space necessary for the contents of the element.
What is the difference between an ordered list and an unordered list in HTML
Ordered lists have a specific order to the list items, unordered lists 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 < a > tag
What is an absolute URL?
The full web address for a new/different website
What is a relative URL?
The shorthand way to access/link another page of the same website/on your domain