The Organ Pipes
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Tutorial: First Webpage

Go down 
AuthorMessage
pencillio
Administrator
Administrator



Posts : 8
Join date : 2008-06-14
Age : 30

Tutorial: First Webpage Empty
PostSubject: Tutorial: First Webpage   Tutorial: First Webpage EmptySat Jun 14, 2008 9:48 pm

The source code


Code:

<html>
<!-- First Webpage in HTML -->
<title>Hello World!</title>
<body>
<h2>Hello World!</h2>
<hr>
<p>This is a webpage!</p>
<hr>
</body>
</html>

What does it all mean?


HTML works around things called tags. These start with <tagname> and end with </tagname>. The ones used in this example are:

<html> - Indicates that what follows is HTML code
<title> - Appears as the page title
<body> - The main body of the webpage
<h2> - Creates a heading, bigger than normal text
<hr> - Draw a horizontal rule
<p> - New paragraph

Also note the way comments are formed, in the second line. These do not appear on the page.

How do I view the page?


Easy. Open up notepad, enter the code, and save as 'webpage.htm'. There are special HTML editing programs, but notepad will do for now!
Back to top Go down
http://www.theorganpipescom
 
Tutorial: First Webpage
Back to top 
Page 1 of 1
 Similar topics
-
» Tutorial: Hello World In C++
» Tutorial: Hello World In GML
» Tutorial: Hello World In DarkBASIC

Permissions in this forum:You cannot reply to topics in this forum
The Organ Pipes :: Programming :: HTML-
Jump to: