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
What is the purpose of a <!DOCTYPE> declaration?
To tell the page what kind of document it is
Give 5 examples of HTML elements.
<body>, <head>, <div>, <span>, <html>
</html></span></div></head></body>
What is the purpose of HTML attributes?
They provide additional information about the contents of an element.
What two parts make up an attribute?
Name=”value”
What are the default width and height of a block-level element?
100% for both height and width.
What are the default width and height of an inline element?
However much space they need (aka auto.)
What is the difference between a unordered list and an ordered list?
unordered is bullet points and ordered list is numbered or “sequenced”
Is an HTML list a block-element or an inline element?
block element
what HTML tag is used to link to another website?
anchor element or <a></a>
What is an absolute link?
A link that leads to another website.
What is a relative link?
A link to a file inside your workspace (folders in your code)
How do you indicate the relative link to a parent directory?
../
What is the purpose of an HTML form element?
it’s a boundary to hold content.