HTML Flashcards
Where do you put non-visible content about the HTML document?
in the head
Where do you put visible content about the HTML document?
in the body
Where do the head and body tags go in a valid HTML document?
- head is the first thing that comes after the html tag
- body goes after the head
What is the purpose of a !DOCTYPE declaration?
lets the browser know what version of HTML the page is written in
Give five examples of HTML element tags.
head, body, p, h1, h2, h3
What is the purpose of HTML attributes?
changes or adds more information to the html element
Give an example of an HTML entity (escape character).
< > & ‘’”” copyright, trademark, etc.
How do block-level elements affect the document flow?
takes up 100% width (the whole line)
How do inline elements affect the document flow?
takes up however much horizontal space it takes
What are the default width and height of a block-level element?
- width 100%
- height: auto (however much vertical space it takes)
What are the default width and height of an inline element?
- width: auto (however much horizontal space it takes)
- height: auto (however much vertical space it takes)
What is the difference between an ordered list and an unordered list in HTML?
- ordered list is numbered
- unordered list uses bullet points
Is an HTML list a block element or an inline element?
-block
What HTML tag is used to link to another website?
<a></a>
What is an absolute URL?
the full page address of a webpage or web file
What is a relative URL?
uses a file path to link to a file in the same relative location as the root file