Html says Hello World!

This is the first in a family of upcoming Hello World posts. My goal is to get people to understand the simplicity and correct usage of HTML.

Here are a few facts about HTML:

  • HTML stands for Hyper Text Markup Language
  • HTML is a markup language. It is not like Java or C++
  • It is the main structure that holds websites together

HTML tags

Markup tags are generally called HTML tags.

  • HTML tags are keywords surrounded by angle brackets like <html>
  • Markup tags usually come in pairs: <i> and </i>
  • The first tag is called a opening tag and the second is called a closing tag. The closing tag has a / to signify it as a closing tag.

Hello World

Hello world is a basic implementation of code and can be used for any language. In this case, we are making an HTML hello world.

Html Tag

Open a text editor and start the document with a <html> and add the closing tag after. This is a required tag for all html documents.

<html>
</html>

The html tag starts and ends the document and all other tags are entered in between the opening and closing html tags.

Body Tag

The next required tag is called a body tag. Anything inside the <body> is considered visible page content.

<html>
   <body>
   </body>
</html>

Paragraph Tag

The <p> is used to hold and separate text into neat little blocks.

<html>
   <body>
      <p>Hello World!!</p>
   </body>
</html>

And your done! You just need to save the file as index.html and double click it, it should open up in a browser.

Example

The final product is just a default white webpage with the text that you have entered in the <p>. It’s that simple and it shows how easy HTML can be.

Example

If you have any questions, leave a comment below.

One Response to Html says Hello World!

  1. Healthy diet plan says:

    This is very intriguing, You are a quite skilled blogger. I have joined your rss feed and look forward to looking for far more of your wonderful post. Also, I’ve shared your internet web site in my social networks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>