Skip to content

Commit 11a0d56

Browse files
authored
Merge pull request #1 from jakewright/learn-html
Add HTML Source Code
2 parents 6232487 + 3f1cd93 commit 11a0d56

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

html/01-learn-html/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Learn HTML in 12 Minutes
2+
3+
In this short HTML tutorial, I explain the basic structure of an HTML webpage and introduce some important tags.
4+
5+
[Watch Learn HTML in 12 Minutes on YouTube](https://youtu.be/bWPMSSsVdPk)
6+
7+
# Getting started
8+
9+
This directory contains the source code from the tutorial. `webpage.html` is the source code from the video. `webpage-html5.html` is the same webpage but updated to follow HTML5 standards. Note the following differences:
10+
- The file must start with the HTML5 doctype `<!DOCTYPE html>`,
11+
- `<hr />`, `<br />`, and `<img /`> tags are no longer "self-closing" so do not include the forward slash `/`, and
12+
- The `<img>` tag must include an `alt` attribute to specify alternative text if the image cannot be displayed.

html/01-learn-html/image.bmp

467 KB
Binary file not shown.

html/01-learn-html/webpage-html5.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Hello World</title>
5+
</head>
6+
7+
<body>
8+
<h1>Hello World</h1>
9+
<p>This is my first webpage. <br> I hope you like it.</p>
10+
<hr>
11+
<p>Another paragraph</p>
12+
13+
<img src="image.bmp" alt="Sample image">
14+
</body>
15+
</html>

html/01-learn-html/webpage.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html>
2+
<head>
3+
<title>Hello World</title>
4+
</head>
5+
6+
<body>
7+
<h1>Hello World</h1>
8+
<p>This is my first webpage. <br /> I hope you like it.</p>
9+
<hr />
10+
<p>Another paragraph</p>
11+
12+
<img src="image.bmp" />
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)