HTML and CSS Flashcards
where do you put non-visible content about the html document?
in the head tags
where do you put visible content about the html document?
in the body tags
Where do the head and body tags go in a valid html document?
in between the HTML tags
what is the purpose of !DOCTYPE declaration
to notify the browser that its an html document and the version its using.
Give 5 examples of the HTML element tags
title, heading meta, link img. body p
What is the purpose of HTML attributes?
The attribute name indicates what kind of extra information you are supplying about the elements content.
Give an example of an HTML entity
copyright ©
How do block level elements affect the document flow?
They start a new line in the browser
How do inline elements affect the document flow?
inline elements continue on the same line as their neighboring elements
What are the default width and height of a block-level element?
A block-level element occupies the entire horizontal space of its parent element and the vertical space equal to the height of its contents, thereby creating a “block” Width is 100% height is auto
What are the default width and height of an inline element
an inline element only takes up as much width as necessary auto width and auto height
What is the difference between an order and unordered list in HTML
Ordered lists are number and unordered lists are bullet points
Is an html list a block element or an inline element
block element
What HTML tag is used to link to another website?
absolute URL
What is an absolute URL`
When you link a URL to a different website it shows the full websites URL in the href value aka the domain name
What is a relative URL
When you link to other pages in the same website.
How do you indicate the relative url to a parent directory?
../
How do you indicate the relative link to a child directory?
Use the child name directory followed by a foward slash the the child name file
How do you indicate the relative link to a grandparent directory?
../../file name
How do you indicate the relative link to the same directory?
Just use the file name.
What is the purpose of an HTML form element?
Forms allow you to collect information from different visitors to your site