Delivery of HTML: Hello World Program Computer Program
Delivery of HTML: Hello World Program Computer Program
HTML, which stands for HyperText Markup Language, is the predominant markup language for
crating static web pages. It allows images and objects to be embedded in web pages.HTML is written in
the form of HTML elements consisting of "tags" surrounded by angle brackets within the web page
content. It can include or can load scripts in languages such as JavaScript,vbscript which affects the
behavior of HTML processors like Web browsers; and Cascading Style Sheets (CSS) to define the
appearance and layout of text and other material.
The Hello world program, a common computer program employed for making a basic html web
page is as follows. The code can be written in text editor such as Windows Notepad. Also some
othr editors such as MS frontpage,Adobe pagemill can also be used.
<html>
<head>
<title>Hello HTML</title>
</head>
<body>
<p>Hello World!</p>
</body>
</html>
After we are thorough with the coding we save the above source code file with format extension as html
or htm and directly open the file in a Web browser.
Delivery of HTML
HTML documents can be delivered by the same means as any other computer file; however, they
are most often delivered either by HTTP from a Web server or by e-mail.
HTTP
The World Wide Web is composed primarily of HTML documents transmitted from Web
servers to Web browsers using the Hypertext Transfer Protocol (HTTP). However, HTTP is used
to serve images, sound, and other content in addition to HTML. HTTP is basd on Requst
Response model which states that a page is rquested by the client machine and this rquest is
processd by the web server and appropriate Response is provided back to the client machine.
HTML Tags Chart
Following are the basic tags that are used for creating static web pages in html.
<a href="http://www.domain.com/">
<a - anchor
Visit Our Site</a>
body of
<body>The content of your HTML
<body> HTML Contents of your web page
page</body>
document
heading of
<head>Contains elements describing the
<head> HTML Nothing will show
document</head>
document
<html>
<head>
<meta>
hypertext
<title>Title of your web page</title>
<html> markup Contents of your web page
</head>
language
<body>HTML web page contents
</body>
</html>
Example 1:
Example 4:
Example 4:
<form method=post action="/cgi-
bin/example.cgi">
Enter Your Comments:<br>
<input> input field <textarea wrap="virtual"
name="Comments" rows=3 cols=20
maxlength=100></textarea><br>
<input type="Submit" value="Submit">
Submit Clear
<input type="Reset" value="Clear">
</form>
Example 5:
Example 1:
Example 1:
<menu>
<li type="disc">List item 1</li> • List item 1
<li type="circle">List item 2</li>
<li type="square">List item 3</li> o List item 2
</MENU>
List item 3
<li> list item
Example 2:ordered list
Example 2:
<ol type="i">
<li>List item 1</li> i. List item 1
<li>List item 2</li> ii. List item 2
<li>List item 3</li> iii. List item 3
<li>List item 4</li>
</ol> iv. List item 4
Numbered Numbered
<ol start="5">
<li>List item 1</li> Numbered Special Start
<li>List item 2</li>
<li>List item 3</li> 5. List item 1
<li>List item 4</li> 6. List item 2
7. List item 3
</ol>
8. List item 4
Lowercase Letters
Capital Letters
<ol type="A">
<li>List item 1</li>
<li>List item 2</li> Capital Letters
<li>List item 3</li>
<li>List item 4</li> A. List item 1
</ol> B. List item 2
C. List item 3
D. List item 4
Example 1:
Example 1:
<table border="4" cellpadding="2"
cellspacing="2" width="100%">
Column 1 Column 2
<tr>
<table> table
<td>Column 1</td>
<td>Column 2</td>
</tr>
</table>
Example 1:<br>
<br>
<ul> Example 1:
<li>List item 1</li>
<li>List item 2</li> • List item 1
</ul> • List item 2
<br>
unordered Example 2:<br>
<ul>
list <ul type="disc"> Example 2:
<li>List item 1</li>
<li>List item 2</li> • List item 1
<ul type="circle"> • List item 2
o List item 3
<li>List item 3</li>
<li>List item 4</li>
o List item 4
</ul>
</ul>