HTML & CSS Flashcards
What is the first thing that goes into every HTML document?
The DOCTYPE tag which looks like is the is in the first line of every HTML document.
What does HTML stand for?
Hyper Text Markup Language
What is a block-level element?
A block-level element always starts on a new line and takes up the full width available. Examples of block elements:
, # - ###### ,
,
What is an inline element?
an inline element does not start on a new line and only takes up as much width as necessary. Examples of inline elements: , ,
What would an example of a div block-level element look like?
## London
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.
What would an example of a span inline-level element look like?
My Important Heading
Do all html tags need to have a separate closing tag with it?
no, most do but there are some self closing tags as well.
and image tag usually consists of 3 parts, what are they and how would it look like in a proper HTML document?
image tags usually consists of the source attribute, the alternative text attribute and the width/height attributes. ex.
Attributes usually come in ____ pairs like:
name=”value”
What are the 3 types of lists, and what are their tags.
- An unordered list items use plain bullets.
- An ordered list will use different schemes of numbers to list your items. <dl> - A definition list arrages your items in the same way as they are arranged in a dictionary.</dl>
How do list items appear in a proper html document?
- list item1
- list item2
- list item3
*
in an unordered list type, what are the possible options to style your lists?
in an ordered list type, what are the possible options to style your lists?
- Default-Case Numerals.
- Upper-Case Numerals.
- Lower-Case Numerals.
- Upper-Case Letters.
- Lower-Case Letters.
How is a Description list built out in an HTML Document?
The
<dl> tag defines the description list, the <dt> tag defines the term (name), and the </dt>
<dd> tag describes each term;
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
</dd>
</dl>
What would a nested list look like in an HTML Document?
- Coffee
- Tea
- Black Tea
- Green Tea
- Milk
1Footnote… ©Copyright tom 2017 How do you make that?
1Footnote…
©Copyright tom 2017
like that
How do you implement HTML character entities?
I will display €
I will display €
I will display €
like that
What is absolute position?
When you change position starting from the top left
What is relative position?
when you change the position starting from the default position
What is static position?
Staying in its default position
What do the left and right attributes do in css when dealing with absolute position?
top: 0px = all the way to the top bottom: 0px = all the way to the bottom right: 0px = all the way to the right left: 0px = all the way to the left
What do the left and right attributes do in css when dealing with relative position?
left: -20px; = is heading left: 0px; = This heading left: 20px = This heading
What is margin?
Margin is the distance between one element and the next.
What are the purposes of HTML, CSS, and JavaScript?
HTML is the structure of a website CSS is the styling & design of a website Javascript controls the dynamic behavior of a website
- a definition list which arranges your items in the same way as they are arranged in a dictionary?
- tag defines the description list, the
- tag defines the term (name), and the
- tag describes each term. e.g.
- Coffee
- - black hot drink
- Milk
- - white cold drink




































