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
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 is a basic implementation of code and can be used for any language. In this case, we are making an HTML hello world.
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.
The html tag starts and ends the document and all other tags are entered in between the opening and closing html tags.
The next required tag is called a body tag. Anything inside the <body> is considered visible page content.
The <p> is used to hold and separate text into neat little blocks.
And your done! You just need to save the file as index.html and double click it, it should open up in a browser.
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.