Hyper Text Markup Language (6)
Hyper Text Markup Language (6)
Since the early days of the web, there have been many versions of HTML:
Version Year
HTML 1991
HTML 2.0 1995
HTML3.2 1997
HTML 4.01 1999
XHTML 2000
HTML5 2014
4. Tags
HTML tags are the hidden keywords within a webpage that define how your web browser
must format and display the content.
Most tags must have two parts, an opening and closing part. For example, <html> is the
opening tag and </html> is the closing tag. Note that the closing tag has the same text as the
opening tag, but has an additional forward slash (/) character. I tend to interpret this as the
“end” or “close” character.
4.1 HTML Tag
HTML tags contain HTML elements, and give a command to browsers to read the document
as an HTML document.
<html>…………………</html>
4.2 Head Tag
Head tags define general information bout the document, page title, meta-tags, scripts and
links to follow, and other commands to browsers.
<head>
<title>HTML Tags-Head Tag</title>
</head>
4.3 Title Tag
Brief description of the web page.
<title>……………………………</title>
4.4 Body tag
Body tags identify the content of a web page.
<body>…………………………………………..</body>
5. HTML Attributes
All HTML elements can have Attributes.
Attributes provide additional information about an element.
Attributes are always specified in the start tag.
Attributes usually come in name/value pairs like: name=”value”
Project:-
Make simple web page using HTML.
<html>
<head>
<title>web page</title>
<head>
<body>This is web page</body>
</html>
<html>
<head>
<title>web page</title>
<head>
<body text="red" bgcolor="yellow">This is a web page.</body>
</html>
Output:-
This is a web page
Project:-3
Make a web page using heading tag.
<html>
<head>
<title>web page</title>
</head>
<body><h1>This is 1st Heading</h1>
<h2>This is 2nd Heading</h2>
<h3>This is 3rd Heading</h3>
<h4>This is 4th Heading</h4>
<h5>This is 5th Heading</h5>
<h6>This is 6th Haeding</h6.
</html>
Click Here Output:-
Output:-
HTML Stands for Hypertext Markup Language
Project:-5
List Tag number Tag<OL>
<html>
<head>
<title>web page</title>
</head>
<body>
<ol><li>it tools and business
<li>internet
<li>c language
</ol>
</body>
</html>
Output:-
1. it tools and business
2. internet
3. c language
Project:-6
List Tag using unnumbered tag <ul>
<html>
<head>
<title>web page</title>
</head>
<body>
<ul><li>it tools and business
<li>internet
<li>c language
</ul>
</body>
</html>
Output:-
1. it tools and business
2. internet
3. c language
Project:-7
List Tag Type and start attribute.
<html>
<head>
<title>web page</title>
</head>
<body>
<ol START ="51">
<li>One level
<ol type="A"><li>two level outline
</ol>
</body>
</html>
Output:-
51. One level
A. two level outline
Project:-8
Preformatted text using<prc>tag.
<html>
<head>
<title>web page</title>
</head>
<body>
<pre>
<p> O level Student's result sheet
<p>Name Grade
Dharam Chand pass
</pre>
</body>
</html>
Output:-
Name Grade
Dharam Chand pass
Project:-9
Character Formatting tag.
<html>
<head>
<title>web page</title>
</head>
<body>
<pre>
<p> this is</b>Bold</b>
<p>this is<i>italic</i>
<p>this is <u>underline</u>
</body>
</html>
Output:-
this is Bold
this is italic
this is underline
Project:-10
Compact attribute
<html>
<head>
<title>web page</title>
</head>
<body>
<dl compact>
<dt>/p
<dd>display the files page.
<dt>/w
<dd>display the directories.
</dl>
</body>
</html>
Output:-
/p
display the files page.
/w
display the directories.
Project:-11
Font Tag
<html>
<head>
<title>web page</title>
</head>
<body>
<font color="red" size="8" face="times new roman">
National Institute of Electronics and Information Technology.
</body>
</html>
Output:-
course duration
O level> 1 year
A level 1 year
Project:-15
HTML Colors
<html>
<head>
<title>web page</title>
</head>
<body>
<font color="red">this is red color</font>
<p>
<font color="green">this is green color</font>
</font>
</body>
</html>
Output:-
this is red colour
this is green colour
Project:-16
Marquee Tag
<html>
<head>
<title>web page</title>
</head>
<body>
<marquee><b>NIELIT</b></marquee>
</body>
</html>
Output:-
NIELET