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?
Between opening and closing HTML tags
What is the purpose of a <!DOCTYPE> declaration?
Inform browser what version of HTML to use
Give five examples of HTML element types.
<body>, <img></img>, <p> <span>, <title>
</title></span></p></body>
What is the purpose of HTML attributes?
To provide additional information about the contents of an element
Give an example of an HTML entity (escape character).
Registered ®
How do block-level elements affect the document flow?
Start on a new line and take up width of the parent element container
How do inline elements affect the document flow?
Shares space and continues on same line as neighboring elements
What are the default width and height of a block-level element?
the height of a block element is the height of the content, and the width is the length of the page: width block 100%
What are the default width and height of an inline element?
The height of an inline element is the height of the content.
The width of an inline element is the width of the content. width and height auto
What is the difference between an ordered list and an unordered list in HTML?
Ordered list lists where each item in the list is numbered. Unordered lists begin with a bullet point
Is an HTML list a block element or an inline element?
Block element
What HTML tag is used to link to another website?
<a href=” ”></a>
What is an absolute URL?
Full web address of the site including protocol (HTTPS, HTTP)
What is a relative URL?
linking to a resource within your own files, begins with a slash or .
How do you indicate the relative link to a parent directory?
../file name
How do you indicate the relative link to a child directory?
Name of child folder then /file name
How do you indicate the relative link to a grand parent directory?
../../file name
How do you indicate the relative link to the same directory?
File name
What is the purpose of an HTML form element?
The box that all the form controls exist in, To have interactive controls for submitting or selecting information
Give five examples of form control elements.
Action, method, id, button, radio, submit, text, input, select, text area, option
Give three examples of type attribute values for HTML <input></input> elements.
button , radio, checkbox
Is an HTML <input></input> element a block element or an inline element?
Inline element