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>
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.
<body>
</body>
</html>
Paragraph Tag
The <p> is used to hold and separate text into neat little blocks.
<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.
If you have any questions, leave a comment below.
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!