Welcome to the HTML Activity page!
Here you will learn step-by-step how to create your own webpage.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Made with Thimble</title> <link rel="stylesheet" href="style.css"> </head> <body> <h1>Welcome to Thimble</h1> <p> Make something <strong>amazing</strong> with the web! </p> </body> </html>
<opening tag>
and a </closing tag>
. The difference is that the latter has the /
(slash) character. Also notice, how the content, is "wrapped" inside of those tags.
<!DOCTYPE html>
tells a browser which version of HTML the webpage is written in but in HTML5 (that we are using), you just write <!DOCTYPE html>
without specifying any particular version.<html>
tag tells the browser that it is an HTML document. It also serves as a container for all other HTML elements.<head>
and a <body>
. Inside a <head>
tag, we can specify ...
<meta>
defines parameters of your webpage. For now, don't worry about it, these are just some "standard" parameters that every webpage needs to have. If you're curious what they do, it is explained in "More Information" section below.<link>
tag defines a link between your HTML document and any other external resource. Here, we use <link>
to reference our style sheet. We'll cover what a stylesheet is later.<title>
tag, you can set your webpage's title. Easy!<body>
tags. In the code above, there are <h1>
, <strong>
and <p>
tags.
<h1>
is a tag that is used for headers. <strong>
tag allows you to emphasize the text by making it bold.<p>
stands for paragraph and just wraps paragraphs of plain text.<h1>
and </h1>
.<h1>
, <h2>
, <h3>
, <h4>
, <h5>
, and <h6>
. <h1>
is the largest and <h6>
is the smallest.You can choose to make your background a certain colour or make the background of your webpage a certain picture.
<ol>
and </ol>
to encapsulate each item of your list. To denote each individual item, surround it with <li>
and </li>
.<ul>
and </ul>
to encapsulate each item of your list. To denote each individual item, surround it with <li>
and </li>
.Source: w3schools
<link rel="stylesheet" href="style.css">
<h1>
section headings purple and italized, the tag_name would be h1.<img>
tag? <img class="small-image" src="example.jpg"/>
<img class="medium-image" src="example.jpg"/>
<h1 id="my-red-text"> Hello World! </h1>
CSS provides us with flexibility to change the style of an entire webpage by only editing the CSS file. Implement the tasks below by changing style.css
file and adding classes/ids to the HTML elements. No inline styling is allowed!
font-size
. For all the possible ways that you can change font sizes, refer to w3schools CSS fonts page.background-color
and background-image
. More information is available at w3schools CSS backgrounds page.small_image
, medium_image
and large_image
, that have widths of maximum 100px, 300px and 500px respectively.<meta>
and <title>
tags do?<meta>
sets the webpage's parametres. In the code example above, charset
specifies the character set used in the HTML document. Viewport is the area of a web page that is visible to a user, so "viewport"
tells the browser how to control the page's dimensions and scaling.