0% found this document useful (0 votes)
13 views3 pages

HTML

Html programs

Uploaded by

Rutu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

HTML

Html programs

Uploaded by

Rutu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Exp -1

What is HTML?

 HTML stands for Hyper Text Markup Language


 It is the standard markup language for creating Web pages
 It describes the structure of a Web page
 It consists of a series of elements
 Html elements tell the browser how to display the content

HTML Tags :

 HTML tags are usually called html tags.


 HTML tags normally come in pairs like <html> and </html>
 The first tag in a pair is the start tag , the second tag is the end tag.

HTML Documents :

 HTML documents describe web pages.


 HTML documents contain HTML tags and plain text.
 HTML documents are also called web pages.

The purpose of a web browser (like Internet Explorer) is to read HTML documents
and display them as web pages. The browser does not display the HTML tags , but
uses the tags to interpret the content of the page.

Editing HTML :

We use a plain text editor (like Notepad) to edit HTML.

Write a mark up language html tags in notepad and save it Filename.html and run
it.

Example :-

<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>KIIT POLYTECHNIC</h1>
<p>Comp.Sc.</p>
</body>
</html>
Basic Structure of HTML
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading.
<h6> defines the least important heading.
HTML paragraphs are defined with the <p> tag.
HTML links are defined with the <a> tag.

The link's destination is specified in the href attribute.

Example :

<a href="https://www.w3schools.com">This is a link</a>

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" alt="kiitlogo" width="500" height="600">
HTML Formatting Elements

Formatting elements were designed to display special types of text:

 <b> - Bold text


 <strong> - Important text
 <i> - Italic text
 <em> - Emphasized text

The HTML <address> tag defines the contact information.

The text in the <address> element usually renders in italic, and browsers will
always add a line break before and after the <address> element.
Example :

<address>
KiiT University<br>
kiit polytechnic<br>
BBSR<br>
Patia<br>
751021
</address>

The HTML <cite> tag defines the title of a creative work (e.g. a book, a poem, a
song, a movie, a painting, a sculpture, etc.).

The text in the <cite> element usually renders in italic.

<p><cite>KIIT</cite> by Dr.Achyuta Samanta</p>

You can add comments to your HTML source by using the following syntax:

<!-- Write your comments here -->

You might also like