HTML Flashcards
HTML-SKELETON
Where do you put non-visible content about the HTML document?
Within the head element
HTML-SKELETON
Where do you put visible content about the HTML document?
Within the body element
HTML-SKELETON
Where do the head and body tags go in a valid HTML document?
in the HTML element
HTML-SKELETON
What is the purpose of a !DOCTYPE declaration?
To let the web browser know which version of HTML the page is written in
HTML-SYNTAX
Give five examples of HTML element types.
head, body, h1, p, div, etc.
HTML-SYNTAX
What is the purpose of HTML attributes?
Attributes define additional characteristics or properties of the element
HTML-SYNTAX
Give an example of an HTML entity (escape character).
&co py; (remove space between co and py) for copyright symbol, etc.
HTML-BLOCK-AND-INLINE
How do block-level elements affect the document flow?
takes all the space horizontally (width) and as much space as it needs vertically.
HTML-BLOCK-AND-INLINE
How do inline elements affect the document flow?
uses the space within the block. Does not start a new line.
HTML-BLOCK-AND-INLINE
What are the default width and height of a block-level element?
width: 100%;
height: auto;
HTML-BLOCK-AND-INLINE
What are the default width and height of an inline element?
width: auto;
height: auto;
HTML-LISTS
What is the difference between an ordered list and an unordered list in HTML?
ordered list = numbered list, etc.
unordered list = bullet points, etc.
HTML-LISTS
Is an HTML list a block element or an inline element?
block element
HTML-LINKS
What HTML tag is used to link to another website?
a tag (anchor) with href=”…link”>click here
HTML-LINKS
What is an absolute URL?
a link that is a website link