Thursday, 21 February 2013

Creating HTML Document (HTML BY GOPAL KRISHNA)

Creating an HTML document is easy. To begin coding HTML you need only two things: a simple-text editor and a web browser. Notepad is the most basic of simple-text editors and you will probably code a fair amount of HTML with it.




 Open Notepad or another text editor.

 At the top of the page type <html>.

 On the next line, indent five spaces and now add the opening header tag: <head>.

 On the next line, indent ten spaces and type <title> </title>.

 Go to the next line, indent five spaces from the margin and insert the closing header tag: </head>.

 Five spaces in from the margin on the next line, type<body>.

 Now drop down another line and type the closing tag right below its mate: </body>.

 Finally, go to the next line and type </html>.

 In the File menu, choose Save As.

 In the Save as Type option box, choose All Files.

 Name the file .html .

 Click Save.


Now you have created one HTML page and you can use a Web Browser to open this HTML file to see the result. Hope you understood that Web Pages are nothing but they are simple HTML files with some content which can be rendered using Web Browsers.

CODE :

<html>
 <head>
 <title>This is document title</title>
 </head>
<body>

 <h1>This is a heading</h1> *


<p>Document description goes here.....</p>*


 </body> 
</html>


NOW CODING OF EVERYTHING IS WRITTEN IN BODY SECTION .
EX. :

 This is a heading

Document description goes here....




TRY IT AND GO TO NEXT ... 
(HTML BY GOPAL KRISHNA)


No comments:

Post a Comment