HTML Flashcards
Where do you put non-visible content about the HTML document?
head element
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?
between opening tag of html element and closing tag of html element
What is the purpose of a DOCTYPE declaration?
to tell which browser version of HTML the page is using
Give five examples of HTML element tags.
head element, title element, body element, h1 element, paragraph element,
What is the purpose of HTML attributes?
gives extra info about the element
Give an example of an HTML entity (escape character).
copyright symbol & registered trademark
How do block-level elements affect the document flow?
Elements will 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 their neighboring elements
What are the default width and height of a block-level element?
width: 100%;
height: auto;
What are the default width and height of an inline element?
width: auto;
height: auto;
What is the difference between an ordered list and an unordered list in HTML?
an ordered list is where each item in the list is numbered and an unordered list is where each item in the list begins with a bullet point
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
anchor element
What is an absolute URL?
entire URL includes domain name of website