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?
between html tags
What is the purpose of a doctype declaration?
to tell the browser whaat version of html you are using
What HTML tag is used to link to another website?
anchor tag with an href attribute with value set to an absolute url
What is an absolute URL?
an absolute URL is a direct link to another website. Contains http or https
What is a relative URL?
links to a different page on the same site. (Same application)
Give five examples of HTML element tags.
h1 h2 h3 p a img
What is the purpose of HTML attributes?
to modify an html type
Give an example of an HTML entity (escape character).
© & ®
How do block-level elements affect the document flow?
they force the following content to a new line
How do inline elements affect the document flow?
inline elements only take as much space as they need and allow other content to sit right next to them
What are the default width and height of a block-level element?
width is 100% of available with. And height is only as much space as needed
What are the default width and height of an inline element?
both height and width take up as much space as need to fit the contained content and do not take up and more space
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are displayed as numbered lists whereas an unordered list is displayed with bullet points