HTML Basics
HTML Basics
Features of HTML..
1.HTML is highly flexible
2.HTML is user friendly
3.HTML is an open technology
4.HTML is consistent and efficient
5. It takes less time to load the web pages
Limitations of HTML:
1. It can create only static and plain pages
2. Need to write lot of code
3. Security features are not good in HTML.
Versions of HTML
Version Year
HTML 1991
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1998
XHTML 1999
HTML5 2008-2014 (W3C + WHATWG)
HTML5.1 2016
After 10 Years(Web2.0)
www.whatwg.org (Mozilla+Apple+Opera)
Web Hypertext Application Technology Working Group
2008 => HTML5 ==> Advanced Hyper Text Markup Language for Better webApps.
After 8 Years
2016 ==> HTML5.1, Advanced Hyper Text Markup Language for all Gadgets and Widgets
(Small E-Devices or Smart Components)
PYTHON+Django+NLP+ML+DL+AI
Web-3.0 ==> Web BOTS (Automation)
Define a Tag:
The text placed between left angular brace " < " and right angular brace " > " is
called as TAG.
Syntax: <------>
Example: <html>
Examples:
<html>-----------------</html>
<body>-----------------</body>
2. Non-Paired Tags:
The tags that have only opening tags but no closing tags are called as Non-paired
tags.
Examples:
<br> or <br/> <hr> or <hr/> <img> or <img/>
Structure of html:
<html>
<head>
<title>---------</title>
</head>
<body>
----------
----------
</body>
</html>
HTML Elements/Tags
An element consists of three basic parts:
1. Opening tag
2. Element's content
3. Closing tag.
1 <html></html>
2 <head></head>
3 <title></title>
4 <body></body>
HTML Tags
HTML tags are element names surrounded by angle brackets:
Syntax:
<tagname>content goes here...</tagname>
NOTE: The start tag is also called the opening tag, and the end tag the closing
tag.
HTML editors
There are many software packages available to develop HTML. The software packages
can be grouped into two main categories:
HTML Comments
The comment tag is used to insert comments in the source code. Comments are not
displayed in the browsers.
You can use comments to explain your code, which can help you when you edit the
source code at a later date. This is especially useful if you have a lot of code.
Example:
<!-----This comment will not appear in the Web Page---->
Example:
<html>
<head>
<title>
Welcome to HTML
</title>
</head>
<body>
<!-- Naresh i Technologies, Leader in IT Training-->
</body>
</html>
NOTE:
The <!DOCTYPE> declaration is NOT case sensitive
Example:HTML-4.01
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Example:HTML-5.0
<!doctype html>
Head Section:
It contains general information, meta-information and document type information.
The <head> Tag inside Elements should not display in body section of a webpage.
<title> Tag:
The <title> tag is required in all HTML documents and it defines the title of the
document. It is a paired tag.
Syntax:
<title>........................ </title>
Example:
<!doctype html>
<html>
<head>
<title>
Welcome to Web Page
</title>
</head>
<link> Tag:
It defines a link between a document and an external resource. It is used to link
to external style sheets. It is non-paired tag.
Syntax:
<link> or <link/>
Syntax:
<link href="PathOfResource" rel="Relation of Resource" type="Type Of Resource"/>