How to Make a Blog in HTML

104 40
    • 1). Open the text editor and create a new file by clicking on "File" and "New." Every computer comes with a text editor. A Windows PC uses Notepad. This is found under "Applications" in the Start menu. Mac PCs have Text Edit. To open Text Edit, open Finder and click on "Applications". Scroll down to the Text Edit icon and double click to open.

    • 2). Create the web page by typing in the basic HTML tags for the page. For example:

      <html>

      <head>

      <title>My Blog</title>

      </head>

      <body>

      </body>

      </html>

    • 3). Use the largest heading tag to give the page a title. The heading tags start with h and end in a number with 1 being the largest. For example:

      <body>

      <h1 style="text-align: center;">My Blog</h1>

      The style element uses CSS elements to center the title on the page. Headers also leave a double space after them.

    • 4). Create the blog post code by using smaller header tags and paragraph tags. For example:

      <h3>My First Post</h3>

      <em>June 1, 2010</em><br />

      <p>This is a post</p>

      <hr>

      The EM tag italicizes the text. The break or BR tag puts a line break after the date. The P or paragraph tag puts a double line break after a block of text. The HR tag puts a line across the page after the paragraph.

    • 5). Copy the code for the blog post and place it before the first post. Place the code in the comment tag. The comment tag is <!-- -->. The page in the example will now look like:

      <html>

      <head>

      <title>My Blog</title>

      </head>

      <body>

      <h1 style="text-align: center;">My Blog</h1>

      <!--<h3>My First Post</h3>

      <em>June 1, 2010</em><br />

      <p>This is a post</p>

      <hr> -->

      <h3>My First Post</h3>

      <em>June 1, 2010</em><br />

      <p>This is a post</p>

      <hr>

      </body>

      </html>

      The comment tag makes the unused code invisible to the browser. To use it for a blog post just copy the code and remove the comment tags.

    • 6). Save the file as index.html by clicking on "File" and "Save."

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.