HTML Flashcards
What is HTML?
HyperText Markup Language:
a markup language for creating web pages and applications using elements, tags and attributes
What is the HTML5 doctype declaration?
informs web browser which version of HTML is used
What is the head tag used for?
don’t confuse with headER
- container for metadata
- placed between html & body tag
What is the body tag used for?
- contains all content
- defines the documents body
What are the required tags for an HTML document?
doctype - self closing
html, head, body & closing tags
What is the tag for ordered list?
ol
What is the tag for UN-ordered list?
ul
Do all tags come in a pair?
no, some self-close for voided elements, usually contains ‘ / ‘
What’s the difference between an element and an attribute?
- Attributes: characteristics of an element
- Elements: general content for web page
the difference between a class and id?
id: can only use for one element
class: can for multiple elements
What is a semantic tag?
- article
- header
- footer
defines different parts of a web page to browser and developer
What is CSS
Cascading Style Sheets
- how elements are going to be displayed on screen