WDS2 - HTML Introduction and Setup
Tags: html, wds
Published: 2017-12-13 20:30:28

---
title: "WDS2 - HTML Introduction and Setup"
published: true
tags: HTML,WDS
canonical_url: http://thecodingexpress.blogspot.com/2017/12/wds2-html-introduction-and-setup.html
---

### What is HTML?

HTML stands for Hyper Text Markup Language. It is standard&nbsp;markup language for creating Web pages. It describes the structure of Web pages using markup. In simple language, we will write HTML document using normal content and some special tags which will be rendered by browsers such as google chrome, firefox, opera or safari.Browsers do not display the HTML tags but use them to render the content of the page.
    

### A Simple HTML Document

<script async="" src="//jsfiddle.net/TheCodingExpress/j5k04e4c/1/embed/html,result/dark/"></script> In the above HTML document the following part is content:  

- Page Title
- My First Heading
- My First paragraph

All the remaining part is made up of tags that will not be shown on the browser (that is output). Let's see what these tags mean:  

- **\<!DOCTYPE html\>** : Defines this document as HTML
- **\<html\>** : Root element of an HTML page
- **\<head\>** : This contains meta information about this document
- **\<title\>** : Title of document that will be shown in your tab bar
- **\<body\>** : It contains visible portion of document
- **\<h1\>** : Large heading
- **\<p\>** : paragraph

We will see each of this in detail, but this is just a short explanation.

### HTML Tags

HTML is a markup language and makes use of various tags to format the content. These tags are used as follows: **&nbsp;**  
**\<tagname\> your content \</tagname\>**  
The first tag in a pair is called start tag and the other one as the end tag. The end tag is san=me as start tag&nbsp;but with a forward slash(/) attached to it. Some tags only require&nbsp;only starting tag but we will see that later.  

### HTML Document Structure

[![](https://2.bp.blogspot.com/-0B_ZoHzOhyE/Wikn4Cqm1yI/AAAAAAAAHCw/ZhcScuYV1pgQ3j0tl4Q2mQ9F30TtHZN9ACLcBGAs/s400/basic-html-tags.jpg)](https://2.bp.blogspot.com/-0B_ZoHzOhyE/Wikn4Cqm1yI/AAAAAAAAHCw/ZhcScuYV1pgQ3j0tl4Q2mQ9F30TtHZN9ACLcBGAs/s1600/basic-html-tags.jpg)

_ **Special Note** :_ \<!DOCTYPE html\> is part of HTML5.&nbsp;It must only appear once, at the top of the page (before any HTML tags). It helps browsers to display web pages correctly.

### Where to Write HTML

There are various HTML editors available for writing HTML code like sublime code, VS Code, Atom code editor, but for now, we will use **Notepad** on Windows and **TextEdit** on Mac. Whatever you are using, open the new document and write the code mentioned in "A Simple HTML document" in it.&nbsp;  
  
  

[![](https://2.bp.blogspot.com/-iCTBRw-O0-M/Wikzzhza8EI/AAAAAAAAHDc/jCD-iWJ3NfEW1DMWvq4BlpC6J7dweErewCLcBGAs/s400/WDS2-1.PNG)](https://2.bp.blogspot.com/-iCTBRw-O0-M/Wikzzhza8EI/AAAAAAAAHDc/jCD-iWJ3NfEW1DMWvq4BlpC6J7dweErewCLcBGAs/s1600/WDS2-1.PNG)

  

After that save the file by **File \>&nbsp; Save As**. Name the file " **test.html**" and select encoding as "UTF-8".

[![](https://4.bp.blogspot.com/-Tt2wQ8NSSpk/WikwFg7gEKI/AAAAAAAAHDQ/nVRP4Rv5ELE0JGQ00GsMz5CuhTdZudAAACLcBGAs/s400/WDS2-2.PNG)](https://4.bp.blogspot.com/-Tt2wQ8NSSpk/WikwFg7gEKI/AAAAAAAAHDQ/nVRP4Rv5ELE0JGQ00GsMz5CuhTdZudAAACLcBGAs/s1600/WDS2-2.PNG)

  

Now open the file by double-clicking it and yeah!!! The result should look as follows(it may be slightly different depending on the browser you are using):

  

[![](https://3.bp.blogspot.com/-XGG3P6bKMhs/Wikz4y8zi7I/AAAAAAAAHDg/F7L9zC4y0RwK5mPWXJRP76k7TEyONl6wwCLcBGAs/s400/WDS2-3.PNG)](https://3.bp.blogspot.com/-XGG3P6bKMhs/Wikz4y8zi7I/AAAAAAAAHDg/F7L9zC4y0RwK5mPWXJRP76k7TEyONl6wwCLcBGAs/s1600/WDS2-3.PNG)

  

**You have successfully created your first webpage.** Although its very simple, soon you will learn how to add more elements to it.

That's all for this article. In the next part, we will learn about few other new things.&nbsp;

Comment on how you think this article is, what improvements&nbsp;should I do and for any doubts. Share with your friends&nbsp;and **_keep coding._**