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
What does the Doctype do?
it tells use agents which version of HTML it’s going to be using.
What does the do?
it tells the browser what language is used
What does metadata do?
it helps search engines and other robots find and make sense of what your website is about.
What types of things go in the head section of an HTML document?
non visual content that go into making a page work
what is the
tag?
paragraph
What are the h1 - h6 tags?
header tags, to relay which sections are more important than others
what is the tag?
it is the bold tag, and is only used when you only want to have a visual change, when you want an overall importance change then you would use the tag
What are the building blocks of HTML pages?
Elements
How are elements represented?
what do HTML tags do?
HTML tags label pieces of content such as “heaeding”. “paragraph”. “table”… etc.
What does the element do?
it specifies a title for the document for the browser to recognize
How are tags used?
There needs to be an opening and closing tag in most cases, there are few tags that are self closing. e.g.
or
is the
tag block level or inline?
Defines a section in a document and is block level
is the tag block level or inline?
Defines a section in a document and is inline
how do you add a title to a link that shows when you hover over it?
How do you add an image to an HTML document?
tag, with the source file (src), alternative text (alt), width and height are provided as attributes. e.g.
What is an attribute?
Attributes provide additional information about an element.
Where are attributes located?
Attributes are always specified in the start tag
What would a usual attribute layout look like?
name=”value”
What is the src attribute?
the src attribute is the filename of the source and is used to locate an image to display.
What is the alt attribute?
The alt attribute specifies an alternative text to be used when an image cannot be displayed, whether it couldn’t be found, or is being read by a screen reader.
What must a list contain?
All lists must contain one or more list element.
What are the 3 types of lists?
an unordered list which uses bullet points
an ordered list which uses different number schemes <dl> a definition list which arranges your items in the same way as they are arranged in a dictionary?</dl>
How would a list generally look?
- ….
- ….
What attribute is used to style a list type?
The type attribute -
…….
How is a description list built out?
The
<dl> tag defines the description list, the <dt> tag defines the term (name), and the </dt>
<dd> tag describes each term. e.g.
<dl>
<dt>Coffee</dt>
<dd> - black hot drink</dd>
<dt>Milk</dt>
<dd> - white cold drink</dd>
</dl>
</dd>
</dl>
What is a nested list?
a list nested in another list. e.g - Coffee - Tea - black tea - green tea - Milk
How is a nested list build out?
- Coffee
- Tea
- Black Tea
- Green Tea
- Milk
How do you make a symbol thats small and higher like an exponent?
the tag is used to make a smaller higher symbol like an exponent. This would look like 3