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?
Within the opening and closing HTML elements
What is the purpose of DOCTYPE declaration
It lets the browser know what version of HTML it is using.
Give five examples of HTML element tags
Head, body, title, meta, p
What is the purpose of HTML attributes?
the attribute name indicates what kind of extra information you are supplying about the elements content.
Give an example of an HTML entity(escape character)
copyright ©
How do block-level elements affect the document flow?
The take up all horizontal space in a line
How do inline elements affect the document flow?
They take up the same line as their neighboring elements
What are the default width and height of a block-level element?
Width is 100% and height is auto.
What are the default width and height of an inline element?
Width is auto and height is auto.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list uses numbers and an unordered list uses bullet points.
Is an HTML list a block element or an inline element?
Its a block element.
What HTML tag is used to link to another website?
the anchor tag aka the a tag.
What is an absolute URL?
An absolute URL links a url that is on a different website. and is the full web address starting with the http
What is a relative URL?
a relative URL links a webpage on the same website and doesn’t need the full web address.
How do you indicate the relative link to a parent directory?
../index.html
How do you indicate the relative link to a child directory?
the name of the directory/file
How do you indicate the relative link to a grand parent directory?
../../index.html
How do you indicate the relative link to the same directory?
index.html/
What is the purpose of an HTML form element?
Forms allow you to collect information from different visitors to your site.