HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content goes in the <head> element. It contains information about the page.
Where do you put visible content about the HTML document?
The visible content goes within the <body> element.
Where do the <head> and <body> tags go in a valid HTML document?
Within the HTML element. Head first then body.
What is the purpose of a <!DOCTYPE> declaration?
It provides the browser with which version of HTML the web page is using.
Give five examples of HTML element types.
<html> <head> <Title> <body> <h1>
</h1></body></Title></head></html>
What is the purpose of HTML attributes?
Attributes provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
Characters that are used in and reserved by HTML Code. Special codes that can be used to show symbols.
Copyright symbol = (ampersand) ©
How do block-level elements affect the document flow?
block-level element always starts on a new line and takes up the full width of the parent element/element that contains it.
How do inline elements affect the document flow?
An inline element does not start on a new line and only takes up as much width as necessary. capable of sharing space.
What are the default width and height of a block-level element?
Default width of a block-level element it 100%. Height auto - whatever the text content will take up.
What are the default width and height of an inline element?
Default width and height: auto. As much space as necessary.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists use numbers/sequential and unordered lists use bullets.
Is an HTML list a block element or an inline element?
Block elements.
What HTML tag is used to link to another website?
<a> (anchor tag) which have an attribute of href. Href attribute contains the value of the link/url you want people to go to when they click the link.</a>
What is an absolute URL?
It is a link to a different website using their web address. It needs a domain name and HTTPS(hypertext transfer protocol).