HTML Flashcards
Where do you put non-visible content about the HTML document?
In head element
Where do you put visible content about the HTML document?
In body element
Give five examples of HTML element types.
head element, p element, img element, a element, h1
What is the purpose of HTML attributes?
To provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
© Copyright symbol, ® Registered trademark, “ Quotation mark
How do block-level elements affect the document flow?
It always appear to start on a new line in the browser window.
h1, p, ul, li
How do inline elements affect the document flow?
It will always appear to continue on the same line as their neighbouring elements.
Examples of inline elements are a, b, em, img.
What are the default width and height of a block-level element?
The default width of a block-level element is the length of the page.
What are the default width and height of an inline element?
The height of an inline element is the height of the content.
The width of an inline element is the width of the content
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are lists where each item in the list is numbered.
Unordered lists are lists that begin with a bullet point.
Is an HTML list a block element or an inline element?
List (Ordered, Unordered, Description and List Item) tags ol , ul , dl is a a block element.
What HTML tag is used to link to another website?
Links are created using the a element which has an attribute called href.
What is an absolute URL?
It’s a link to a different website.
What is a relative URL?
Link to other pages within the same site, no need to specify the domain name in the URL
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one, then follow it with the file name.