HTML Flashcards
Where do the head and tags go in a valid HTML document?
The head and body tags are children of the HTML element and siblings of each other
What is the purpose of a declaration?
Instructs the browser what version of HTML is written in
Give five examples of HTML element types.
h1 header p image div
What is the purpose of HTML attributes?
HTML attributes provide additional information about HTML elements
Give an example of an HTML entity (escape character).
® registered trademark
© copyright symbol
greater than symbol
How do block-level elements affect the document flow?
Some elements will always appear to start on a new line in the browser window. These are known as block level elements.Examples of block elements are <h1>, </h1><p>, </p><ul>, and <li>.</li></ul>
How do inline elements affect the document flow?
Some elements will always appear to continue on the same line as their neighboring elements. These are known as inline elements. Examples of inline elements are <a>, <b>, <em>, and <img></img>.</em></b></a>
What are the default width and height of a block-level element?
By default, the height of a block element is the height of the content, and the width is the length of the page
What are the default width and height of an inline element?
An inline element does not start on a new line and only takes up as much width as necessary.Width and height are both auto.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are lists where each item in the list is numbered. For example, the list might be a set of steps for a recipe that must be performed in order, or a legal contract where each point needs to be identified by a section number.
Unordered lists are lists that begin with a bullet point (rather than characters that indicate order).
Is an HTML list a block element or an inline element?
Block elements
What HTML tag is used to link to another website?
a href=”http://www.imdb.com”>IMDB
What is an absolute URL?
full web address for the site includes domain
What is a relative URL?
A relative URL is a URL that only includes the path (or everything that comes after the domain
How do you indicate the relative link to a parent directory?
../