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 and tags go in a valid HTML document?
In the html element
What is the purpose of a declaration?
To tell the browser we are rocking with HTML5
Give five examples of HTML element tags.
p, h1, img, a, span
What is the purpose of HTML attributes?
To give additional information about elements
Give an example of an HTML entity (escape character).
Ampersand followed by character name
How do block-level elements affect the document flow?
It takes up the whole width of the web page
and also starts a new line
How do inline elements affect the document flow?
It takes up as much space as it needs and no more
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are numbered and unordered lists are bullet-pointed
Is an HTML list a block element or an inline element?
HTML list is a block element
What HTML tag is used to link to another website?
anchor tag with attribute href
What is an absolute URL?
Absolute URL is links to web pages like google
What is a relative URL?
Relative URL is links to relative pages from the currect working directory
How do you indicate the relative link to a parent directory?
To parent directory, dot dot slash (../)