Basic HTML Page Structure

explanation video
The html pages you write will be composed from "tags." For example, <body>

Notice that the html tags usually come in pairs, an opening and a closing tag. For example: <html> </html>

<!DOCTYPE html>

<html>

<head>

    <title> my html page template </title>

</head>

<body>


</body>

</html>

All of what the audience can see on a website is in the body section of the html code, so the body section grows and grows as the page content increases.

The head section contains information about the website, styling information, and the title tags.

1. The first task is to create a page "template"

The template will have all of the necessary html tags so you can begin each assignment with the basic parts of a page, saving you from re-typing it every time.

2. How to use the online tutorial web site, W3Schools:

In parts 3-5, below, you will be asked to read sections, study the examples and practice using the tags. Then, you will write your code in your repl.it file.

DO NOT COPY THE CODE FROM W3SCHOOLS.

There are two reasons I say that:

  1. You learn better when you type it yourself.
  2. When you copy-paste and then submit it as your own work, that counts as plagiarism and I will prosecute it as described in the school's honor code.

3. Read the sections called html introduction & elements:

Learn and understand the following terms and how they apply to html:

4. Study the Headings & Paragraphs pages on w3schools

Headings page on w3schools

Here you will learn the 6 headings tags, the tags for making horizontal lines on the page and the tags for including hidden comments in the code.

Try clicking on the green "Try it now" feature. When you see "Try it now" throughout W3Schools, it's an opportunity for you to try running code, editing it, running it again, etc. It's a fun way to learn.

Paragraphs page on w3schools

Here you will learn the paragraph tag as well as tags for creating line breaks.

You will also learn how the browser strips out many spaces and line breaks.

Code Comments

Here you will learn how to create comments that are hidden from the viewer of the web page. Yopu can also use this to "turn code off" without deleting the code.

Project 1: Basic Tags- Due Date: Wednesday, 4/10/24

  1. Please go repl.it and index.html. After finishing part 1, above, it will have your template, which you will now add to.
  2. Change the title of the page (in the <title> tags) to Basic Tags. This is the title that appears on the tab in the browser.
  3. Make sure you understand each of the basic html tags and attributes listed below and include at least one example of each in the page.
  4. Don't just have an h1, then an h2, then an h3, etc.
  5. Instead, think about how web sites, magazines and newspapers are organized and try to create some order in your page. Each heading element must contain some text. You can choose what text to use.
  6. REMEMBER: Most html tags travel in pairs, an opening tag and a closing tag.
  7. When you have finished Project 1, hit the Submit button. Believe you can still edit it after submitting, but it indicates to me that it is ready for me to grade it.

here are The tags to use:

<!doctype html>


<html>


<head>

    <title > </title>

</head>

 

 

<body>


<h1> </h1>
<h2> </h2>
<h3> </h3>
<h4> </h4>
<h5> </h5>
<h6> </h6>
<p> </p>
<br>
<hr>
<!--hidden comments-->

</body>

</html>

Rubric

Category minus 15 points minus 5 points Full points
Project Requirements Student submit one file OR 3 or more tags are missing Student submits both the html template and basic tags files (called index.html); 1 or 2 tags are missing Student submits both the html template and basic tags (called index.html) files; each has all requested tags
Code Quality 4-6 mistakes 1-3 mistakes No mistakes are made in the code; when run, it displays as expected
Creativity Student does not show basic creative effort (i.e. no changes in content or arrangement of elements) The headings and paragraph tags are arranged in an interesting way OR contain interesting content. The headings and paragraph tags are arranged in an interesting way AND contain interesting content.