The idea behind HTML was a modest one. When Tim Berners-Lee was putting together his first elementary browsing and authoring system for the Web, he created a quick little hypertext language that would serve his purposes. He imagined dozens, or even hundreds, of hypertext formats in the future, and smart clients that could easily negotiate and translate documents from servers across the Net. It would be a system similar to Claris XTND on the Macintosh, but would work on any platform and browser.
The problem, however, turned out to be in the simplicity of Berners-Lee's language. Since it was text-based, you could use any editor or word processor to create or convert documents for the Web. And there was just a handful of tags – anyone could master HTML in an afternoon. The Web flourished. Everyone started publishing. The rest is history.
As its name suggests, HTML is a markup language.
<!DOCTYPE html> #declare the document type <html lang= "en"> #declare the coding language <meta charset="UTF-8" /> <head> #opens the head of the document <title> This a is document title </title> </head> <body> #opens the body of the document <h1>This is a heading</h1> <p>Document content goes here.....</p> </body> </html>
Notice the indentation used within the code. This helps to make the code easier to read and helps to show where each tag should be closed.