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.
What is a relative URL?
when you are linking to other pages within the same site.
What is the purpose of an HTML form element?
Forms are used to get user input and send it to the server.
Element used to group together data for the form.
Give five examples of form control elements
<input></input> <textarea> <radio> <option> <select> <button></button></select></option></radio></textarea>
Give three examples of type attribute values for HTML <input></input> elements.
name, value, checked, text, password
Is an HTML <input></input> element a block element or an inline element?
inline element
What are the six primary HTML elements for creating tables?
<table> <tr> <td> <th> <tbody> <tfoot>
</tfoot></tbody></th></td></tr></table>
What purpose do the thead and tbody elements serve?
<thead> Used for headings in the table
<tbody> Used for the body of the table.
</tbody></thead>
Give two examples of data that would lend itself well to being displayed in a table.
Expenditures
Calendar