Intermediate HTML Flashcards
HTML is all about?
Applying meaning to content
Whereas most HTML tags apply meaning ______ tags apply no meaning at all.
span and div
Span and Div tags are actually used quite extensively in conjunction with ________.
CSS
What are span and div more specifically used for?
They are used to group together a chunk of HTML and hook some information onto that chunk, most commonly with the attributes class and id to associate the element with a class or id CSS selector.
The difference between span and div
A span element is in-line and usually used for a small chunk of HTML inside a line
A div (division) element is block-line and used to group larger chunks of code
True or False? div, and especially span, shouldn’t actually be used that often
True: Whenever there is a sensible alternative that should be used instead
________ is used to markup an abbreviation, a shortened form of a word or phrase.
abbr
What are the two tags used for quotes?
blockquote and q
What’s the difference between blockquote and q?
q is used for shorter, in-line quotations
blockquote is generally used for standalone often multi-line quotations
How to create citations?
cite tag
What is the code tag used for? What are the related tags?
code is used to represent any form of computer code
var for variables
samp for sample output
kbd (keyboard) for user input
How to create preformatted text?
pre - It takes notice of every character in it, including the white space
What is the pre tag most commonly used for?
It is most commonly used for blocks of code, where spacing, such as indentations, can be relevant.
What is used by the likes of search engines to catalog information about the web page?
Meta tags
What attributes can the meta tag contain?
- ) charset
- ) name
- ) http-equiv
- ) content