HTML-CSS-JS Flashcards
(268 cards)
Where do you put non-visible content about the HTML document?
in the element
Where do you put visible content about the HTML document?
in the element
Where do the and tags go in a valid HTML document?
in the element
What is the purpose of a declaration?
it tells the browser what type of document it is looking at, so it knows what to do with it
Give five examples of HTML element tags:
"<p>" - paragraph "</p><h1>" heading biggest size "" main body "" the title, what you see on the tab "" the opening tag of an entire html doc "<div>"</div></h1>
What is the purpose of HTML attributes?
they provide additional information about an element.
Give an example of an HTML entity (escape character)
< - less than sign
How do block-level elements affect the document flow?
take up all the width of its parent element
How do inline elements affect the document flow?
takes up as much space as their content
What are the default width and height of a block-level element?
block element takes up the full width available to it and the height is equal to its contents
What are the default width and height of an inline element?
the height and width is determined by the boundary of its element tags.
What is the difference between an ordered list and an unordered list in HTML?
Ordered list shows a list using numbers <ol>
Unordered shows a list using bullet points </ol><ul></ul>
Is an HTML list a block element or an inline element?
a list is a block element
What HTML tag is used to link to another website?
<a> </a>
anchor element
attribute href with the value of an absolute/relative URL to —
What is an absolute URL?
Absolute URL is a link to another website
What is a relative URL?
relative URL is linking to another page within the same site
How do you indicate the relative link to a parent directory?
href=”../folder-file name”
How do you indicate the relative link to a child directory?
href=”folder name/file name”
How do you indicate the relative link to a grand parent directory?
href=”../../file name”
How do you indicate the relative link to the same directory?
href=”file name”
What is the purpose of an HTML form element?
allows you to collect user input
Give five examples of form control elements.
adding text, radio buttons, checkboxes, drop-down boxes, submit buttons
Give three examples of type attributes for HTML elements.
submit, checkbox, radio
Is an HTML element a block element or an inline element?
inline element