html Flashcards
Where do you put non-visible content?
The head of the document
Where do you put visible content about the html document?
The body of the document
where do the head and body tags go in a valid HTML Doc?
They go inside the tag. The head is about the body tag.
Purpose of !DOCTYPE ?
It tells the browser what language to expect
5 examples of HTML tags:
head, body, span, img, html
What is the purpose of HTML attributes?
They apply special values to html elements
give of example of an HTML entity:
The & sign
How do block-level elements affect document flow?
Block elements take up the full width and the height can be adjusted. They do not share lines.
How do inline elements affect flow?
Inline elements only take the space they need and they share lines.
What is the default height and width of a block-level element?
Block level elements are the full width of the parent container and they take on the height of the content
What is the difference between OL and UL?
Organized lists are numbered and in order while UL lists are usually preceded by bullets.
Is an HTML list a block or inline element?
Block
What HTML tag is used to link to another website?
You use the anchor tag with an absolute URL
What is an absolute URL?
It is a URL that can be accessed from other servers. It holds more info.
What is a relative URL?
It loads links within the same server only, although faster.