HTML Flashcards
Where do you put non-visible content about the HTML document?
Within head tags
example: Title tags
Where do you put visible content about the HTML document?
Within body tags
Where do the head and body tags go in a valid HTML document?
goes under opening html tag
goes under closing head tag
What is the purpose of a !DOCTYPE declaration?
It tells a browser which version of HTML the page is using
Give five examples of HTML element tags.
html, head, title, body, h1
What is the purpose of HTML attributes?
to give extra information about the element’s content
Give an example of an HTML entity (escape character).
(©) copyright, (®) registered trademark, (&trade)trademark, (¢) cent sign
How do block-level elements affect the document flow?
creates another row/line
Takes up the full width of the row
How do inline elements affect the document flow?
changes the document character within the same row
What are the default width and height of a block-level element?
Starts in a new line and takes up the full width and height of the line
What are the default width and height of an inline element?
Stays in the same line and takes up the full width and height of the character/element
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists uses numbers/letters/roman numerals
Unordered lists uses bullet points or other symbols
OLs and ULs are always followed by LIs
Within nest LIs, you can nest DIVs, Ps, Spans
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
What is an absolute URL?
Linking full web addresses