HTML Flashcards
Give five examples of HTML element tags
html, head, title, body, h1
What is the purpose of HTML attributes?
They give unique indications to tags provides functionality
Give an example of an HTML entity (escape character)
&-copy, &-reg, (no spaces between ampersand and words)
How do block-level elements affect the document flow?
They start a new line in a document
How do inline elements affect the document flow?
They are added within the body and do not need new lines
What are the default width and height of a block-level element?
width is 100% of the line where as height is auto (as much as necessary)
What are the default width and height of an inline element?
Both are auto (as much as is needed)
Where do you put non-visible content about the HTML document?
It is put within the head element
Where do you put visible content about the HTML document?
It is put within the body element
Where do the head and body tags go in a valid HTML document?
The head goes in between html element, the body tags are sibling element to the head and goes in between the html element as well
What is the purpose of a declaration?
It tells the browser what kind of document it is
What is the difference between an ordered list and an unordered list in HTML?
ordered list are numbered and unordered lists are bullet points
Is an HTML list a block element or an inline element?
It is a block element because it takes up one line.
What HTML tag is used to link to another website?
anchor element with a href attribute with the link of the URL
What is an absolute URL?
points to an external application source, has full domain in links
What is a relative URL?
File is within the same machine and does not need whole domain
How do you indicate the relative link to a parent directory?
the ref begins with a ../ to indicate folder above current one then (file name)
How do you indicate the relative link to a child directory?
(foldername)/ (filename)
How do you indicate the relative link to a grand parent directory?
../../(filename)
How do you indicate the relative link to the same directory?
use the file name in the link
What is the purpose of an HTML form element?
Forms help with searching, and other functions
Give five examples of form control elements
textarea, input Text area, option, select
Give three examples of [type] attributes for HTML [input] elements.
Text, Password, and radio buttons
Is an HTML [input] element a block element or an inline element
It is an inline element, does not need a new line for each
What are the six primary HTML elements for creating tables?
tr, td, th, thead, tbody, table
What purpose do the thead and tbody elements serve?
they serve to separate between the main content of the table from the first row. it also helps screen readers
Give two examples of data that would lend itself well to being displayed in a table
dates and money
What is the purpose of a declaration?
it is to tell the browser what version of HTML it is using