HTML Flashcards
Where do you put non-visible content about the HTML document?
Within the head html tags
Where do you put visible content about the HTML document?
Within the body html tags
Where do the and tags go in a valid HTML document?
Within the html element. Typically head, then body below
What is the purpose of a declaration?
Tells the browser which html version we are working with
Give five examples of HTML element tags.
anchor(a), paragraph(p), headings(h1), image(img), meta
What is the purpose of HTML attributes?
Provides additional information
Gives elements additional properties
Made up of 2 parts:
Name + value
Give an example of an HTML entity (escape character).
® trademark symbol
How do block-level elements affect the document flow?
Block-level elements are stacked on top of each other
How do inline elements affect the document flow?
Inline elements are contained on the same line and does not disturb the flow of the document
What are the default width and height of a block-level element?
The default width covers the full width available of the display
The height will only take up as much space as needed
What are the default width and height of an inline element?
The default width takes up as much space as needed
The height will only take up as much space as needed
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists have the li element specifying that they are numbered and unordered lists uses bullet points
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
Anchor tag <a></a>
What is an absolute URL?
It contains the full address of the location