Escolar Documentos
Profissional Documentos
Cultura Documentos
HTML, CSS & JS
HTML, CSS & JS
ADD LINK
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
ADD IMAGE
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img src="url"/>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Lists</title>
</head>
<body>
<ol>
<li>Raindrops on roses</li>
<li>Whiskers on kittens</li>
</ol>
</body>
</html>
CHANGE FONT SIZE
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p style="font-size: 20px"> Some text for you to make normal size!</p>
<p style="font-size: 40px"> Some text for you to make super big!</p>
</body>
</html>
TABLES
<html>
<head>
<title>Table Time</title>
</head>
<body>
<table style="border-collapse:collapse;">
<thead>
<tr>
</tr>
<tr style="border-bottom:1px solid black;">
</tr>
</thead>
<tbody>
<tr>
</tr>
<tr>
<td style="padding:5px;">Dracula</td>
</tr>
<tr>
</tr>
</tbody>
</table>
</body>
</html>
ADD DIVISIONS
<!DOCTYPE html>
<html>
<head>
<title>Result</title>
</head>
<body>
</body>
</html>
ADD SPAN
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
LINK TO CSS
<!DOCTYPE html>
<html>
<head>
<title>Result</title>
</head>
CSS
h1 {
color: #576d94;
p{
font-weight: bold;
text-align: center;
font-size: 18px;
color: #4a4943;
img {
display: block;
height: 100px;
width: 300px;
a{
text-decoration: none;
color: #cc0000;
border-radius: 5px;
background-color: #BCD2EE;
height: 50px;
width: 120px;
margin: auto;
text-align: center;
a:link {
text-decoration: none;
color: #008B45;
a:hover {
color: #00FF00;
a:visited {
color: #EE9A00;
p:first-child {
font-family:cursive;
p:nth-child(2) {
font-family: tahoma;
p:nth-child(3) {
color:#cc0000;
p:nth-child(4) {
background-color: #00ff00;
}
Dividers Display CSS Positioning
p:nth-child(5) {
font-size: 22px;
else
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off,
start racing.'");
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!");
else
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without
pacing.'");
if (feedback > 8)
{
console.log("Thank you! We should race at the next concert!");
else
FUNCTION
};
greeting("Filipe");
RETURN KEYWORD
return number * 2;
};
console.log(newNumber);
OBJECTS
// OBJECT CONSTRUCTOR
object1["key"] = "value";
object2.key = "value";
var object3 = {
property: "value",
key: "value"
};