Html Flashcards
Where do you put non-visible content about the HTML document?
In the head element
Where do you put visible content about the HTML document?
In the body element
Where do the head and body tags go in a valid HTML document?
in the html element
What is the purpose of a doctype declaration?
To tell the browser what HTML version is being used
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered like steps while unordered list are listed in bullet points with no particular steps
Is an HTML list a block element or an inline element?
Block element since each list starts in a new line
What are the default width and height of a block-level element?
Width will be 100% which is full width of its whole block, height is however many line it takes for the content to fill up or “auto”
What are the default width and height of an inline element?
Auto for both
Give an example of an HTML entity (escape character).
© for copyright symbol, ® for registered trademark
What is the purpose of HTML attributes?
They modify HTML element type
How do block-level elements affect the document flow?
They affect the flow by starting every element on a new line. It is useful for clear organization.
How do inline elements affect the document flow?
They affect the flow by allowing multiple spaces to be taken within the same lines and take as much space as needed.
Give five examples of HTML element tags.
Html, body, head, title, h1
How do you indicate the relative link to a parent directory?
../ follow by the file name
How do you indicate the relative link to a child directory?
File name/file name