LEARNINGFUZE Flashcards
Where do you put non-visible content about the HTML document?
In the head tags
Where do you put visible content about the HTML document?
In the body tags
Where do thehead andbody tags go in a valid HTML document?
under the html tag
head first and then body
What is the purpose of a!DOCTYPEdeclaration?
to make sure the relevant code is written and read according to the document type.
Give five examples of HTML element tags.
head, body, title, h1, p
What is the purpose of HTML attributes?
to give more information about the HTML elements and to help add detail to the elements
Give an example of an HTML entity (escape character).
reg = registered trademark $copy = copyright symbol
How do block-level elements affect the document flow?
it occupies the entire horizontal space of its parent element
How do inline elements affect the document flow?
they only occupy the space bounded by the tags defining the element instead of breaking the flow of the content.
What are the default width and height of a block-level element?
A block-level element always starts on a new line and takes up the full width available
What are the default width and height of an inline element?
An inline element does not start on a new line and only takes up as much width as necessary.
What is the difference between an ordered list and an unordered list in HTML?
an ordered list is numbered and an unordered list is bullets
Is an HTML list a block element or an inline element?
It is an block element
What HTML tag is used to link to another website?
a tag
What is an absolute URL?
An Absolute URL is needed when you are entering into a completely new site and therefore you need the entire URL to access it
What is a relative URL?
a relative URL is a reference in which the URL does not need to be fully written because the link is on the same website or the same folder/project
target=“_blank - opens up link to a new tab
How do you indicate the relative link to a parent directory?
Music/listing.html