HTML Flashcards
(30 cards)
Where do you put non-visible content about the HTML document?
Inside the HEAD tag
Where do you put visible content about the HTML document?
Inside the BODY tag
Where do the and tags go in a valid HTML document?
Inside the HTML tag
What is the purpose of a declaration?
To tell a browser which version of HTML the page is using
Give five examples of HTML element types:
Head, Body, Paragraph, H1, IMG
What is the purpose of HTML attributes?
They provide additional information about the contents of an element.
Give an example of an HTML entity (escape character):
© | ®
How do block-level elements affect the document flow?
Block-Level elements affect the document flow by occupying the entire horizontal space, and pushing all other elements into a new line. It’s height is determined by the content but can be set customized.
How do inline elements affect the document flow?
Inline-Level elements affect the document flow differently because it does not start on a new line and only takes up as much space (vertically & horizontally) as needed.
What are the default width and height of a block-level element?
The default width is 100% (taking the full width available, and the height is determined by the content but is customizable.
What are the default width and height of an inline element?
The default width and height is determine by content only, you cannot adjust or customize.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered and each item is in a specific order
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
<a> along with </a><a> </a>
What is an absolute URL?
A link which goes to a different website.
What is a relative URL?
A link which goes to a page/section within the same site.
What HTML tag is used to link to another website?
<a></a>
What is an absolute URL?
A link which goes to a different website.
What is a relative URL?
A link which goes to a page/section within the same site.
How do you indicate the relative link to a parent directory?
How do you indicate the relative link to a parent directory?
../ followed by the file name
How do you indicate the relative link to a child directory?
Name of child folder followed by a forward slash
How do you indicate the relative link to a grand parent directory?
../../ followed by the file name
How do you indicate the relative link to the same directory?
Just use the file name
What is the purpose of an HTML form element?
Its purpose is to collect data from your users through a set of elements.