Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added the exercises of class 3 #1

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added the exercises of class 3
Ronan-Fernandes committed Mar 23, 2020
commit 70b8b2ddbd4ea2a80d2915a4647089138afc230f
36 changes: 36 additions & 0 deletions bloco_3/3_3/challange_boxes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: The boxer model</title>
<style>
body {
font-family: cursive;
}
.photo-gallery {
background: rgb(255, 254, 217);
padding:12px;
}
.photo {
width: 200px;
border:2px dashed;
margin:2px 3px 4px 5px;
}
</style>
</head>
<body>

<h1>Boxers are beautiful?</h1>

<div class="photo-gallery">

<img class="photo" src="https://www.kasandbox.org/programming-images/animals/boxer-getting-tan.png">

<img class="photo" src="https://www.kasandbox.org/programming-images/animals/boxer-laying-down.png">

<img class="photo" src="https://www.kasandbox.org/programming-images/animals/boxer-wagging-tongue.png">

</div>

</body>
</html>
66 changes: 66 additions & 0 deletions bloco_3/3_3/challange_classes_of_elements.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: Classes of elements</title>
<style>
.metal {
color: red;

}
.non-metal {
color: blue;
}
.semi-metal {
color: purple;
}
h2.metal {
background-color:red;
color:white;
}
h2.non-metal {
background-color:blue;
color:white;
}
h2.semi-metal {
background-color:purple;
color:white;
}

</style>
</head>
<body>

<h1>The Periodic Table</h1>

<p>
There are three broad classes of elements:
<strong class="metal">metals</strong>,
<strong class="non-metal">non-metals</strong>,
and <strong class="semi-metal">semi-metals</strong>.
</p>

<h2 class="metal">Metals</h2>

<ul>
<li>Solid</li>
<li>Good conductors of electricity</li>
<li>Ductile</li>
<li>Malleable</li>
</ul>

<h2 class="non-metal">Non-metals</h2>

<ul>
<li>Brittle</li>
<li>Poor conductors</li>
</ul>

<h2 class="semi-metal">Semi-metals (Metalloids)</h2>

<ul>
<li>Partially conduct electricity</li>
</ul>

</body>
</html>
40 changes: 40 additions & 0 deletions bloco_3/3_3/challange_classy_gallery.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: A classy gallery</title>
<style>
body {
font-family: cursive;
}

.image-small {
width: 150px;
}
.image-medium {
width: 200px;
}
.black-frame {
border: 8px double rgb(38, 38, 38);
}
.gold-frame {
border: 10px ridge rgb(255, 183, 0);
}
.silver-frame {
border: 10px groove rgb(204, 204, 204);
}
</style>
</head>
<body>

<h1>A classy gallery</h1>

<img src="https://www.kasandbox.org/programming-images/animals/cat.png" class="silver-frame image-medium">

<img src="https://www.kasandbox.org/programming-images/animals/fox.png" class="gold-frame image-medium">

<img src="https://www.kasandbox.org/programming-images/animals/penguins.png" class="black-frame image-small">


</body>
</html>
54 changes: 54 additions & 0 deletions bloco_3/3_3/challange_descendants_of_khan.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: Descendants of Khan</title>
<style>
.emperor {
font-family: cursive;
}

.reign {
font-family: monospace;
}

table .emperor {
background-color:red;
}

table .reign {
background-color:purple;
}
</style>
</head>
<body>

<h1>Descendants of Khan</h1>

<p><strong class="emperor">Genghis Khan</strong> (<span class="reign">1206-1227</span>) was a emperor who had many sons and daughters, and many famous emperors are descended from him. (But not Sal Khan!)</p>

<table>
<thead>
<tr>
<th>Name</th>
<th>Reign</th>
</tr>
</thead>
<tbody>
<tr>
<td class="emperor">Ögedei Khan</td>
<td class="reign">1229-1241</td>
</tr>
<tr>
<td class="emperor">Kublai Khan</td>
<td class="reign">1260-1294</td>
</tr>
<tr>
<td class="emperor">Temür Khan</td>
<td class="reign">1294-1307</td>
</tr>
</tbody>
</table>

</body>
</html>
48 changes: 48 additions & 0 deletions bloco_3/3_3/challange_floating.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: Floating clouds</title>
<style>
body {
font-family: sans-serif;
}
h1 {
font-family: fantasy;
}
#cloud-pic {
width: 100px;
float:left;
margin-right:10px;
}
#cloud-sidebar {
background: rgb(255, 255, 219);
float:right;
width:30%;
margin-left:10px;

}
</style>
</head>
<body>

<h1>What are clouds?</h1>

<img id="cloud-pic" src="https://www.kasandbox.org/programming-images/landscapes/clouds-from-plane.png">


<div id="cloud-sidebar">
<h5>Why are some clouds yellow?</h5>
<p>Yellowish clouds may occur in the late spring through early fall months during forest fire season. The yellow color is due to the presence of pollutants in the smoke. Yellowish clouds caused by the presence of nitrogen dioxide are sometimes seen in urban areas with high air pollution levels.
</p>
</div>

<p>In meteorology, a cloud is a visible mass of liquid droplets or frozen crystals made of water or various chemicals suspended in the atmosphere above the surface of a planetary body. These suspended particles are also known as aerosols and are studied in the cloud physics branch of meteorology.</p>

<p>Terrestrial cloud formation is the result of air in Earth's atmosphere becoming saturated due to either or both of two processes: cooling of the air and adding water vapor. With sufficient saturation, precipitation will fall to the surface.</p>


<p><a href="http://en.wikipedia.org/wiki/Cloud">Read more on Wikipedia</a></p>

</body>
</html>
28 changes: 28 additions & 0 deletions bloco_3/3_3/challange_group.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: Group the groupers</title>
<style>
.first-sentence{
font-weight:bold;
}

.info {
background-color:rgb(222, 160, 222
);
}
</style>
</head>
<body>

<h1>Groupers</h1>

<div class="info"><p><span class="first-sentence">Groupers</span> are teleosts (ray-finned fishes), typically having a stout body and a large mouth. They can be quite large, and lengths over a meter and weights up to 100 kg are not uncommon, though obviously in such a large group, species vary considerably. They swallow prey rather than biting pieces off it. They do not have many teeth on the edges of their jaws, but they have heavy crushing tooth plates inside the pharynx. They habitually eat fish, octopuses, and crustaceans. Reports of fatal attacks on humans by the largest species, the giant grouper (Epinephelus lanceolatus) are unconfirmed.</p>

<p><span class="first-sentence">Their</span> mouths and gills form a powerful sucking system that sucks their prey in from a distance. They also use their mouths to dig into sand to form their shelters under big rocks, jetting it out through their gills. Their gill muscles are so powerful, it is nearly impossible to pull them out of a cave if they feel attacked and extend those muscles to lock themselves in.</p></div>

<a href="http://en.wikipedia.org/wiki/Grouper">Read more on Wikipedia</a>

</body>
</html>
51 changes: 51 additions & 0 deletions bloco_3/3_3/challange_group_of_rules.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: Grouped animals</title>
<style>
p {
font-family: sans-serif;
}

img {
max-width: 150px;
}

h1, h2 {
font-family: fantasy;
border-bottom: 1px solid rgb(230, 230, 230);
padding: 3px;
}

h1:hover, h2:hover {
background-color: rgb(248, 255, 199);
}

</style>
</head>
<body>

<h1>Animal group names</h1>

<p>For many species of animals, there are names that we use to refer to a group of them - like a flock of birds. Here are a few you might not know.</p>

<h2>A skulk of foxes</h2>

<p>Also called a "leash."</p>

<img src="https://www.kasandbox.org/programming-images/animals/fox.png">
<img src="https://www.kasandbox.org/programming-images/animals/fox.png">

<h2>A clowder of cats</h2>

<p>Also called a "pounce", "glaring", "kindle", or "clutter."</p>

<img src="https://www.kasandbox.org/programming-images/animals/cat.png">
<img src="https://www.kasandbox.org/programming-images/animals/cat.png">

<p>
<a href="http://en.wikipedia.org/wiki/List_of_animal_names">Learn more on Wikipedia</a>
</p>
</body>
</html>
35 changes: 35 additions & 0 deletions bloco_3/3_3/challange_overflow.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: The overflowing ocean</title>
<style>
.info {
background: rgb(219, 235, 255);
width:70%;
height:200px;
overflow-y:auto;
}
.pic {
width:70%;
}
</style>
</head>
<body>

<h1>The ocean</h1>

<img class="pic" src="https://www.kasandbox.org/programming-images/landscapes/beach-in-hawaii.png" alt="Photo of rocky ocean beach in Hawaii">

<div class="info">
<p>The <strong>ocean</strong> is the connected body of salty water that covers 70.8% of the Earth's surface. The sea moderates the Earth's climate and has important roles in the water cycle, carbon cycle, and nitrogen cycle. Although the sea has been travelled and explored since prehistory, the modern scientific study of the sea—oceanography—dates broadly to the British Challenger expedition of the 1870s. The sea is conventionally divided into four or five large sections, such as the Pacific, called oceans while smaller sections, such as the Mediterranean, are known as seas.
</p>
<p>
Owing to the present state of continental drift, the Northern Hemisphere is now fairly equally divided between land and sea (a ratio of about 2:3) but the South is overwhelmingly oceanic (1:4.7). Salinity in the open ocean is generally in a narrow band around 3.5% by mass, although this can vary in more landlocked waters, near the mouths of large rivers, or at great depths. About 85% of the solids in the open sea are sodium and chloride. Deep-sea currents are produced by differences in salinity and temperature. Surface currents are formed by the friction of waves produced by the wind and by tides, the changes in local sea level produced by the gravity of the Moon and Sun. The direction of all of these is governed by surface and submarine land masses and by the rotation of the Earth (the Coriolis effect).
</p>

<a href="http://en.wikipedia.org/wiki/Sea">Read more on Wikipedia</a>
</div>

</body>
</html>
41 changes: 41 additions & 0 deletions bloco_3/3_3/challange_position.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Challenge: Position planet</title>
<style>
#greeting {
background: rgb(255, 255, 0);
border: 2px solid black;
font-family: "Comic Sans MS", fantasy;
padding: 5px;
width: 262px;
position:absolute;
top:100px;
left:150px;
z-index:1;
}

#creature {
position:absolute;
left:50px;
top:50px;
}
#planet {
position:absolute;
}
</style>
</head>
<body>

<img id="planet" src="https://www.kasandbox.org/programming-images/space/planet.png" width="300">

<div id="greeting">
<p>Hello! Welcome to position planet!</p>
</div>

<img id="creature" src="https://www.kasandbox.org/programming-images/avatars/mr-pink.png">


</body>
</html>