Hello, Internet
Introduction to HTML
In 1990, Tim Berners-Lee created a language for creating versatile documents on the internet. This method of creating documents is called HTML.
HTML stands for Hyper Text Markup Language. HTML is not like a traditional computer language where you have special software to write programs,
in fact HTML can be written in the basic notepad program on your computer. The structure of HTML is very basic, it mostly involves using an opening
and closing tag.
How to create your own web page
The steps are really simple. Just make sure to add a new line between each pair of tags. Tags are any element that is enclosed by an <tag> and </tag> An exception to this is the body and html tags, just follow my guide to know when to place those.
- Open up a text editor and create a file named
mywebsite.html
. - Begin with
<!DOCTYPE html>
- This tells the browser that you are writing in HTML. - Next we will start with an opening
<html>
tag. This tag means that everything inside is going to be HTML tags. - Now we will use
<head> <title> My Website </title> </head>
. The Head tag is where the information like the title goes.
We used the title tag to tell the browser the title of our website. - Immediately following your closing head tag, type
<body>
This will open the body of the page up. The body is the main portion of the web page. - Next we will add a heading and paragraph. To do so, type
<h1> Hello World </h1> <p> Hello world this is a paragraph </p>
This creates a heading and a paragraph where you can put text information in. - Finally we will add our closing
<body> and <html>
tags. This will close out the document and wrap it up. - Save your page and open it in a web browser. When you save your file, your operating system will most likely open it in a browser by default.
I know this was a very brief and crude way to learn HTML, but I hope that you are inspired to seek out more information. A great place to look is Here
The W3C is the governing body of all things HTML, that blue link will take you to a place where you can learn web development for free!
Thanks for reading!
No comments: