HTML stands for Hyper Text Markup Language
It is a Markup language (not Programming or Scripting language) used to create webpages, which forms the part of a website.
An HTML document consists of various tags or elements which defines the structure of the webpage.
Let us start our journey with a Hello World code in HTML:
<!DOCTYPE html>
<html>
<head>
<title>Hello world page title</title>
</head>
<body>
Hello World in Body
</body>
</html>
Voila, you just finished writing your first Hello world code in HTML.
Let us first understand the script which we just wrote.
Whenever you start writing an HTML document, you should always start with the tag <!DOCTYPE html>. This will indicate the browser that this is an HTML5 document.
Next comes the <html> </html> tag which indicates the root of an HTML document. All the further elements or tags shall be typed within this <html> tags. <html> tag has two child elements as below:
<head> tag consists of various meta data information associated with that html document. This may include elements such as page title, links to CSS or Javascript files, search engine helper meta description tags, etc.
In the above example, you can see that the <head> tag further contains the <title> tag, which indicates the page title of the web page. You should be able to view this page title as “Hello world page title” in your browser’s tab name while you open this document.
<body> tag consists of the actual content which are displayed to the user in web browsers. This may contain page contents such as headings, normal text, tables, images, etc. We shall explore into the depth of HTML in subsequent tutorials.
Next Chapter Chapter 2 - HTML Elements
Streamline your sales process and increase productivity