HTML
HTML
What is HTML?
HTML Tags :
HTML Documents :
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 :
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.
Example :
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
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.).
You can add comments to your HTML source by using the following syntax: