- Get link
- X
- Other Apps
Creating HTML document
Let us create a simple HTML document to print "Hello!! World" and title of document will be "Welcome"
You can create your first simple HTML document in Notpad text editor.
Code:
<html><head>
<title> Welcome</title>
</head>
<body>
Hello!! World
</body>
</html>
In Notepad the code will look like this:
Output:
In the above example, The "Welcome" written in the Title bar is the title of your document. The text that is written in body will display in the main area of browser.
Saving HTML document
Saving HTML document is very easy task . The extensions that are used to save HTML documents are .html or .htm , if you save HTML document with these extensions then you can view them in browser , else if you save HTML document with .txt then the file will become only text file.
So remember to use .html or .htm extension while saving a HTML document.
Steps :
- Write code in Notepad.
- Then Go to file>Save or Save as OR Press Ctrl+S to save the document.
- A Save As wizard will appear . As follow
- Write the name of document as shown above and Add extension.
- Then Click Save.
Comments
Post a Comment
If you have any doubt, ask here