HTML Flashcards
Where do you put non-visible content about the HTML document?
In the title element
Where do you put visible content about the HTML document?
In the body element
Where do the head and body tags go in a valid HTML document?
In between the opening html tag and closing html tag
What is the purpose of a declaration?
To tell the browser what HTML version you are using
Give five examples of HTML element tags.
anchor tags, paragraph tags, h1, div, section, main, nav, footer, header, ul, ol
What is the purpose of HTML attributes?
To give more information / be a modifier to the html element
Give an example of an HTML entity (escape character).
® (& reg)
How do block-level elements affect the document flow?
Each one starts on a new line and take up all the horizontal space of that line
How do inline elements affect the document flow?
They start along side the element they currently reside in.
What are the default width and height of a block-level element?
Height is dependant on what is inside
Width is 100% of the page
What are the default width and height of an inline element?
Height is dependant on what is inside
Width is dependant on what is inside
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists have numbers
Unordered lists just have bullet points
Is an HTML list a block element or an inline element?
Block element-each one starts on a new line
What HTML tag is used to link to another website?
The anchor tag (<a></a>)
What is an absolute URL?
URL that leads to a webpage not on your site.