HTML Flashcards
Where do you put non-visible content about the HTML document?
head
Where do you put visible content about the HTML document?
body
Where do the head and body tags go in a valid HTML document?
html
What is the purpose of a DOCTYPE declaration?
DOCTYPE declaration tells the browser which version of HTML the page is using.
What is the purpose of HTML attributes?
HTML attributes give additional info about contents of the element.
Give an example of an HTML entity (escape character)?
&
"
©
How to block-level elements affect the document flow?
Start on a new line
Are 100% width
How do inline elements affect the document flow?
Share space with neighboring inline elements and only takes as much space as needed to fit content
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?
Ordered list is numerically listed
Unordered list is bullet point listed
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
a
What is an absolute URL?
Absolute URL’s lead to other websites and contain a domain name and full web address.
a href=”http://www.empireonline.com”
What is a relative URL?
Relative URL’s lead to pages within the current website.
a href=”contact.html”