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
Where do Head and Body tags go in a valid HTML document?
between the HTML tags
What is the purpose of a doctype declaration
Tell a browser which version of HTML the page is using
5 examples of HTML element types
html, body, head, h1, p1, span
What is the purpose of HTML attributes
provide additional information about elements
example of an html entity
ampersand
How do block-level elements affect the document flow?
They will always appear on a new line, fill the entire space
How do inline-level elements affect the document flow?
They continue to appear on the same line as their neighboring elements
What are the default width and height of a block-level element?
width of the page
height: auto
What are the default width and height of an inline element?
height and width are auto
Is an HTML list a block element or an inline element?
block element, starts on new line, takes up width
How do you indicate the relative link to a parent directory?
use ../ followed by the file name eg: ../index.html
How do you indicate the relative link to a child directory?
name of the child folder, followed by a / then the file name eg: href= “music/listings.html”
How do you indicate the relative link to a grand parent directory?
repeat ../ to indicate going up 2 folders then follow it with the file name. eg: href=”../../index.html”
How do you indicate the relative link to the same directory?
just the file name is required. eg: href=”index.html:
What HTML tag is used to link to another website?
anchor tag <a></a>
What is an absolute URL?
Url that links to outside of the document eg: https//www.google.com
What is a relative URL?
A url that links to somewhere within the document that is currently being accessed
eg: href=”../index.html”
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, tbody, tfoot
What purpose do the thead and tbody elements serve?
separate elements of a body to be used later. can be styled differently, screen readers
purpose of an html form element?
encompass all form elements
5 examples of form elements
input, option, select, button, textarea, legend datalist
Give three examples of type attribute values for HTML elements.
password, text, checkbox