Basic HTML

A webpage can be created with any simple text editor, such as Notepad. HTML commands are enclosed in < > (the less than and greater than symbols). These commands are called tags. Many tags will have an open and close tag, like turning that feature on and off. The close tag will have a slash / (backslash). The code does not have to be indented it just makes it easier to read. In fact, it could all be typed on one line, the HTML tags will tell the browser how to display the text. For example:
<!DOCTYPE html>
<html>
  <head>
    <title>The title will show up in the browser's tab</title>
    </head>

  <body>
    <h1>My First Heading</h1>
    
    <p>My first paragraph.</p>

    Without the p (paragraph) tag, text is just displayed
    right next to each outer,

    no matter how you type it in!
    
  </body>
</html>
The HTML code above will create a webpage like one below:

My First Heading

My first paragraph.

Without the p (paragraph) tag, text is just displayed right next to each outer, no matter how you type it in!
(Alternatively, you can see it in it's own tab at basicExample.html.)
The file must be saved with .html as the extension (or .htm). On a computer running the Windows operating system, you can right click on the icon with the filename and choose "OPEN WITH" to view the file in Notepad to edit the code, or "OPEN WITH" a browser such as Firefox or Chrome to see the webpage.
We will experiment with these simple HTML tags: <strong>, <u>, <em>, <br>, <p>, <center>, <font>, <hr>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6> and <marquee> . Additionally, to insert a space, use &nbsp;.
Keep in mind many of these simple tags are being slowly phased out and are not used in HTML5 with CSS. We will learn multiple ways to achieve some basic web page formatting. Here is a great reference: http://www.w3schools.com/tags/default.asp.