UNIT-1: Essentials of E-Commerce & HTML
UNIT-1: Essentials of E-Commerce & HTML
UNIT-1: Essentials of E-Commerce & HTML
UNIT-1
Introduction to Electronic Commerce
E-commerce :-
The word commerce is the basic concept for
electronic commerce pertaining to buying and selling of goods.
Electronic commerce deals with trading of goods electronically.
Features:-
Types of E-Commerce:-
There are four basic types of e-commerce —
1.Business-to-Business (B2B)
2.Business-to-Consumer (B2C)
3.Consumer-to-Consumer (C2C)
4. Consumer-to-Business (C2B)
1.BUSINESS-TO-BUSINESS (B2B):-
B2B e-commerce refers to all electronic
transactions of goods and sales that are conducted between two
companies. This type of e-commerce typically explains the
relationship between the producers of a product and the
wholesalers who advertise the product for purchase to
consumers. Sometimes this allows wholesalers to stay ahead of
their competition.
2.BUSINESS-TO-CONSUMER (B2C):-
Perhaps the most common form of e-commerce,
B2C e-commerce deals with electronic business relationships
between businesses and consumers. Many people enjoy this
avenue of e-commerce because it allows them to shop around
for the best prices, read customer reviews and often find
different products that they wouldn’t otherwise be exposed to in
the retail world. This e-commerce category also enables
businesses to develop a more personalized relationship with
their customers.
3.CONSUMER-TO-CONSUMER (C2C):-
This level of e-commerce encompasses all
electronic transactions that take place between consumers.
Generally, these transactions are provided by online platforms
(such as PayPal), but often are conducted through the use of
social media networks (Facebook marketplace) and websites
(Craigslist).
4.CONSUMER-TO-BUSINESS (C2B):-
Not the most traditional form of e-commerce,
C2B e-commerce is when a consumer makes their services or
products available for companies to purchase. An example of
this would be a graphic designer customizing a company logo or
a photographer taking photos for an e-commerce website.
Electronic Data Interchange(EDI):-
Electronic data interchange is a technique
for computer to computer exchange of business documents in a
standard electronic format between business partner or
companies.
Companies use EDI system for exchanging
business information automatically by computer systems as
transactions without paper . EDI is generally used for B2B
transactions.
ADVANTAGES:-
1. As it is direct computer to computer transactions system,it
is high speed.
2. Due to reduced human intervention ,it is accurate.
3. Simple to use.
4. Highly secure.
5. Cost effective.
6. Reduction in paper work.
7. Enhanced quality of data.
Financial Electronic Data Interchange
(FEDI):-
FEDI stands for financial EDI . It deals
specifically with financial transactions.FEDI is used by
wide vairaties of industries to ensure that payment reach
their destination surely and quikly.
1. Advane payment.
2. Letter of credit.
3. DA (document against agreement)
4. DP (document against payment)
ACH Transfer:-
An ACH transfer is the electronic movement of
money between banks through the automated clearing
house(ACH) networks,one of the biggest us payment system.
The types of transfers include external found
transfers,person to person payment,bill payment and direct
deposite,ACH is mostly useful for B2B transactions.
Tunneling protocol:-
Internet:-
Internet banking:-
Internet banking is the system that provides the facility to
the customer to conduct the financial and non-financial
transactions from his net banking
E-marketing :-
E-marketing is a process of planning and executing the
conception, distribution, promotion, and pricing of products and
services in a computerized, networked environment, such as
the Internet and the World Wide Web, to facilitate exchanges
and satisfy customer demands. It has two distinct advantages
over traditional marketing. E-marketing provides customers with
more convenience and more competitive prices, and it enables
businesses to reduce operational costs.
As businesses offer e-marketing and online shopping, customers
can get market information from their computers or cell phones
and buy goods or find services without leaving home twenty-
four hours a day and seven days a week (24/7). They can read
ads on the Web or from e-mail, get e-coupons, view pictures of
goods, compare prices, and make purchases with a few clicks of
their mouse, saving the time and money it would take to shop in
person at a brick-and-mortar store. At the same time,
ebusinesses can reduce costs in distribution channels and
physical store space and thus pass the savings on to customers.
To make e-marketing effective and efficient, managers of e-
businesses need to know online customer behavior, e-marketing
techniques, costs and benefits of emarketing over traditional
marketing, and pitfalls and legal issues of e-marketing. A
discussion of each of these aspects follows.
Encryption:-
Decryption:-
Decryption is the process of taking encoded or
encrypted text or other data and converting it back into text that
you or the computer can read and understand. This term could
be used to describe a method of unencrypting the data manually
or unencrypting the data using the proper codes or keys.
Authentication:-
Authentication is the act of proving an assertion, such
as the identity of a computer system user. In contrast
with identification, the act of indicating a person or thing's
identity, authentication is the process of verifying that
identity. It might involve validating personal identity
documents, verifying the authenticity of a website with
a digital certificate,[1] determining the age of an artifact
by carbon dating, or ensuring that a product or document is
not counterfeit.
Digital signature:-
UNIT -3
What is HTML:-
HTML is the standard markup language for creating Web pages.
</body>
</html>
Example Explained:-
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 specifies 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 Tags:-
HTML tags are element names surrounded by angle brackets:
<tagname>content goes here...</tagname>
</body>
</html>
You can use either .htm or .html as file extension. There is no difference, it is up to you.
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
HTML Documents:-
All HTML documents must start with a document type
declaration: <!DOCTYPE html>.
The HTML document itself begins with <html> and ends
with </html>.
The visible part of the HTML document is
between <body> and </body>.
Example :
<!DOCTYPE html>
<html>
<body>
</body>
</html>
HTML Headings:-
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least
important heading:
Example:
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
CODING:-
<html>
<head>
<title> heading tag </title>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</head>
</html>
HTML Paragraphs:-
HTML paragraphs are defined with the <p> tag:
Example:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
CODING:-
<html>
<head>
<title> paragraph tag </title>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</head>
</html>
HTML Buttons:-
HTML buttons are defined with the <button> tag:
Example:
<button>Click me</button>
Coding:-
<html>
<head>
<title> button tag </title>
<body>
<h2>HTML Buttons</h2>
<p>HTML buttons are defined with the button tag:</p>
<button> Click me</button>
</body>
</head>
</html>
HTML Lists:-
HTML lists are defined with the <ul> (unordered/bullet list) or
the <ol> (ordered/numbered list) tag, followed by <li> tags (list
items):
Example :
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Coding:-
<html>
<head>
<title> list tag </title>
<body>
<h2>An Unordered HTML List</h2>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<h2>An Ordered HTML List</h2>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</body>
</head>
</html>
HTML Elements :-
An HTML element usually consists of a start tag and
an end tag, with the content inserted in between:
<tagname>Content goes here...</tagname>
<br>
Example :
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Coding :-
<html>
<head>
<title> nested tags </title>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</head>
</html>
Example Explained
The <html> element defines the whole document.
It has a start tag <html> and an end tag </html>.
Inside the <html> element is the <body> element.
The <body> element defines the document body.
It has a start tag <body> and an end tag </body>.
Inside the <body> element is two other HTML
elements: <h1> and <p>.
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
HTML Attributes :-
Below is an alphabetical list of some attributes often used in
HTML, which you will learn more about in this tutorial:
Attribut Description
e
Tag Description
<head> A container for all the head elements (title, scripts, styles,
meta information, and more)
Coding :-
<!DOCTYPE html>
<html>
<body>
<p>The pre tag preserves both spaces and line breaks:</p>
<pre>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</pre>
</body>
</html>
The HTML Style Attribute :-
Setting the style of an HTML element, can be done with
the style attribute.
The HTML style attribute has the following
syntax:
<tagname style="property:value;">
The property is a CSS property. The value is a CSS value.
Background Color :-
The CSS background-color property defines the background
color for an HTML element.
Example :
<body style="background-color:powderblue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
Coding :
<html>
<head>
<title> background tag </title>
<body style="background-color:powderblue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</head>
</html>
Text Color :-
The color property defines the text color for an HTML element:
Example :
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
Coding :-
<!DOCTYPE html>
<html>
<head>
<title> text color tag </title>
<body>
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
</body>
</head>
</html>
Fonts :-
The font-family property defines the font to be used for an
HTML element:
Example :
<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
Coding:-
<!DOCTYPE html>
<html>
<head>
<title> font tag </title>
<body>
<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
</body>
</head>
</html>
Text Size :-
The font-size property defines the text size for an HTML
element:
Example :
<h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>
Coding:-
<!DOCTYPE html>
<html>
<head>
<title> textsize tag </title>
<body>
<h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>
</body>
</head>
</html>
Text Alignment :-
The text-align property defines the horizontal text alignment for
an HTML element:
Example :
<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>
Coding :-
<!DOCTYPE html>
<html>
<head>
<title> alignment tag </title>
<body>
<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>
</body>
</head>
</html>
HTML Text Formatting :-
Text Formatting
This text is bold
This text is italic
This is subscript and superscript
coding :-
<html>
<head>
<title> formatting tag </title>
<body>
<p><b>This text is bold</b></p>
<p><i>This text is italic</i></p>
<p>This is<sub> subscript</sub> and
<sup>superscript</sup></p>
</body>
</head>
</html>
Coding :-
<html>
<head>
<title> bold tag </title>
<body>
<p>This text is normal.</p>
<p><b>This text is bold.</b></p>
</body>
</head>
</html>
The HTML <strong> element defines strong text, with added
semantic "strong" importance.
Example :
<strong>This text is strong</strong>
Coding:-
<html>
<head>
<title> strong tag </title>
<body>
<p>This text is normal.</p>
<p><strong>This text is strong.</strong></p>
</body>
</head>
</html>
Coding:-
<html>
<head>
<title> em tag </title>
<body>
<p>This text is normal.</p>
<p><em>This text is emphasized.</em></p>
</body>
</head>
</html>
Note: Browsers display <strong> as <b>, and <em> as <i>.
However, there is a difference in the meaning of these
tags: <b> and <i> defines bold and italic text,
but <strong> and <em> means that the text is "important".
Example :
<h2>HTML <small>Small</small> Formatting</h2>
Coding :-
<html>
<head>
<title> small text tag </title>
<body>
<h2>HTML <small>Small</small> Formatting</h2>
</body>
</head>
</html>
Coding :-
<html>
<head>
<title> sub tag </title>
<body>
<p>This is <sub>subscripted</sub> text.</p>
</body>
</head>
</html>
HTML <sup> Element :-
The HTML <sup> element defines superscripted text.
Example :
<p>This is <sup>superscripted</sup> text.</p>
Coding:-
<html>
<head>
<title> sup tag </title>
<body>
<p>This is <sup>superscripted</sup> text.</p>
</body>
</head>
</html>
HTML Comments :-
Comment tags are used to insert comments in the HTML source
code.
<p>This is a paragraph.</p>
Coding:-
<html>
<head>
<title> comment tag </title>
<body>
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the browser -->
</body>
</head>
</html>
HTML Colors:-
HTML colors are specified using predefined color names, or
RGB, HEX, HSL, RGBA, HSLA values.
Color Names
In HTML, a color can be specified by using a color name:
Tomato
Orange
DodgerBlue
MediumSeaGreen
Gray
SlateBlue
Violet
Coding :-
<!DOCTYPE html>
<html>
<head>
<title> tags </title>
<body>
<h1 style="background-color:Tomato;">Tomato</h1>
<h1 style="background-color:Orange;">Orange</h1>
<h1 style="background-color:DodgerBlue;">DodgerBlue</h1>
<h1 style="background-
color:MediumSeaGreen;">MediumSeaGreen</h1>
<h1 style="background-color:Gray;">Gray</h1>
<h1 style="background-color:SlateBlue;">SlateBlue</h1>
<h1 style="background-color:Violet;">Violet</h1>
<h1 style="background-color:LightGray;">LightGray</h1>
</body>
</head>
</html>
Background Color :-
You can set the background color for HTML elements:
Hello World
Example :
<h1 style="background-color:DodgerBlue;">Hello World</h1>
<p style="background-color:Tomato;">Lorem ipsum...</p>
Coding:-
<html>
<head>
<title> color tag </title>
<body>
<h1 style="background-color:DodgerBlue;">Hello World</h1>
<p style="background-color:Tomato;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo
consequat.
</p>
</body>
</head>
</html>
Text Color :-
You can set the color of text:
Hello World
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed
diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo
consequat.
Example :
<h1 style="color:Tomato;">Hello World</h1>
<p style="color:DodgerBlue;">Lorem ipsum...</p>
<p style="color:MediumSeaGreen;">Ut wisi enim...</p>
Coding :-
<html>
<head>
<title> tags </title>
<body>
<h3 style="color:Tomato;">Hello World</h3>
<p style="color:DodgerBlue;">Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed diam nonummy nibh euismod
tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
<p style="color:MediumSeaGreen;">Ut wisi enim ad minim
veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
nisl ut aliquip ex ea commodo consequat.</p>
</body>
</head>
</html>
Border Color :-
You can set the color of borders:
Hello World
Hello World
Hello World
Example :
<h1 style="border:2px solid Tomato;">Hello World</h1>
<h1 style="border:2px solid DodgerBlue;">Hello World</h1>
<h1 style="border:2px solid Violet;">Hello World</h1>
Coding :-
<html>
<head>
<title> tags </title>
<body>
<h1 style="border: 2px solid Tomato;">Hello World</h1>
<h1 style="border: 2px solid DodgerBlue;">Hello World</h1>
<h1 style="border: 2px solid Violet;">Hello World</h1>
</body>
</head>
</html>
Tag Description
First name:
John
Last name:
Doe
Submit
Coding :-
<html>
<body>
<h2>HTML Forms</h2>
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"
value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname"
value="Doe"><br><br>
<input type="submit" value="Submit">
</form>
<p>If you click the "Submit" button, the form-data will be sent
to a page called "/action_page.php".</p>
</body>
</html>
Type Description
Text Fields :-
<input type="text"> defines a single-line input field for text
input.
Example :
A form with two text input fields:
<form>
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname">
</form>
This is how it will look like in a browser:
First name:
Last name:
Note: The form itself is not visible. Also note that the default
width of an input field is 20 characters.
Radio Buttons :-
<input type="radio"> defines a radio button.
Radio buttons let a user select ONE of a limited number of
choices.
Example :
A form with radio buttons:
<form>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="femal
e">
<label for="female">Female</label><br>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label>
</form>
This is how the HTML code above will be displayed in a
browser:
Male
Female
Other
Example :
A form with a submit button:
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><
br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><
br><br>
<input type="submit" value="Submit">
</form>
This is how the HTML code above will be displayed in a
browser:
First name:
John
Last name:
Doe
Submit
<input type="text" id="firstname" name="firstname">
Coding :-
<!DOCTYPE html>
<html>
<body>
<h2>The input Element</h2>
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Example :
<button type="button" onclick="alert('Hello World!')">Click
Me!</button>
This is how the HTML code above will be displayed in a
browser:
Click Me!
Tag Description
Last name:
Doe
Submit
If you omit the submit button's value attribute, the button will
get a default text:
Example :
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><
br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><
br><br>
<input type="submit">
</form>
Last name:
Doe
Submit Reset
If you change the input values and then click the "Reset" button,
the form-data will be reset to the default values.
Example :
<form>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="femal
e">
<label for="female">Female</label><br>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label>
</form>
This is how the HTML code above will be displayed in a
browser:
Male
Female
Other
Example :
<form>
<input type="checkbox" id="vehicle1" name="vehicle1" value
="Bike">
<label for="vehicle1"> I have a bike</label><br>
<input type="checkbox" id="vehicle2" name="vehicle2" value
="Car">
<label for="vehicle2"> I have a car</label><br>
<input type="checkbox" id="vehicle3" name="vehicle3" value
="Boat">
<label for="vehicle3"> I have a boat</label>
</form>
This is how the HTML code above will be displayed in a
browser:
I have a bike
I have a car
I have a boat
Input Restrictions :-
Here is a list of some common input restrictions:
Attribute Description
You will learn more about input restrictions in the next chapter.
The following example displays a numeric input field, where
you can enter a value from 0 to 100, in steps of 10. The default
value is 30:
Example :
<form>
<label for="quantity">Quantity:</label>
<input type="number" id="quantity" name="quantity" min="0"
max="100" step="10"value="30">
</form>
Tag Description
<form> Defines an HTML form for user input
HTML Tables :-
Example :
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
Coding :-
<html>
<head>
<title> table tag </title>
<body>
<h2>Basic HTML Table</h2>
<table style="width:100%">
<tr>
<td>Firstname</td>
<td>Lastname</td>
<td>Age</td>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</head>
</html>
Coding :-
<html>
<head>
<title> tag </title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<h2>Bordered Table</h2>
<p>Use the border property to add a border to the table.</p>
<table style="width:100%">
<tr>
<td>Firstname</td>
<td>Lastname</td>
<td>Age</td>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</html>
Example
th {
text-align: left;
}
HTML Lists :-
An Unordered List:
Item
Item
Item
Item
An Ordered List:
1. First item
2. Second item
3. Third item
4. Fourth item
Unordered HTML List :-
An unordered list starts with the <ul> tag. Each list item starts
with the <li> tag.
The list items will be marked with bullets (small black circles)
by default:
Example :
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Coding :
<html>
<head>
<title> unoderlist tag </title>
<body>
<h2>An unordered HTML list</h2>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</head>
</html>
Value Description
Example - Disc
<ul style="list-style-type:disc;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Example - Circle
<ul style="list-style-type:circle;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Example - Square
<ul style="list-style-type:square;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Example - None
<ul style="list-style-type:none;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Type Description
Numbers:
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Uppercase Letters:
<ol type="A">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Lowercase Letters:
<ol type="a">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Example :
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
Coding :-
<html>
<head>
<title> description list </title>
<body>
<h2>A Description List</h2>
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
</body>
</head>
</html>
Example :
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
Coding :-
<html>
<head>
<title> nested list tag </title>
<body>
<h2>A Nested List</h2>
<p>List can be nested (lists inside lists):</p>
<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ul>
</body>
</head>
</html>
Tag Description
HTML and XHTML :-
HTML is HTML written as XML.
What Is XHTML:
XHTML stands for
EXtensible HyperText Markup Language
XHTML is almost identical to HTML
XHTML is stricter than HTML
XHTML is HTML defined as an XML application
XHTML is supported by all major browsers
Why XHTML:
Many pages on the internet contain "bad" HTML.
This HTML code works fine in most browsers (even if it does
not follow the HTML rules):
<html>
<head>
<title>This is bad HTML</title>
<body>
<h1>Bad HTML
<p>This is a paragraph
</body>
Example :
<a href="https://www.rungtacollege.com/html/"> HTML
tutorial</a>
Coding :-
<html>
<head>
<title> links tag </title>
<body>
<h2>HTML Links</h2>
<p><a href="https://www.rungtacollege.com/html/"> HTML
tutorial</a></p>
</body>
</head>
</html>
The href attribute specifies the destination address
(https://www.link.com/html/) of the link.
The link text is the visible part (Visit our HTML tutorial).
Clicking on the link text will send you to the specified address.
Tag Description
HTML Links :
HTML links are defined with the <a> tag:
Example :
<a href="https://www.filename.com">This is a link</a>
HTML Images :-
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), width, and height are
provided as attributes:
Example :
<img src="filename.jpg" width="104" height="142">
Coding :-
<html>
<head>
<title> image tag </title>
<body>
<h2>HTML Images</h2>
<p>HTML images are defined with the img tag:</p>
<img src="filename.jpg" width="104" height="142">
</body>
</head>
</html>
HTML frames :-
An frame is used to display a web page within a web page.
frame Syntax :
An HTML frame is defined with the <frame> tag:
<frame src="URL"></frame>
The src attribute specifies the URL (web address) of the inline
frame page.
frame - Set Height and Width :
Use the height and width attributes to specify the size of the
frame.
The height and width are specified in pixels by default:
Example :-
<frame src="demo_frame.htm" height="200" width="300"></fr
ame>
Coding :-
<html>
<head>
<title> frame set </title>
<body>
<h2>HTML frames</h2>
<p>You can use the height and width attributes to specify the
size of the frame:</p>
<frame src="demo_frame.htm" height="200"
width="300"></frame>
</body>
</head>
</html>
Tag Description
HTML JavaScript :-
JavaScript makes HTML pages more dynamic and interactive.
Example :
My First JavaScript
Click me to display Date and Time
Example :
<script>
document.getElementById("demo").innerHTML = "Hello
JavaScript!";
</script>
Tag Description
Example :
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
The content of the document......
</body>
</html>
Coding :-
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>The content of the body element is displayed in the browser
window.</p>
<p>The content of the title element is displayed in the browser
tab, in favorites and in search engine results.</p>
</body>
</html>
UNIT-5
Creating Business Websites with Dynamic Web Pages
Web Server :-
Web hosting :-
A web hosting service is a type of Internet hosting service that
allows individuals and organizations to make
their website accessible via the World Wide Web. Web hosts are
companies that provide space on a serverowned or leased for use
by clients, as well as providing Internet connectivity, typically in
a data center. Web hosts can also provide data center space and
connectivity to the Internet for other servers located in their data
center, called colocation, also known as Housing in Latin
America or France.
Search Engine :-
A web search engine or Internet search engine is a software
system that is designed to carry out web search (Internet
search), which means to search the World Wide Web in a
systematic way for particular information specified in a
textual web search query. The search results are generally
presented in a line of results, often referred to as search engine
results pages(SERPs). The information may be a mix of links
to web pages, images, videos, infographics, articles, research
papers, and other types of files. Some search engines also mine
data available in databases or open directories. Unlike web
directories, which are maintained only by human editors, search
engines also maintain real-time information by running
an algorithm on a web crawler. Internet content that is not
capable of being searched by a web search engine is generally
described as the deep web.
Cute FTP :-
CuteFTP is a series of FTP (file transfer protocol) client
applications distributed and supported since 1996
by GlobalSCAPE, who later bought the rights to the software.
Both a Windows-based or Mac-based interface were made for
both home and professional use.
CuteFTP is used to transfer files between computers and File
Transfer Protocol (FTP) servers to publish web pages, download
digital images, music, multi-media files and software, and
transfer files of any size or type between home and office.[2]
[3]
Since 1999, CuteFTP Pro and CuteFTP Mac Pro have also
been available alongside CuteFTP Home with free trial periods.
It was originally developed by Alex Kunadze, a Russian
programmer.