html & css Flashcards
Where do you put non-visible content about the HTML document?
In the head tag
Where do you put visible content about the HTML document?
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?
Declare the type of document
Give five examples of HTML element tags.
p, html, head, title, img
What is the purpose of HTML attributes?
Indicates what kind of extra information you are supplying about the element’s content
Give an example of an HTML entity (escape character
Copyright symbol (©)
How do block-level elements affect the document flow?
Block-level elements will always start on a new line
How do inline elements affect the document flow?
Inline elements will continue on the same line as neighboring elements
What are the default width and height of a block-level element?
As much width as the parent div, and the height as much as the content needs
What are the default width and height of an inline element
Only takes up as much width & height that it needs
What is the difference between an ordered list and an unordered list in HTML?
An ordered list is numbered, while an unordered list is 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?
Anchor tag
What is an absolute URL?
A URL that will take you to the specific domain of another website
What is a relative URL?
A URL that takes you to different pages on the same website.
How do you indicate the relative link to a parent directory?
../
How do you indicate the relative link to a child directory?
Name of the child folder followed by a slash then the file name
music/listings.html
How do you indicate the relative link to a grand parent directory?
The name of a child folder, followed by a forward slash, then the name of the grandchild folder, followed by another slash, then the file name.
../../index.html
How do you indicate the relative link to the same directory?
Just list the file name
What is the purpose of an HTML form element?
To submit information to a server
Give five examples of form control elements.
Radio, Checkbox, Password input, Submit, File upload
Give three examples of type attributes for HTML elements.
text, password, radio,
Is an HTML input element a block element or an inline element?
inline element
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, tbody