HTML Flashcards
Where do you put non-visible content about the HTML document?
In the head tag
Where do you put visible content about the HTML document?
In the body tag
Where do the head and body tags go in a valid HTML document?
In the HTML tag
What is the purpose of a !DOCTYPE declaration?
To declare which version of document is in used. but mainly to declare which version of html to use.
Give five examples of HTML element types.
html, head, body, title, div,
What is the purpose of HTML attributes?
to give additional information about the element. ie class, id, href, lang.
Give an example of an HTML entity (escape character)
special character such as the trademark, copyrights, or the angle bracket
How do block-level elements affect the document flow?
Each block element is a new line. They are physically unable to share space.
How do inline elements affect the document flow?
Inline take just as much space as they need and are able to share the space with other element.
What are the default width and height of a block-level element?
The height is the same height as the content. where as the width is the same as the view point.
What are the default width and height of an inline element?
the width and height of inline elements are the same as the content in those element
What is the difference between an ordered list and an unordered list in HTML?
The prefixes for the list item. ordered list (ol) numbered the list item, whereas unordered (ul) just bullet point the list items
Is an HTML list a block element or an inline element?
Yes, Both ul and ol are block elements and so is the li element.
What HTML tag is used to link to another website?
a element tag with href attribute.
What is an absolute URL?
url of a different site