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.
Where do the <head> and <body> tags go in a valid HTML document?
In the <html> element.
What is the purpose of a <!DOCTYPE> declaration?
To declare the version of HTML being used.
Give five examples of HTML element types.
<body>, <p>, <div>, <h1> to <h6>, <head>, <html>, <title>, <article>, <address>, <header>
</header></address></article></title></html></head></h6></h1></div></p></body>
What is the purpose of HTML attributes?
These are additional values that configure the elements. They make them unique.
Give an example of an HTML entity (escape character).
& amp ; & lt ; & gt ; & copy ; & reg ;
How do block-level elements affect the document flow?
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
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.
What are the default width and height of a block-level element?
width: 100% of its parent container, height: auto (depends on content). selfish.
What are the default width and height of an inline element?
width: auto, height: auto; takes only as much space as needed. selfless.
What is the difference between an ordered list and an unordered list in HTML?
ol - numbered list; ul - bullet list
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
<a> , anchor element.</a>
What is an absolute URL?
Full URL that includes the domain.