Delicious Digg Facebook Favorites More Stumbleupon Twitter

Building Your Website – Part 3

A basic HTML pageTo get started and have a play you can copy and paste this code in to your HTML editor:

<html>
<body>
<h1>Here is my first title </h1>
<p>This is my first paragraph to help me test different types of styles using CSS with my HTML</p>
<h2>This is my second title</h2>
<p>Here is a second paragraph to see how I can have different styles for the same tag on the same page </p>

<ol>
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<li>List item 4</li>
</ol>
</body>
</html>

Save the file as index.html (this is the name web browsers and search engines want to see so they know which page is the home page)

What do they mean?

  • <html> Tells the web browser to expect an HTML file
  • <body> Tells it that the main body of the page is coming.Important: Every HTML web page must have those two tags (opened and closed).
  • <h1> The biggest heading
  • <h2> The 2nd biggest heading
  • <p> A paragraph
  • <ol> An ordered list (e.g. 1,2,3 etc)
  • <li> A list item for the ordered list<a href=”…”> Creates a link.

 

(End of Part 3)

One Response to “Building Your Website – Part 3”

  1. Luigi Fulk says:

    If you’re still confused, why don’t you ask us for an opinion?

Leave a Reply

You must be logged in to post a comment.