HTML Flashcards
Where do you put non-visible content about the HTML document?
Inside the head element
For meta data (data describing data)
Where do you put visible content about the HTML document?
Inside the body element
Where do theheadandbodytags go in a valid HTML document?
Inside the html element
head & body are children of html parent
Can also say they are nested
What is the purpose of a!DOCTYPEdeclaration?
Tell the browser which version of HTML the page is using so that the browser will render the page correctly
Give five examples of HTML element types.
head body p span title html h1 - h6 img
What is the purpose of HTML attributes?
Provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
> < & “ copyright, registered trademark, trademark, cent sign, multiplication/division sign, single and double quotes
How do block-level elements affect the document flow?
Start on a new line and take up the entire width of the page
Stacks on top of each other
How do inline elements affect the document flow?
Has potential to share the same space on the same line as their neighboring elements
What are the default width and height of a block-level element?
Occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents, thereby creating a “block”
Width: 100%
Height: Auto
What are the default width and height of an inline element?
Only occupy the space bounced by the tags defining the element, instead of breaking the flow of the content
Width and Height: Auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered: each item in the list is numbered
Unordered: item is bullet pointed
Is an HTML list a block element or an inline element?
Block
ol, ul, li
What HTML tag is used to link to another website?
Anchor tag : a href=””
What is an absolute URL?
The full web address for the site
Starts with domain name for that site, can be followed by the path to a specific page