Subject :- Computer Science –I
Topic – HTML
Probable marks – 14
What is HTML?
HTML stands for Hyper Text Markup Language
HTML is the standard markup language for creating Web pages
HTML 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 elements label pieces of content such as "this is a heading", "this is a
paragraph", "this is a link", etc.
HTML :- It is the most simple, text oriented programming language. This language is made
up of tags and attributes which works together. Html documents are also known as web
pages or web documents. A web page or HTML documents is basically a text file that
contains text matter, images, sound and hyperlinks to other pages and commands to format
them. To see the output of HTML document or web page, browser is required. HTML is the
standard markup language for creating Web pages.
Advantages of HTML:-
a) HTML is easy to use, learn and implement.
b) No special software is required.
c) It contains powerful text formatting facilities (commands / tags).
d) HTML page can be created on any hardware platform using any text editors.
e) For creating HTML document, only text editor is needed. No special software is
needed.
f) HTML document can be created on any hardware platform using any text editor.
g) Required HTML page can be updated easily, without changing whole document.
h) If something is not working, then finding error is easy in HTML.
i) HTML will not cost anything for its use. There are no expensive licenses to buy or no
upgrades to purchase.
j) Learning HTML is simple than any programming language.
Disadvantages of HTML:-
a) HTML is not a programming language in true sense.
b) Any simple calculation cannot be done in HTML.
c) It cannot be used to display even date.
d) The interactive web page cannot be build by HTML.
e) The web page developed in HTML cannot behave like an application.
f) The web pages developed in HTML do not have their own interface.
g) Syntax errors are not identified or displayed by HTML.
h) Complex HTML code is hard to read and understand.
i) No separate / special debugger is provided.
j) Code complexity increases to make more interactive web page.
Essential HTML Tags
There are four sets of HTML tags that are needed to form the basic structure for
every HTML file:
<html></html>
<head></head>
<title></title>
<body></body>
Definition - <html> </html>
This basically defines the document as web page. It also identifies the beginning and
end of the HTML document. All other tags must fall between the html tags.
Header - <head> </head>
The header contains information about the document that will not appear on the actual
page, such as the title of the document, the author, which stylesheet to use and also meta
tags.
Title - <title> </title>
The title tag defines the title that will appear in the title bar of your web browser.
The title must appear between the head tags.
Body - <body> </body>
The body tags contain all the information and other visible content on the page. All
your images , links and plain text must go between the <body> and </body> tags.
These four tags are special. There must only be one set of each and they must be in the
correct order like in the example below. The fun and creative part comes when using
the basic tags for adding content and headings.