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 [Link] and run
it.
Example :-
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>KIIT POLYTECHNIC</h1>
<p>[Link].</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="[Link] 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="[Link]" 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 [Link] Samanta</p>
You can add comments to your HTML source by using the following syntax:
<!-- Write your comments here -->