How to Create HTML

HyperText Markup Language (HTML) is the code that builds web pages so they are viewable on the World Wide Web. This markup language consists of small code snippets known as "tags" that make up the page elements, such as headings and lists, and compose your document. Fortunately, you already have what you need to work with HTML. Using the text editor program that comes with your computer, you can create a simple page to start learning this code.

Instructions

    • 1

      Launch your text editor program and create a new page.

    • 2

      Type in the code that starts a basic HTML document:

      <html>
      <head>
      <title></title>
      </head>

    • 3

      Enter the name of your web page between the "<title></title>" tags. For example:

      <title>Web Page Name</title>

      This name displays on top of a browser window.

    • 4

      Type in opening and closing "<body></body>" tags underneath the "</head>" element. Any content entered between the "body" tags is visible on the web page.

    • 5

      Enter an ending "</html>" tag to complete the HTML code. The full code now looks as follows:

      <html>
      <head>
      <title>Web Page Name</title>
      </head>
      <body>
      </body>
      </html>

    • 6

      Create HTML page elements by typing these in between the "<body></body>" tags. For example, type "<p></p>" paragraph tags and enter your paragraph content in between these elements:

      <body>
      <p>This is your first paragraph.</p>
      <p>This is your second paragraph.</p>
      </body>

    • 7

      Save your file with an ".html" extension (ending). Launch your web browser and select "Open" or "Open File" from the "File" menu to view your HTML page.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured