HTML
What is HTML?
Ans:
The full form of HTML is HyperText Markup Language.
It is not a programming language; it is a markup language that makes it easy to
create web pages.
HTML is a Markup Language, Markup
Language is a combination of some markup tags that can be used to display
different things (text, image, video, etc.) on a webpage.
Discovery of HTML and some
information: -
HTML was invented by Tim Berners-Lee in
1989. The origin of HTML is for the purpose of quickly transferring information
from one part of the world to another.
HTML Versions: -
Version |
Year |
HTML |
1991 |
HTML+ |
1993 |
HTML 2.0 |
1995 |
HTML
3.2 |
1997 |
HTML 4.01 |
1999 |
HTML
1.0 |
2000 |
HTML5 |
2012 |
XHTML5 |
2013 |
Advantages and Disadvantages of
HTML: -
Advantages Of HTML: -
1.HTML language is very easy to learn.
2.It can be used for free.
3.Almost all browsers support HTML
4.The case is not sensitive.
<HTML> <html>
5.Webpages created in HTML take less
time to load.
6.Text, Images, Audio, Video, Etc. Can
be easily attached to HTML page.
Disadvantages of HTML: -
1. Syntax is to be remembered when
writing code.
2. It is not possible to create a dynamic
page.
HTML Tag & HTML Element: -
Tag is the lifeblood of HTML. The HTML
document is basically a combination of tags.
Example: -
HTML Tags are keywords, which are
limited by angle brackets <> on both sides.
There are basically two types of
tags used in HTML.
1.Container Tags (It has opening and
closing tags)
Opening
Tag |
Closing
Tag |
Description |
<html> |
</html> |
Opens and
closes an HTML document |
<head> |
</head> |
The first of two main sections of an HTML document. The <head>
section is used to provide information about the document for use primarily
by search engines and browsers. |
<title> |
</title> |
The title of
document. |
<body> |
</body> |
The second of two main sections of an HTML document. The <body>
section contains all the content of the web page. |
<p> |
</p> |
Paragraph |
<div> |
</div> |
A container for a block of content |
<span> |
</span> |
A container for
in-line content, such as content inside a paragraph. |
<em> |
</em> |
Gives the contained text emphasis |
<strong> |
</strong> |
Makes the
contained text bold |
<a href = “document location”> |
</a> |
Link |
<ol> |
</ol> |
Ordered list |
<ul> |
</ul> |
Unordered list |
<li> |
</li> |
List item |
<table> |
</table> |
Adds a table |
<tr> |
</tr> |
Table row |
<th> |
</th> |
Table header |
<td> |
</td> |
Table data |
2.Empty Tag (There is no closing tag)
Tag |
Description |
<area> |
The image map
area element |
<base> |
The Document Base URL element |
<br> |
Line Break
element |
<col> |
Table Column element |
<embed> |
Embed External
Content |
<hr> |
Thematic Break (Horizontal Rule) |
<img> |
Image Embed |
<link> |
External Resource Link |
<meta> |
Metadata |
<param> |
Object Parameter |
<source> |
Media Or Image
Source |
<track> |
Text Track |
<wbr> |
Link Break
Opportunity |
The Attribute is used to increase the
efficiency of the HTML Tag.
The general structure of HTML
NOTE: -
1.<!DOCTYPRhtml> (Always add the <!DOCTYPE> declaration to
your HTML documents, so that the browser knows what type of document to expect).
2.Each HTML file must start with a <html> tag and end with
a </html> tag.
3. <head> </head> (It usually
contains the data, the title of the page.
4.<body> </body> (What is
displayed on the web page is to be written in this tag)
All you need to do is create an
HTML file: -
1. Writing HTML programs requires a text
editor.
Example: Notepad, WordPad, MS-Word, VS code, etc.
2. A browser will need to see the output
or results of the HTML program.
Example: Mozila, Google Chrome, etc.
0 Comments