Introduction to html tutorial
Tags: html, webdev, codenewbie, tutorial
Published: 2021-05-08 16:56:26

---
title: Introduction to html tutorial
published: true
date: 2021-01-10 01:16:04 UTC
tags: [html, webdev, codenewbie, tutorial]
canonical_url: https://www.devwares.com/blog//introduction-to-html
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7fd7bldjcxrfes1dhjg.png
series: Devwares Web development Free Course
---

## What is HTML?

HTML is the language of the web. It is very important for both building web application and web pages. HTML stands for Hypertext Markup language combined with Cascading Style Sheets (CSS) and Javascript, it forms the basic technologies of the world wide web.

![AD-BANNER](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/41meil9ho9yx2ulb535m.png)

**A SIMPLE HTML EXAMPLE** Here is how an HTML code looks like

```html
<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
  </head>
  <body>
    <h1>My First Heading</h1>
    <p>My first paragraph.</p>
  </body>
</html>

```

And here’s what the above code looks like in your web browser

![First Website](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jpcongauf74dhitx0mh1.png)


**breaking it down**

- The `<DOCTYPE html>` declaration defines this document to be HTML5
- The `<html>` element is the root element of an HTML page
- The `<head>` element contains meta information about the document
- The `<title>` element indicates a title for the document
- The `<body>` element contains the visible page content
- The `<h1>` element defines a large heading
- The `<p>` element defines a paragraph

## HTML ELEMENT

A html element contains a tag, some content and an end tag. It is basically two tags with a content in between them.`<p>` my second web page `<p>`

  

## HTML TAGS

HTML tags are element names that usually come in pairs for example `<p></p>`. The first tag is usually enclosed in a and the closing tags have a forward slash inserted before the tag name.

  

## WEB BROWSER

The real function of the web browser (Chrome, Firefox, Safari, Microsoft Edge) is to read and display the HTML content correctly.

  
The browser does not display the tags, that would make the page really ugly but uses the tags to determine how to display the document.
## HTML PAGE STRUCTURE

Below is a visualization of an HTML page structure:

Note the cream white part is the only content displayed on the browser.

## The <!DOCTYPE> Declaration

The <!DOCTYPE> Declaration represent a document type, and helps the browser display web pages correctly. It must only appear once usually at the top of the page. It is not known to be case sensitive. For example, the HTML 5 looks like this `<!DOCTYPE HTML>`

## HTML HISTORY

Before we continue with our lesson, we are going to look at some important history of the web page. Since its early days of the web, there have been many versions of the HTML.

  
Below this table is a summary of all the versions of the HTML;

| version | Year |
| --- | --- |
| TIM BERNERS-LEE INVENTED HTML | 1991 |
| ---------------------------- | --------------- |
| HTML 2.0 | 1995 |
| ------------------------------ | --------------- |
| HTML 3.2 | 1997 |
| ----------------------------- | --------------- |
| HTML 4.0 | 1999 |
| ------------------------------- | --------------- |
| XHTML 1.0 | 2000 |
| ------------------------------- | ---------------- |
| HTML 5 | 2014 |
| ------------------------------ | --------------- |
| HTML 5.1 2ND EDITION | 2017 |
| ------------------------------ | --------------- |
| HTML5.2 | 2017 |
| ------------------------------ | --------------- |


###Create Stunning Websites and Web Apps

Building different custom components in react for your web apps or websites can get very stressful. That's why we decided to build contrast. We have put together a UI kit with over 10000+ components, 5 admin dashboards and 23 additional different pages template for building almost any type of web app or webpage into a single product called Contrast Pro. [Try contrast pro!](https://www.devwares.com/product/contrast-pro)

![Contrast Design Boostrap](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ulsutxnzjpbpaauhvbew.png)

Contrast React Bootstrap PRO is a Multipurpose pro template, UI kit to build your next landing, admin, SAAS, prelaunch, etc. project with a clean, well documented, well crafted template and UI components. [Learn more about Contrast Pro](https://www.devwares.com/product/contrast-pro)

## Resources 

- [Contrast Design Bootstrap](https://www.devwares.com/docs/contrast/javascript/index/)
- [Accordion](https://www.devwares.com/docs/contrast/javascript/components/accordion/)
- [Alert](https://www.devwares.com/docs/contrast/javascript/components/alert/)
- [Animation](https://www.devwares.com/docs/contrast/javascript/components/animations/)
- [Autocomplete](https://www.devwares.com/docs/contrast/javascript/components/autocomplete/)
- [Badges](https://www.devwares.com/docs/contrast/javascript/components/badge/)
- [Box](https://www.devwares.com/docs/contrast/javascript/components/box/)
- [Breadcrumb](https://www.devwares.com/docs/contrast/javascript/components/breadcrumb/)
- [ButtonGroup](https://www.devwares.com/docs/contrast/javascript/components/buttonGroup/)
- [Button](https://www.devwares.com/docs/contrast/javascript/components/buttons/)
- [ButtonToolbar](https://www.devwares.com/docs/contrast/javascript/components/buttonToolbar/)
- [Card](https://www.devwares.com/docs/contrast/javascript/components/card/)
- [Carousel](https://www.devwares.com/docs/contrast/javascript/components/carousel/)
- [Checkbox](https://www.devwares.com/docs/contrast/javascript/components/checkbox/)
- [Collapse](https://www.devwares.com/docs/contrast/javascript/components/collapse/)
- [DataTable](https://www.devwares.com/docs/contrast/javascript/components/datatables/)
- [DatePicker](https://www.devwares.com/docs/contrast/javascript/components/datepicker/)
- [DropDown](https://www.devwares.com/docs/contrast/javascript/components/dropdown/)
- [Footer](https://www.devwares.com/docs/contrast/javascript/components/footer/)
- [Forms](https://www.devwares.com/docs/contrast/javascript/components/forms/)
- [Icon](https://www.devwares.com/docs/contrast/javascript/components/icon/)
- [Iframe](https://www.devwares.com/docs/contrast/javascript/components/iframe/)
- [Input](https://www.devwares.com/docs/contrast/javascript/components/input/)
- [InputGroup](https://www.devwares.com/docs/contrast/javascript/components/inputgroup/)
- [ListGroup](https://www.devwares.com/docs/contrast/javascript/components/listgroup/)
- [Mask](https://www.devwares.com/docs/contrast/javascript/components/mask/)
- [Modal](https://www.devwares.com/docs/contrast/javascript/components/modal/)
- [Multiselect](https://www.devwares.com/docs/contrast/javascript/components/multiselect/)
- [Notification](https://www.devwares.com/docs/contrast/javascript/components/notification/)
- [Pane](https://www.devwares.com/docs/contrast/javascript/components/pane/)
- [Panel](https://www.devwares.com/docs/contrast/javascript/components/panels/)
- [Pop Over](https://www.devwares.com/docs/contrast/javascript/components/popover/)
- [Progress](https://www.devwares.com/docs/contrast/javascript/components/progress/)
- [Radio](https://www.devwares.com/docs/contrast/javascript/components/radio/)
- [Rating](https://www.devwares.com/docs/contrast/javascript/components/rating/)
- [Select](https://www.devwares.com/docs/contrast/javascript/components/select/)
- [Select 2](https://www.devwares.com/docs/contrast/javascript/components/select2/)
- [Slider](https://www.devwares.com/docs/contrast/javascript/components/slider/)
- [Spinner](https://www.devwares.com/docs/contrast/javascript/components/spinner/)
- [Stepper](https://www.devwares.com/docs/contrast/javascript/components/stepper/)
- [Switch](https://www.devwares.com/docs/contrast/javascript/components/switch/)
- [Table](https://www.devwares.com/docs/contrast/javascript/components/table/)
- [Forms](https://www.devwares.com/docs/contrast/javascript/forms/)
- [Navbar](https://www.devwares.com/docs/contrast/javascript/navigation/navbar/)
- [Pagination](https://www.devwares.com/docs/contrast/javascript/navigation/pagination/)
- [Tab](https://www.devwares.com/docs/contrast/javascript/navigation/tabs/)
- [Sidebar](https://www.devwares.com/docs/contrast/javascript/navigation/sidebar/)
- [Time Picker](https://www.devwares.com/docs/contrast/javascript/sections/timepicker/)
- [Data Table](https://www.devwares.com/docs/contrast/javascript/table/datatables/)
- [Fixed Data Table](https://www.devwares.com/docs/contrast/javascript/table/fixed_datatables/)
- [Table](https://www.devwares.com/docs/contrast/javascript/table/table/)
- [Widgets](https://www.devwares.com/docs/contrast/javascript/widgets/)