HTML & CSS Flashcards
HTML skeleton
Where do you put non-visible content about the HTML document?
head element
HTML skeleton
Where do you put visible content about the HTML document?
Body element
HTML skeleton
Where do the head and body tags go in a valid HTML document?
HTML element
HTML skeleton
What is the purpose of a doctype declaration?
an instruction to the web browser about what version of HTML the page is written in.(interpretation)
HTML Syntax
Give five examples of HTML element types.
- body
- p
- html
- <h1> ~ </h1><h6>
</h6> - title</h6>
HTML Syntax
What is the purpose of HTML attributes?
to change the color, size, and other features of HTML elements.
HTML Syntax
Give an example of an HTML entity (escape character).
© Copy Right
HTML Block and Inline
How do block-level elements affect the document flow?
Always starts on a new line.
Always takes up the full width available
has a top and a bottom margin
HTML Block and Inline
How do inline elements affect the document flow?
does not start on a new line only takes up as much width as necessary Takes up the space of an entire line left and right margin only padding
HTML Block and Inline
What are the default width and height of a block-level element?
Content
HTML Block and Inline
What are the default width and height of an inline element?
Size of the content
HTML Lists
What is the difference between an ordered list and an unordered list in HTML?
Ordered lists have numbering
HTML Lists
Is an HTML list a block element or an inline element?`1
block element
HTML Links
What HTML tag is used to link to another website?
anchor href
HTML Links
What is an absolute URL?
Exact URL to locate the resources
HTML Links
What is a relative URL?
URL that has path
HTML relative links
How do you indicate the relative link to a parent directory?
../
HTML relative links
How do you indicate the relative link to a child directory?
use the name of the child directory
HTML relative links
How do you indicate the relative link to a grandparent directory?
../../
HTML relative links
How do you indicate the relative link to the same directory?
Type the name of the same directory
HTML forms
What is the purpose of an HTML form element?
Semantics and the accessibility that happens as a result
Gather data from clients.
HTML forms
Give five examples of form control elements.
input textarea label fieldset button option select
HTML forms
Give three examples of type attribute values for HTML input elements.
text radio checkbox button url range email password
HTML forms
Is an HTML input element a block element or an inline element?
Inline
HTML tables
What are the six primary HTML elements for creating tables?
table, thead, tbody, tr, td, th