HTML Flashcards

1
Q

1.HTML=

A

hyper text markup language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. give 2 examples of programming languages
A
  1. Java Srript 2. python
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. elements=
A

as being boxes of content on our web page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. three examples of elements=
A
  1. three examples of elements=
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. four exmaples of elements=
A
  1. division elements (divs) 2. headers 3.paragraphs 4. spans
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. what three critical elements does CodePen allows us to leave out?
A
  1. HTML 2.head 3.body elements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. to create HTML elements we need to use______?
A

tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. H1 is considered to be a______?
A

tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. The ___ _____ are built into the language and must be written exactly as expected in order for our HTML to render correctly.
A

tag names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

10.For example, ______ is not a valid tag name in HTML, but ______ is

A

paragraph———P

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. You can use ______ ________ to verify which tag names exist and what elements they are used for.
A

online documentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. If we wanted to tag the sentence above as an important header (the biggest text by default), we’d use the _____and _____ beginning and end tags
A

<h1> and </h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. what does an opening paragraph tag look like? what does a closing paragraph tag look like
A

<p> and </p>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. The p (“paragraph”) element used for?
A

This element is meant for holding text. By default, it will render text to the screen on a new line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

This element is meant for holding text. By default, it will render text to the screen on a new line.

A

div element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

16.<div> is a block-level element, meaning it will take up its own, full line.</div>

A

<div></div>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

17.The ______ _______ is a generic text container. It does not create a new line like the p element does. This element is invisible by default but can be used for styling words or phrases within a larger body of text.

A

span element <span></span>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  1. Unlike <div>, ________ operates inline and therefore doesn’t take up its own line</div>
A

<span></span>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

19.Avoid using ____ ____ to resize text. ______ use size to indicate their relative importance, but _____ is preferred for general-purpose resizing.

A

a. heading tags b.headings c. CSS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  1. You should only use one _______ per page. Using more than one will not result in an error, but using only one is seen as a best practice.
A

<h1></h1>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q
  1. to create a button, all we have to do is use the semantic ______ _____
A

semantic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

1.What are HTML elements?

A

Elements are what we use to tell the browser how we want the supplied data to be displayed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

“2.What is a ‘tag’?

A

An element consists of an opening and closing tag. The data supplied between the tags will be displayed per the instructions of the element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

“3.How does the browser use HTML to create what I see?

A

The browser reads and interprets the HTML file to understand how the developer intended the data to appear on the screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

“4.What are the basic HTML elements?

A

“The elements we learned about yesterday were ‘html’, ‘head’, ‘body’, ‘p’, ‘span’, ‘div’, and ‘h1’- ‘h6’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

5.This is known as being ‘semantically correct

A

It is important to note that your HTML elements should match the exact information you are attempting to display.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

6.When we need to include information that we don’t want to render on the page (like the link to an image) we use special flags inside of our tags called _______?

A

attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q
  1. <a>=</a>
A

anchor element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

8.The ‘a’ (“anchor”) element, allows us to create links to other web pages (or even to other areas within our own web page). You will always see the ‘a’ element used with the ___ attribute to tell the browser what address you want the link to point to.

A

heref

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

9.An ____ element will display an image on the screen. It will always have an _____ attribute which points to the address of the image to be displayed. NOTE: img tags can be self-closing, as in they do not need two tags. Simply put the / before the closing bracket in the first tag:

A

<img></img> image—-src

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q
  1. <ul>=</ul>
A

This element represents an “unordered list”. This is the parent element and will contain list items.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q
  1. <ol>=</ol>
A

There is also an ordered, or numbered, list <ol></ol>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

12.Generally speaking, ______would be used for a grocery list

A

<ul></ul>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

13.and _______ for a recipe where direction need to be followed in a specific order

A

<ol></ol>

35
Q

14.This stands for ______ and is the companion to <ul> and </ul><ol>. These elements represent the items to appear in the list. Any other elements can appear in an li.</ol>

A

<li>......list item</li>

36
Q
  1. Nested elements are referred to as ______ and the top level elements as _______
A

children…..parents

37
Q

What does HTML allow us to do?

A

It allows us to display data on the screen, and give the browser information about the data.

38
Q

____ uses different ‘elements’ to relay different information to the browser.

A

HTML

39
Q

What are 4 examples of HTML elements?

A
  1. header (header)
  2. paragraph (P)
  3. Image (img)
  4. Link (a)
40
Q

What is the anatomy or make-up of an HTML element

A

Data

41
Q

What does a standard HTML page look like?

A

…everything in here will appear on the screen

42
Q

An _____is the name of the item or instruction we are giving the browser

A

Element

43
Q

We put elements inside of what we know as ____?

A

Tags

44
Q

What element is just a generic holder or text container?

A

<span></span>

45
Q

What does <div> stand for?</div>

A

divider

46
Q

_____ is used for styling or grouping elements together that are related to each other

A

<div></div>

47
Q

What is a great web site to go to for HTML and CSS?

A

www.csstricks.com

48
Q

Attributes…attr

A

A little bit of extra data that we can supply to our element in order to give it some behavior
Sometimes we need to supply more data to the element

49
Q

what does an attribute look like?

A

Data

50
Q

the ____ actually goes in the opening tag?

A

attribute

51
Q

an ____ ______ actually lets us create a link on the page

A

anchor tag

52
Q

what is an <a> and what does it let us do?</a>

A

<a></a> anchor tag….and it let’s us create a link on the page

53
Q

what attribute does the anchor tag need to create a link?

A

href……<a></a>

54
Q

how is the attribute href set up on a web page?

A

<a>click here to go to google</a>

55
Q

what is the attribute of an image tag?

A

<img></img>

56
Q

<a>=</a>

A

anchor tag

57
Q

how does an image tag look?

A

<img></img>

58
Q

what is that attribute of the image tag <img></img>?

A

src…..<img></img>

59
Q

<ul>=</ul>

A

unordered list….a list with bullet points and no numbers

60
Q

<ol></ol>

A

a list with numbers 1 and 2 etc

61
Q

a <ul> is just like a _____ or a wrapper</ul>

A

div

62
Q

when using the <ul> as a wrapper…what goes in the inside?</ul>

A

<li>
</li>

63
Q

what does the layout look like when using <ol></ol>

A

<ol>
<li>
</li><li>
</li></ol>

64
Q

with htlm we indent with what is called a ____ ____ relationship?

A

parent, child

65
Q

what 2 ways does the layout look like when we include our css in our html?

A

….css goes here

66
Q

the _____ ______ which tells html what type of file it is

A

rel attribute

67
Q

the ____ attribute which tells the html file sheet where our css file sheet lives

A

src

68
Q

what is the anatomy or syntax of CSS styling rules? what does this look like?

A

.slector {
Property: value:
{

69
Q

what are class and id’s thought to be?

A

attributes

70
Q

the ____ and __ attributes that we can give our elements that allow us to name our elements individually or by there class

A

class & id attributes

71
Q

the ____ goes inside of the opening tag

A

class attribute

72
Q

show an example of the class set up

A

<div>....inside the quotations you can call it whatever name you choose.</div>

73
Q

what does a wild card selector look like when using html?

A
  • {
    wildcard selector
    }
74
Q

*=

A

the wildcard selector or the everything selector

75
Q

give an example of 4 selectors:

A
    • the wildcard everything selector
  1. the…p….element selector
  2. the .class or class selector
  3. the #id or id selector
76
Q

while using css…give an example on how we would make the whole back ground color red?

A
  • {
    background-color:red;
    }
77
Q

while using css give an example on how we would change the font size on all paragraphs tp 36 pixels?

A

p{
font-size: 36px;
}

78
Q

say we had an item in html that was called the following…<div class="divClass">….while using css how would we change the back ground color to dodger blue?</div>

A

.divClass {
background-color: dodgerblue;
{

79
Q

lets say we had the following in html….< p class=”pclass”>a paragraph her …..how would we change the text color to red?

A

.pClass {
color: red;
}

80
Q

lets say we had some html like the following….<p>a paragraph here</p>how would we change the font size to 28 pixels?

A
#paragraphID (
     font-size: 28 px;
}
81
Q

lets say in html we had the following: <div class="box">….ans while using css we wanted to change the back ground color to dodger blue….how would we do this?</div>

A

.box {
background-color: dodgerblue;
{

82
Q

lets say in html we had the following: <div class="box">…how would we change the width to 200 pixels and the height to 100 pixels?</div>

A

.box (
width: 200px;
height: 100px;
{

83
Q

what is the invisible margin called just outside the content in html?

A

padding

84
Q

lets say in html we had the following: <div class="box">….how would we change the padding to 40 pixels and the border to 5 pixels of solid red?</div>

A

.box {
padding: 40px;
border: 5px sold red:
}