HTML stands for Hyper-Text Markup Language. This code language enables us to lay out the basics of webpages. Virtually every web page in existence was created using this language.
So, how do I use it?
You can write HTML in any text editor. (Yes, any! You don’t need a fancy code editor to create websites!) This means you can write a website in Notepad, TextEdit, or even Microsoft Word. All you have to do is save your file with an
.html extension. Then you’re good to go!
Alright! Now how do I make something?
I’ll go over how to properly format your HTML soon, but for now, type something in your document. For example:
Now save your file, and open it in your web browser. Tada!
One problem, though. We didn’t specify what type of information “Hello world!” was, so the browser defaulted to displaying plain text. How do we remedy this? With tags of course!
Tags (or Elements)
As you saw, typing things in our
.html file displayed them in our browser. But what if we want the text to be bold? Or a heading? That’s where elements come in.
Elements typically have an opening and closing tag. The opening tag is written with two angle brackets, like so:
Closing tags are written with two angle brackets as well. However, there is a forward slash after the first bracket.
Coming up next: Formatting Your HTML Document