HTML Flashcards
Where do you put non-visible content about the HTML document?
In between the <title> </title>
Where do you put visible content about the HTML document?
In between the <body> </body>
Where do the <head> and <body> tags go in a valid HTML document?
in between the <html> </html>
What is the purpose of a <!DOCTYPE> declaration?
It is an instruction to the web browser to show what version of HTML the page is written in.
Give five examples of HTML element types.
<head> <title> <p> <img></img> <span> <div>
</div></span></p></title></head>
What is the purpose of HTML attributes?
Provide additional information about the contents of an element.
Give an example of an HTML entity (escape character).
< less than sign
© copyright sign
® registered trademark sign
How do block-level elements affect the document flow?
Block level elements create a new line in the browser.
How do inline elements affect the document flow?
Inline elements only take the space the content requires.
What are the default width and height of a block-level element?
Width is 100%, Height depends on the content of the element. (Height = Auto)
What are the default width and height of an inline element?
Default width is the width of the content, and height is the height of the content.
Width and Height = Auto
What is the difference between an ordered list and an unordered list in HTML?
ordered list are numbered. unordered list are not numbered but bulleted.
ordered = <ol> </ol>
undordered = <ul> </ul>
Is an HTML list a block element or an inline element?
It is a block element
What HTML tag is used to link to another website?
<a></a> anchor tag
What is an absolute URL?
The full web address of the site that is being linked.