HTML Flashcards
Where do you put non-visible content about the HTML document?
in between the anchor brackets.
Where do you put visible content about the HTML document?
in between the element tags. [p] Visible Content [/p]
Where do the and tags go in a valid HTML document?
nested in between the html tags.
What is the purpose of a declaration?
to tell the browser what type of html is being used.
Give five examples of HTML element types.
html head body h1 p
What is the purpose of HTML attributes?
to give additional information about the element.
Give an example of an HTML entity (escape character).
Copyright = © = & copy ; Trademark = ® = & reg ;
How do block-level elements affect the document flow?
they take up a new line and use all of the horizontal space.
How do inline elements affect the document flow?
they allow multiple elements to be on the same line.
What are the default width and height of a block-level element?
Width = 100% Height = as much as the content needs / auto
What are the default width and height of an inline element?
Width = auto Height = auto
What is the difference between an ordered list and an unordered list in HTML?
ordered list are numbered.
unordered lists use bullet points.
Is an HTML list a block element or an inline element?
all HTML lists are block elements
What HTML tag is used to link to another website?
a href = “”
What is an absolute URL?
an absolute url links to a completely seperate website, and has the protocol and domain in the url.