Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

PRACTICAL NO.

Aim :- Explain E-Commerce with its types.

Introduction to HTML
HTML stands for Hypertext Markup Language and it is a widely
used programming language used to develop web pages. Through
this HTML Tutorial, we’ll understand what HTML means, the
features of HTML, the basic tags and elements used, and more.
HTML is a markup language that is used to create web pages. It
defines how the web page looks and how to display content with the
help of elements. It forms or defines the structure of our Web Page,
thus it forms or defines the structure of our Web Page. We must
remember to save your file with .html extension.

 A SIMPLE HTML DOCUMENT

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>


<p>My first paragraph.</p>

</body>
</html>
 EXAMPLE EXPLAINED

1
 The <!DOCTYPE html> declaration defines that this document
is an HTML5 document
 The <html> element is the root element of an HTML page
 The <head> element contains meta information about the
HTML page
 The <title> element specifies a title for the HTML page (which
is shown in the browser's title bar or in the page's tab)
 The <body> element defines the document's body, and is a
container for all the visible contents, such as headings,
paragraphs, images, hyperlinks, tables, lists, etc.
 The <h1> element defines a large heading
 The <p> element defines a paragraph

HTML TAGS

An HTML element is defined by a start tag, some content, and an end


tag:
<tagname>Content goes here...</tagname>
The HTML element is everything from the start tag to the end tag:
<h1>My First Heading</h1>
<p>My first paragraph.</p>

Start tag Element content End tag

<h1> My First Heading </h1>

<p> My first paragraph. </p>

<br> none none


Note: Some HTML elements have no content (like the <br> element).
These elements are called empty elements. Empty elements do not
have an end tag!

2
Applications of HTML
HTML is used for various purposes. Let us take a look at them

1. Web Pages Development


HTML is famously used for creating web pages on the
world wide web. Every web page contains a set of HTML
tags and hyperlinks which are used to connect other pages.
Every page on the internet is written using HTML.
2. Navigating the Internet
Navigating on the internet would have been quite a tedious
task without HTML. The anchor tags of HTML allows us to
link pages and navigate easily. Imagine our life without
anchor tags, you would literally have to enter URL
everytime. Using achor tags, you can also navigate within a
webpage.
3. Embedding Images and Videos
HTML allows us to embed images and videos with ease and
gives us features to adjust height, position and even
rendering type. You can adjust controls, thumbnails,
timestamps and much more for videos. Earlier this was done
using Flash and HTML has made it easier with the help
of <video> tag.
4. Clinet-side storage
HTML5 has made client-side storage possible using
localStorage and IndexD due to which we no longer need to
reply on Cookies. Both of these tactics have their own set of
rules and characteristics. String-based hash-table storage is
provided by localStorage. Its API is straightforward, with
setItem, getItem, and removeItem functions available to
developers. On the other hand, IndexDB is a larger and
more capable client-side data store. With the user’s
permission, the IndexDB database can be enlarged.
5. Game development
Although you cannot create complex high-end video games

3
with HTML, the <canvas> element of HTML can be used
to make 2D and 3D games using CSS and JavaScript which
can be run on browsers.
6. Data entry support
With the usage of new HTML5 standards in all the latest
browsers, developers can simply add the tags for required
fields, text, data format, etc. and get the data. HTML5 now
has several new attributes for data-entry and validation
purposes.
7. Interacting with Native APIs
With the help of HTML, you can interact with your
Operating system. With this feature, you can easily drag
files onto a web page to upload, full-screen a video, and
much more.

Features Of HTML
 The learning curve is very easy (easy to modify)
 Creating effective presentations
 Adding Links wherein we can add references
 Can display documents on platforms like Mac, Windows,
Linux, etc
 Adding videos, graphics, and audios making it more
attractive
 Case insensitive language

Example:

<!DOCTYPE html>

<html>

<head>

4
<title></title>

</head>

<body>

<img src="https://images.unsplash.com/photo-1592195241233-
84b15fc81ecb?ixlib=rb-
1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1950&q
=80" title="lotus" style="width:500px">

</body>

</html>

You might also like