Monday, 6 April 2015

Chapter 2 - Creating a Web Site (HTML)

Create the Web Site

Create a new folder on your computer (a new folder on your desktop is OK).
Name the new folder demoweb.
Now you have a local web site.

Create a Home Page

In the demoweb folder, create a new file named index.html.
Use Notepad (or any other text editor) to put the following content in the file:

index.html

<!DOCTYPE html>
<html>

<head>
  <title>Our Company</title>
</head>

<body>

  <h1>Welcome to Our Company</h1>
  <h2>Web Site Main Ingredients:</h2>

  <p>Pages (HTML)</p>
  <p>Style Sheets (CSS)</p>
  <p>Computer Code (JavaScript)</p>
  <p>Live Data (Files and Databases)</p>

</body>
</html>

After you have saved the file, you can open it in your browser, and see how it runs.

Add an About Page

In the demoweb folder, create a new file named about.html.
Put the following in the file:

about.html

<!DOCTYPE html>
<html>

<head>
  <title>About</title>
</head>

<body>

  <h1>About Us</h1>
  <p>Lorem Ipsum Porem Lorem Ipsum Porem</p>

</body>
</html>

The files above contain headings <h1> and a paragraphs <p>. Please feel free to edit the content.
In the next chapter, we will add a CSS style sheet. After that we will add computer code and data.

Need help? Try KimmyJusTips!

No comments:

Post a Comment