H T M L
The World Wide Web
It is the set of computers
on the internet that support http.
HTTP
HTTP is the initials for the hypertext transfer protocol. It is the language used by a www client to request documents from a www server.
HTML
HTML is the initials for
HyperText MarkUp Language. It is the main markup language for displaying web pages and other information
that can be displayed in a web browser.
Creating and Publishing a web page
Steps for creating and publishing a web page:
1. Firstly, create an HTML document.
2. Secondly, place the document in world accessible
directory.
3. Then, access the web page through:
http://hostname/~username/filename
4. Lastly, validate the document
-check the syntax a formal HTML validator
An example of a simple HTML document:
<!DOCTYPE html>
<html>
<head>
<title>Hello HTML</title>
</head>
<body>
<p>Hello World!</p>
</body>
</html>
Preformatted
Paragraphs
•
The
PRE Element
–
<PRE>….</PRE>
•
Attributes:
WIDTH
–
Expected
width in characters. Not widely supported.
•
Problem:
Special Characters
<PRE>
if (a<b>{
doThis();
} else {
doThat();
}
}
Desired Character | HTML Required |
< |
< |
> |
> |
& | & |
" | " |
Non-breaking Space |   |
We can try the HTML at HTML Tutorial.