HTML Flashcards
Where do you put the non-visible content about the HTML document?
It goes inside of the head element.
Where do you put visible content about the HTML document?
It goes inside of the body element.
Where do the head and body tags go in a valid HTML document?
They go in between the html element tags.
What is the purpose of doctype declaration?
It tells the browser which version of HTML the page is using.
Give 5 examples of HTML element types.
span, p, img, div, h1
What are HTML entities? Provide an example.
They are also known as escape characters. They are characters that are used and reserved by HTML code. Example: cent sign –> ¢ or ¢
How do block-level elements affect the document flow?
They will always appear on a new line. They do not allow other elements on the same horizontal row.
How do inline elements affect the document flow?
They appear on the same line as their neighboring elements.
What are the default widths and heights of a block-level element?
The height is determined by the content inside the element. The width is the full horizontal width of its container block.
What are the default widths and heights of an inline element?
The width and height of an inline element is determined by the content of the element.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists show items that are listed with numbers while an unordered list starts with bullet points.
Is an HTML list a block element or an inline element?
It is a block-level element – it pushes everything after it down the page.
What HTML tag is used to link another website?
The anchor tag // <a> tag along with the href attribute and the link to the website as the value.</a>
What is an absolute URL?
The full web address for a site or the direct URL to a file
What is a relative URL?
Shorthand url to a link on the same website