web development Flashcards

1
Q

what does HTML use to describe webpages

A

<tag> </tag>

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

attributes in HMTL

A

<tag>Hello World!</tag>

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

Add an image to HMTL web page

A

<img></img>

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

heading in HTML

A

<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
</h6></h5></h4></h3></h2></h1>

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

paragraphs in html

A

<p> </p>

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

adding a single line break in HTML

A

<br></br> </br>

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

adding horizontal lines in HTML

A

<hr></hr>

</hr>

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

adding a link to HTML

A

<a> Welcome </a>

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

creating a table in HTML

A

<table>.
<tr>
<td> 1 </td>
<td> 2 </td>
<td> 3 </td>
</tr>
</table>

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

True or False: CSS defines how to style HTML elements

A

True

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

how do you change the color of a paragraph to blue with a font size of 12

A

p { color: blue; font-size: 12px; }

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

how do you group a selection of elements so that you are able to style them in one go

A

Id’s and classes

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

create an id and add a backrground color of yellow and color the text blue

A

welcome{ color:blue ; background-color:yellow;}

<h1 id=“welcome”> Welcome to my Web page</h1>

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

create a class

A

<h1 class=“welcome”> Welcome to my Web page</h1>

.welcome{ color:blue ; background-color:yellow;}

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

JQuery- JavaScript, writing code goes inside:

A
<script>

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

In JQuery Javascript how would you update an element’s CSS
property

A

css(“propertyname”:”value”);

example:
css({“background-color”: “yellow”, “font-size”: “200%”});

17
Q

create a hovering mouse interaction in JQuery Javascript

A

<h1> CMUQ </h1>

<button>


function changeText()
{
$("#name").text("67-250");
}
</button>

*you can also do the same with click in place of onmouseover

18
Q

jQuery
When you move the cursor over the
image, make it disappear

A

<img id=“logo” src=“logo.jpg” onmouseover=“disappear()”>

<script>
function disappear()
{
$(‘#logo”).hide();
}
</script>