Skip to content

Commit a883c59

Browse files
committed
HTML part
1 parent e858981 commit a883c59

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>CSS and JavaScript</title>
6+
</head>
7+
8+
9+
<body>
10+
11+
<p align="center" style="background-color:black;color:red;">
12+
Come to the dark side, we have <span id="cookie">cookies!</span>
13+
</p>
14+
15+
<button onclick="alert('This is your last warning!!! Do NOT Press That Button Again!')">
16+
Don't click me!
17+
</button>
18+
19+
20+
<button onclick="document.getElementById('cookie').style.color='yellow'">
21+
Click to highlight the advantages of the Dark side.
22+
</button>
23+
24+
</body>
25+
26+
27+
</html>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<style>
6+
h1 {
7+
color: blue;
8+
font-family: verdana;
9+
font-size: 300%;
10+
}
11+
p {
12+
color: red;
13+
font-family: courier;
14+
font-size: 160%;
15+
}
16+
#diff {
17+
color: green;
18+
border: 1px solid powderblue;
19+
}
20+
</style>
21+
</head>
22+
23+
<body>
24+
<h1>This is a heading</h1>
25+
<p>This is a paragraph.</p>
26+
<p id="diff">I am different</p>
27+
</body>
28+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>Character encoding in HTML</title>
6+
</head>
7+
8+
<body>
9+
10+
<p>This is the Euro sign: &euro; (method 1)</p>
11+
<p>This is the Euro sign: &#8364; (method 2)</p>
12+
<p>This is the Euro sign: &#x20AC; (method 3)</p>
13+
14+
</body>
15+
16+
17+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>My First Webpage</title>
6+
</head>
7+
8+
<body>
9+
<p align="center" class="centered">This is not the web page you are looking for. Move along, move along!</p>
10+
<button>Don't click me!</button>
11+
12+
<a href="https://www.youtube.com/watch?v=D9ioyEvdggk" id="forbidden-riff-1">
13+
Click here for high-quality music.
14+
</a>
15+
16+
<a href="https://www.youtube.com/watch?v=D9ioyEvdggk" target="_blank" id="forbidden-riff-2">
17+
Click here for high-quality music in a new tab.
18+
</a>
19+
20+
</body>
21+
22+
23+
</html>

0 commit comments

Comments
 (0)