HTML Flashcards
What is the difference between an ordered list and an unordered list in HTML?
Ordered List = Numbered List
Unordered List = Bullet Point List
Is an HTML list a block element or an inline element?
List elements = ol , ul , dl
Block Element
Where do you put non-visible content about the HTML document?
Head Element
Non-visible / Metadata content is stored in the head element of the HTML document.
Where do you put visible content about the HTML document?
Body Element
All visible content on the HTML document is stored in the Body Element.
Where do the head and body tags go in a valid HTML document?
head tag goes right after the html tag
body tag is placed after the head tag
What is the purpose of a DOCTYPE declaration?
DOCTYPE declaration is used to tell the browser which version of HTML the page is using
Give five examples of HTML element types.
<p></p>
<span></span><em></em><strong></strong><h1></h1> - <h6></h6><ul></ul><ol></ol><li><a></a></li>
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
© = copyright
® = registered trademark
& = ampersand(&)
How do block-level elements affect the document flow?
Block-level elements start a new line and take up 100% of the width available
height: auto;
width: 100%;
How do inline elements affect the document flow?
Inline elements do not break the flow of the document and only occupy the space bounded by its tags.
height: auto
width: auto
What are the default width and height of a block-level element?
block-level element:
height: auto;
width: 100%;
What are the default width and height of an inline element?
Inline element:
Height: auto;
Width: auto;
What HTML tag is used to link to another website?
Anchor (a) tag is used to link to another website
What is an absolute URL?
Absolute URL is used to link to a different website and will include the full URL.
e.g. https://www.google.com