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