HTML Flashcards
Where do you put non-visible content about the HTML document?
Head element (metadata)
Where do you put visible content about the HTML document?
Body element
Where do the head and body tags go in a valid HTML document?
html element
what is the purpose of a !DOCUMENT declaration?
tell a browser which version of HTML the page is using
give five examples of HTML element tags
h1, p, a, img, span,
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 symbol - ©
how do block-level elements affect the document flow?
block-level elements will always appear to start on a new line
how do inline elements affect the document flow?
elements will always appear to continue on the same line as neighboring elements
what are the default width and height of a block-level element?
occupies any available width. 100% width, height auto
what are the default width and height of an inline element?
occupies as much space as necessary. width auto, height auto
what is the difference between an ordered list and an unordered list in HTML?
ordered lists have a identifiable sequence. unordered lists do not (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?
<a></a>, anchor tag
what is an absolute URL?
the full web address for the site