3 Html, list, Table, Images
3 Html, list, Table, Images
3 Html, list, Table, Images
Lecture- 4
Mr. Madhukar
Assistant Professor
Department of CSIT
KIET, Ghaziabad
HTML
• HTML refers to Hyper Text Markup Language.
• HTML is the standard markup language for creating Web pages.
• HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first
standard HTML specification which was published in 1995.
• It describes the structure of a Web page.
• HTML consists of a series of elements.
• HTML elements tell the browser how to display the content.
• HTML contains predefined tags(elements) which help to create web content.
• Hypertext refers to the way in which Web pages (HTML documents) are linked
together. Thus, the link available on a webpage is called Hypertext.
• As its name suggests, 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.
HTML contd.
• HTML tags:
• HTML is a markup language and makes use of various tags to format the
content. These tags are enclosed within angle braces <Tag Name>.
• Some basic tags are:
i. <!DOCTYPE...>This tag defines the document type and HTML version.
ii. <html>This tag encloses the complete HTML document and mainly
comprises of document header which is represented by <head>...</head>
and document body which is represented by <body>...</body> tags.
iii. <head>This tag represents the document's header which can keep other
HTML tags like <title>, <link> etc.
iv. <title>The <title> tag is used inside the <head> tag to mention the
document title.
HTML contd.
iv. <body>This tag represents the document's body which keeps other HTML tags like <h1>, <div>,
<p> etc.
v. <p>This tag represents a paragraph.
• HTML elements: An HTML element is defined by a start tag, some content, and an end tag.
<tagname>Content goes here...</tagname>.
Example:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML contd.
1. Container tags: Container tags are generally divided into three parts, i.e., opening
tag, content(which will display on the browser), and closing tag.
tags are:
2. Empty Tags: The tags that do not contain any closing tags are known as empty tags.
Example:
<p>This is a <br> paragraph.</p>
<hr>
<h2>This is heading 2</h2>
<pre>
My Bonnie lies over the ocean.
CLICKABLE AREAS
A clickable area is defined using an <area> element.
Shape: RECT, POLY, CIRCLE, DEFAULT
COORDS
<area shape="rect" coords=“24, 64, 170, 250" href=“CAMPUS.htm">.
Thank You