1. HTML—OVERVIEW
HTML stands for Hypertext Markup Language, and it is the most widely used language to
write Web Pages.
+ Hypertext refers to the way in which Web pages (HTML documents) are linked
together. Thus, the link available on a webpage is called Hypertext.
‘+ As its name suggests, HTML is a Markup Language which means you use HTML to
simply "mark-up" a text document with tags that tell a Web browser how to structure
it to display.
Originally, HTML was developed with the intent of defining the structure of documents like
headings, paragraphs, lists, and so forth to facilitate the sharing of scientific information
between researchers,
Now, HTML is being widely used to format web pages with the help of different tags available
in HTML language.
Basic HTML Document
In its simplest form, following is an example of an HTML document:
Codestin Search App
Document content goes here.....
Either you can use Try it option available at the top right corner of the code box to check the
result of this HTML code, or let's save it in an HTML file test.htm using your favorite text
editor. Finally open it using a web browser like Internet Explorer or Google Chrome, or Firefox
etc. It must show the following output:
16HTML
e900
1/fses maha /Ovsizapytest htm | eva
This is a heading
Document coment goes here...
Tiss document ute? \@)_MaeilaFitoxstire Page x
Qreyase
HTML Tags
As told earlier, HTML is a markup language and makes use of various tags to format the
content. These tags are enclosed within angle braces . Except few tags, most
of the tags have their corresponding closing tags. For example, has its closing
tag and tag has its closing tag tag etc.
Above example of HTML document uses the following tags
Tag
Description
This tag defines the document type and HTML version
Codestin Search App
This is heading 4
this is heading 6¢/n6>
This will produce the following result:
19This is heading 1
This is heading 2
This is heading 3
This is heading 4
Thi
heading $
‘This is heading 6
Paragraph Tag
HTML
‘The tag offers a way to structure your text into different paragraphs. Each paragraph of
text should go in between an opening
and a closing
tag as shown below in the
example:
Example
<1DOCTYPE html>
Codestin Search App
You delivered your assignment on time.
Thanks
Mahnaz
|
This will produce the following result:
ello ]
You delivered your assignment on tine.
Thanks
Mahnaz |
Centering Content
You can use tag to put any content in the center of the page or any table cell.
Example
chtmi>
|
& tutorialspoint
2HTML
Codestin Search App
function testFunction( strText ){
alert (strText)
3