HTML & CSS Concepts Flashcards
Where do you put non-visible content about the HTML document?
They are put inside the < head > tag
Where do you put visible content about the HTML document?
You put them in the < body > tag
Where do the head and body tags go in a valid HTML document?
Inside the < html > tag
What is the purpose of a < !Doctype > declaration?
This declaration tells the browser to use the latest version of HTML
Give five examples of HTML element tags.
head, body, span, div, html
What is the purpose of HTML attributes?
all HTML elements can have attributes added, which modifies the way the element functions.
How do block-level elements affect the document flow?
these block-level elements will always start on a new line. What ever content follows these elements will also start on a new line
How do inline elements affect the document flow?
Inline elements will continue on the same line as long as there is space to do so
What are the default width and height of a block-level element?
The default width is 100% but the default height depends on the content inside the block element
What are the default width and height of an inline element?
the width and height depends on the content of the element
What is the difference between an ordered list and an unordered list in HTML?
An ordered list will create a numerically ordered list of your items (starting with 1) while an unordered list will use bullet points instead.
Is an HTML list a block element or an inline element?
block element
What HTML tag is used to link to another website?
< a href=”http://www.SampleWebPage.com” > HTML text content here < /a >
What is an absolute URL?
an absolute URL gives all information about a page’s location. For example, www.MyStore.com/products/sales/videogames
What is a relative URL?
A relative URL is a link on your own personal computer domain. Examples would be links to other files or folders that are parents/children/grandparents/etc. of one another
How do you indicate the relative link to a parent directory?
use < a href = ‘’.. / samplePicture.jpg’’ > < / a >