HTML Flashcards
Where do you put non-visible content about the HTML document?
head element
Where do you put visible content about the HTML document?
body element
Where do the head and body tags go in a valid HTML document?
they are siblings that are children of the html element
What is the purpose of a !DOCTYPE declaration?
tell the browser what version of HTML the page is using
Give five examples of HTML element tags.
html, head, title, body, h1-h6, p…
What is the purpose of HTML attributes?
provide additional information about the contents of the element
Give an example of an HTML entity (escape character).
o < o > o & o “ o Cent sign ¢ o Pound sign £ o Yen sign ¥ o Euro sign € o Copyright symbol © o Registered trademark symbol ® o Trademark symbol ™ o Left single quote &1squo; o Right single quote ’ o Left double quotes “ o Right double quotes ” o Multiplication sign × o Division sign ÷
How do block-level elements affect the document flow?
Start a new line, take up the full width of the available space.
How do inline elements affect the document flow?
They do not interrupt the document flow and only take up as much space as they need
What are the default width and height of a block-level element?
The full width available and the height of the content
What are the default width and height of an inline element?
The width and height of the content
What is the difference between an ordered list and an unordered list in HTML?
Ordered are numbered lists where the order is meaningful. examples: recipe, turn by turn directions, legal contract where each point needs to be identified by a section number
Unordered are bulleted lists where the order does not matter.
Tip: To determine which list to use, try changing the order of the list items; if the meaning changes, use ol otherwise can use ul
Is an HTML list a block element or an inline element?
block
What HTML tag is used to link to another website?
a (anchor tag)
What is an absolute URL?
a web address to an external webpage