HTML Flashcards
(193 cards)
Where do you put non-visible content about the HTML document?
In the tag
Where do you put visible content about the HTML document?
In the tag.
Where do the and tags go in a valid HTML document?
Both are within the tag with coming before .
What is the purpose of a declaration?
declares the specific language that the code will be in.
Give five examples of HTML element types.
<p>, </p>
<div></div>
, <img></img>, <h1>, </h1>, head
What is the purpose of HTML attributes?
They give additional information about the contents of an element.
Give an example of an HTML entity (escape character).
® ® ““”
How do block-level elements affect the document flow?
block-level elements appear on new lines in the browser window.
How do inline elements affect the document flow?
inline elements will appear to continue on the same line as neighboring elements.
What are the default width and height of a block-level element?
width of 100% the parent container, full width available
length default to whatever height it needs to have depending on content.
What are the default width and height of an inline element?
Height and width are the exact height and width of the content.
What is the difference between an ordered list and an unordered list in HTML?
An ordered list will automatically assign numbers to the list elements underneath it. an unordered list uses bullets.
What HTML tag is used to link to another website?
<a></a> anchor tag
What is an absolute URL?
web address in the browser to visit a specific page. has domain name and path. links to website other than current one.
Is an HTML list a block element or an inline element?
Block
What is a relative URL?
relative url if linking within the same site. has the name of the file or navigation to folder. - no domain name.
How do you indicate the relative link to a parent directory?
<a></a>
How do you indicate the relative link to a child directory?
<a></a>
How do you indicate the relative link to a grand parent directory?
<a></a>
How do you indicate the relative link to the same directory?
<a></a>
What is the purpose of an HTML form element?
gather data from clients.
specifies the method and URL for the page on the server that will receive the form information.
Give five examples of form control elements.
input, label, select, textarea, option
Give three examples of type attribute values for HTML input elements.
image, submit, file, checkbox
Is an HTML input element a block element or an inline element?
inline