HTML Flashcards
Where do you put non-visible content about the HTML document?
-In the head!
-Inside the <head> element!
-<head>
NON-VISABLE CONTENT HERE
</head>
Where do you put visible content about the HTML document?
-In the body!
-Inside the <body> element.
-<body>
VISABLE CONTENT HERE
</body>
Where do the <head> and <body> tags go in a valid HTML document?
-Inside the <html> element.
-<html>
<head></head>
<body></body>
</html>
What is the purpose of a <!DOCTYPE> declaration?
To tell the browser which version of html to read the document!
Give five examples of HTML element types.
head, body, p, img, div, span, h1, ul, li, and so many more!
What is the purpose of HTML attributes?
To give more information about an element.
Give an example of an HTML entity (escape character).
<, >, -, :, ?, ®, 1
How do block-level elements affect the document flow?
Block-level elements take up the whole width of a document. Which means a new block-level element will start on its own line.
How do inline elements affect the document flow?
Inline elements will stay on the same line its currently in, and only takes up the width of the content of the element.
What are the default width and height of a block-level element?
The default width of a block-level element is the entire width of the document and the height is the height of the content.
What are the default width and height of an inline element?
The default width and height of an inline element is the width and height of its content.
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists are lists that are numbered. Unordered lists are lists that are not numbered, but use bullet points or dashes, etc.
Is an HTML list a block element or an inline element?
An HTML list is a block element.
What HTML tag is used to link to another website?
The anchor tag is used to link to another website. The href attribute is used to specify the website’s URL.
<a href=’https://example.com”></a>
What is an absolute URL?
An absolute URL is a URL that takes you to a different website.