HTML5 Essentials
HTML is the language that powers the web. With HTML you can create your web pages/website. This course provides an in-depth look at the essentials: the syntax of HTML and best practices for writing and editing your code. Will learn HTML, Document structure, block and inline-level tags, floating images, controlling white space, phrase and font markup, list, links, and tables.
Prerequisites for current course / What you need to know
There are no prerequisites as such for current courses/lessons. It's an added advantage if you know basic concepts like Web, Internet, web page, URL, images, etc. It's advisable to view Web Design Development Foundations-Web Technology Fundamentals before dive deeper into HTML5 content.
Topics include
- Course Introduction
- Introducing HTML
- Basic page structure
- Formatting page content
- Structuring content
- List - Creating Lists
- Link - Creating Links
- Table - Working with Table
- Form - Dealing with Forms
- HTML Layout
- What's the next step?
Section 1. Course Introduction
1.1. Welcome
Hi All, I'm Dinanath Jayaswal, Senior UI/Web Developer and Adobe Certified Expert Professional, I wanna welcome you to HTML5 Essentials. This course will take an in-depth look at HTML/HTML5, will learn Syntax and Semantics of HTML. Will also focus on best practices to implement while writing and editing HTML. Here will start by learning what is HTML, Basic HTML Document/Page structure, How to write and format page content, creating a list, link, table, and many more things.
Section 2. Introducing HTML
2.1. Importance
3 pillars / core Languages/Technologies used for Front End Web Design/Development:
HTML (HyperText Markup Language) - Markup language, essential page structure/content, readable and convey structure to the user, text layout model, page mark-up, text, tags, data, details for pages, images, tables, anchor links, forms
- HTML is an acronym that stands for
HyperText Markup Language which is used for creating `web pages and web applications
- HTML is not a programming language; it is a markup language that defines the structure of your content ie. document
CSS (Cascading Style Sheet) - Style Sheet language, page design / presentation / layouts / styling / formattings, look and feel, creative part of web pages
- CSS is a stylesheet language that allows you to control the appearance (look and feel) of your webpages
JavaScript (JS) - Scripting language, dynamic page behavior, logics, conditions and validations, events (mouse click, hover), interactivity with the user/events, dynamic updates in a web page
- JavaScript is a `scripting language of the web that allows you to do interactivity with the user, implement conditions and validations, dynamic updates in a web page, etc.
Syntax & Example:
<html>
<head>
<title>02.01.intro.html</title>
</head>
<body>
<h1>This is Intro HTML file</h1>
This line will displayed on browser / web page.
</body>
</html>
2.2. HTML (HyperText Markup Language)
- HTML stands for
HyperText Markup Language
- The Standard/foundation/gateway/most widely used language used for developing/creating/structuring content on the web
- We can create a static website by HTML only
- Technically, HTML is a
Markup language rather than a programming language
- HTML describes the structure of Web pages using
markup
- HTML
elements/tags are the building blocks of HTML pages, which represented by <tag>content</tag>
- NO HTML = NO WEB PAGE :)
- HyperText Markup Language, used to MARK the content what exactly it is ie
<p> = Paragraph, <header> = Header, <table> = table etc..
2.3. What is HTML?
- HTML is an acronym that stands for
HyperText Markup Language which is used for creating web pages and web applications.
- HTML is not a programming language; it is a markup language that defines the structure of your content
- Hyper Text:
- HyperText simply means
"Text within Text." A text that has a link within it, is a hypertext. HyperText is a way to link two or more web pages (HTML documents) with each other.
- Hypertext refers to the way in which/how `Web pages (HTML documents) are linked together. Thus, the link available on a webpage is called Hypertext.
- Markup language:
- A markup language is a computer language that is used to
apply layout and formatting conventions to a text document. Markup language makes the text more interactive and dynamic. It can turn text into images, tables, links, lists, headings, etc.
- HTML is a Markup Language which means you use HTML to simply "mark-up" a text document with tags that tell a Web browser how to structure it to display.
- Web Page:
- A web page is a document that is commonly written in HTML and translated by a web browser. A web page can be identified by entering an URL. A Web page can be of the static or dynamic type. With the help of HTML only, we can create static web pages.
2.4. Prerequisites of using HTML (HyperText Markup Language)
Tools for building web sites-web pages/writing HTML
- Text Editor/HTML Editor -
NotePad, NotePad++, SublimeText, Atom, Brackets, Coda, Visual Studio Code, DreamWeaver etc.
- An HTML file (.html / .htm) is a text file itself consists of HTML tags/elements, so to create/modify an HTML file we can use any text editors.
- Browsers To view output of .html pages -
Google Chrome, Mozilla Firefox, Internet Explorer, Safari etc.
- Once the .html/.htm file is created and saved, we can see its output in any latest web browser.

Image - Widely used modern browsers
2.5. Basic HTML Document
Syntax & Example:
<!DOCTYPE html>
<html>
<head>
<title>02.05.basic.html</title>
</head>
<body>
<h1>Heading: Welcome Welcome to HTML</h1>
<p>Paragraph: This is my first HTML page</p>
<li>Bullet List Item</li> <br />
<button>Click me</button>
</body>
</html>
2.6 Building blocks of HTML (Tag Attribute Element)
An HTML document consist of its basic building blocks:
| Name / Item |
Description |
| Tags |
An HTML tag surrounds the content and applies meaning to it. It is written between < and > brackets. |
| Attribute |
An attribute in HTML provides extra information about the element, and it is applied within the start tag. An HTML attribute contains two fields: name & value / key & value |
| Elements |
An HTML element is an individual component of an HTML file. In an HTML file, everything written within tags is termed as HTML elements |
Syntax & Example:
<tag attribute="attribute value"> content: whole together is an element </tag >
Syntax & Example:
<h1 align="right">Heading 1 aligned to right </h1>
2.7 Tag
- HTML tags are like keywords which defines that how web browser will format and display the content
<p>, <h1>, <table>, <strong>
- HTML is a markup language and makes use of various tags to format the content
- Tags are enclosed within angle braces
<Tag>
- Except few tags, most of the tags have their corresponding closing tags.
<Tag> </Tag> , <Tag />, <p> </p>, <h1> </h1>, <br />, <hr /> <link />
- When a web browser reads an HTML document, browser reads it from top to bottom and left to right
- HTML tags are used to create HTML documents and render their properties
Syntax & Example:
<tag> content </tag >
Syntax & Example:
<h1>HTML Tags: Various tags used to develope web page.</h1>
<h3>Heading: Welcome Welcome to HTML</h3>
<p>Paragraph: This is my first HTML page</p>
<hr /> Horizontal Rules
<br /> Line Break
<strong> Bold Strong Text </strong>
<li> list item bulletted list </li>
2.8 Attribute
- HTML attributes are special words that
provide additional information about the elements or attributes are the modifier of the HTML element
- Each element or tag can have attributes, which defines the
characteristics/behavior of that element
- Attributes should always be applied with start-tag
- All attributes are made up of two parts − a name and a value, Attributes usually come in name/value pairs like
name="value"
- Attribute names and attribute values are case-insensitive
Syntax & Example:
<tag attribute="attribute value"> content </tag >
Syntax & Example:
<h1 class="headings" id="heading1"> Heading 1 </h1 >
<p align="right"> Paragraphic text </p>
<hr size="20" width="500"/> Horizontal Rules
<br /> Line Break
<strong style="color:red;"> Bold Strong Text </strong>
<center><h2 title="Title attribute: Heading 2">Heading 2: Hover Me</h2></center>
2.9 Element
- An HTML file is made of elements
- Elements are responsible for creating web pages and define content in that webpage
- An element in HTML usually consist of a
start tag <tagName>, close tag </tagName> and content inserted between them
Syntax & Example:
<tag attribute="attribute value"> content: whole together is an element </tag >
Syntax & Example:
<h1 align="right">Heading 1 aligned to right </h1>
2.10. HTML Syntax
- HTML Syntax is very simple easy to learn
- HTML Contents/Documents ie files are nothing but a simple text files only with
.htm or .html extention
- HTML page consists of
DTD & TAGS for different visual aspects
- HTML uses
TAGS to markup and identify page content
<start_tag> Some content here </end_tag> Example: <p> p is paragraph tag used to create paragraphics text.</p>
- An HTML Element =
<tag attribute="attribute value"> content: whole together is an element </tag >
- We can create contents with
nested elements like <tag1><tag2>Some Content </tag2></tag1> Example: <p><strong>I am bold paragraphic text</strong></p>
Types of Attributes
- Informative Attribute - gives extra information about an element. Example: lang="en", class="header", id="container1"
- Functional Attribute - very important who perform some activities. Example: href="index.html", src="script.js"
2.11. State (Evolution of HTML)
The Web is changing very fast and so HTML
History of HTML
| Year |
History |
| 1990 |
Specification Drafted in Mid 90s by Tim Berners Lee |
| 1991 |
Tim Berners Lee published document called "HTML Tags" |
| 1995 |
HTML 2.0 ('standard' HTML) |
| 1997 |
HTML 3.2 (proprietary browser companies developed many features) |
| 1999 |
HTML 4.0 W3C Web standards support |
| 2000 |
XHTML 1.0 (HTML move towards XML)-Extensible Markup Language |
| 2001 |
2009 - XHTML 2.0 |
| 2004 |
WHATWG formed (Web HyperText Application Technology Working Group, they continued with development of HTML 5.0) |
| 2007 |
2008 - W3C adopts WHATWG's HTML5 Web Application 1.0 specification and drafts |
| 2009 |
XHTML 2.0 drops/stops |
| 2014 |
W3C Recommendation: HTML5 |
The Current State of HTML
There are two specifications of HTML: (Not much changes with syntax)
- W3C (World Wide Web Consortium)
- WHATWG (Web Hypertext Application Technology Working Group)
What should you focus on?
There is no good reason not to learn the HTML5 syntax. Focus on learning the elements and syntax first. Gradually learn the new capabilities in HTML5, once you become comfortable with writing clean HTML.
2.12. Reference
Some important and valuable references / resorces: