HTML Flashcards
Where do you put non-visible content about the HTML document?
In between the head opening and closing element tags
This will help describe the content of the web page
Where do you put the visible content about the HTML document?
In between the body opening and closing element tags
This will display in the web browser
Where do the head and body tags go in a valid HTML document?
In between the html opening and closing element tags
The html element tags will allow html code to be read by the browser
What is the purpose of a !DOCTYPE declaration?
This declaration tells the browser what html version is going to be used
Give five examples of HTML element types:
h1 h2 h3 p form span div button input
What is the purpose of HTML attributes?
Attributes provide additional information about, and adds functionality to, the contents of an element.
Give an example of an HTML entity (escape character):
Angled brackets < (& lt ;)
ampersand & (& amp ;)
These characters are reserved for HTML Code because these entities can be used as scripts
How do block-level elements affect the document flow?
It affects the document by starting on a new line and takes up the full width available
How do inline elements affect the document flow?
Inline elements do not affect the document flow
It only takes up as much space as the content inside of the inline element
What are the default width and height of a block-level element?
The height takes up as much space as the content inside of the block-level element
The width will use the full space available
What are the default width and height of an inline element?
The default width and height of an inline element is how much space the content inside of the inline element uses
What is the difference between an ordered list and an unordered list in HTML?
An ordered list will label li elements with order. Such as numbers, letters, or roman numerals.
An unordered list will label li elements without order. Such as bullet points, squares, or diamonds.
Is an HTML list a block element or an inline element?
A list is a block element
What HTML tag is used to link to another website?
An anchor tag is used with an href attribute with a value of an absolute URL
What is an absolute URL?
An absolute URL is a link to an outside resource