HTML Flashcards
Where do you put non-visible content about the HTML document?
Non-visible content will be in the head element
Where do you put visible content about the HTML document?
Visible content will be in the body element
Where do the head and body tags go in a valid HTML document?
The head and the body tags go in the html element
What is the purpose of a doctype declaration?
There are different versions of HTML and doctype tells the browser what version of HTML the page is using.
Give five examples of HTML element tags.
p
span
div
h1 h2 h3 h4 h5 h6
What is the purpose of HTML attributes?
Provides additional information about the element
Give an example of an HTML entity (escape character).
Allows you to escape the HTML code enforcement for certain characters
Such as a left angled bracket, you need to use & lt ;
ampersand symbol will be & amp ;
How do block-level elements affect the document flow?
They will always appear to start on a new line in the browser window
How do inline elements affect the document flow?
They affect the text content of the inline element being selected
Inline is prepared to share space
What are the default values of width and height of a block-level element?
Block-level elements take up 100% of the space available.
Height is auto, however much height is needed
What are the default width and height of an inline element?
Inline elements take up space to accommodate its content
Width and Height are dependent on the content
What is the difference between an ordered list and an unordered list in HTML?
Numbered lists is a list that is numbered (Legal contracts or things that must be performed in order). Order is meaningful.
An unordered list is a list that begins with a bullet point (Rather than characters that indicate order)
Is an HTML list a block element or an inline element?
An HTML list is a block element.
ol ul li are all block elements
What HTML tag is used to link to another website?
a href = www.linkToAnotherWebsite.com TEXTCONTENTFORLINK /a
You need to use an Absolute URL
What is an absolute URL?
An absolute URL is a URL that starts with the domain name for whatever webpage you are being directed to, which is usually a different website