Understand how websites are built with HTML, CSS and JavaScript
Be able to write some HTML
HTML pages are made up of tags:
<!doctype html>
<html>
<head>
<title>A sample webpage</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Welcome to my website!</p>
<p>This is my first HTML webpage!</p>
</body>
</html>
<!doctype html>
<html>
<head>
<title>A sample webpage</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Welcome to my website!</p>
<p>This is my first HTML webpage!</p>
</body>
</html>
Paragraph:
<p>Text in here</p>
An image
<img src="image1.jpg" alt="Image 1">
A link
<a href="example.com">Click here to go to example.com</a>
Numbered (ordered) list
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
Bulleted (unordered) list
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
A division
<div>Other code goes here</div>
A span
<span>Other code goes here</span>
A link with an image in it
<a href="example.com">
<img src="image1.jpg" alt="Image 1">
</a>
A table
<table>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
Work through the HTML workbook from task 1 onwards using what you have seen in this lesson.
Remember to save each HTML file as a new file.
On your whiteboards, write the tag for each of the following:
The title that appears in the tab in Chrome
An image tag with an image found at image3.png
A paragraph of text containing the word "Welcome!"
A link to a page called page2.html
The second-largest heading containing the words "Stage 1"
<html>
<head>
<title>My personal website</title>
</head>
<body>
<h1>Welcome to my first webpage.</h1>
<p>
This webpage is available on the local network for anyone to view.
</p>
<p>
On my website you will find the following information:
</p>
<ul>
<li>About me</li>
<li>My favourite things</li>
<li>People I follow</li>
</ul>
<p>
If you enjoy using my website, please feel free to visit my other
website at <a href="https://www.example.com">this page</a>.
</p>
<img src="me.jpg" alt="">
</body>
</html>
Apply a filter: