How to Test Internet Code
Hyper Text Markup Language, known more commonly as HTML, is the language of the Internet. It's used to set forth all the details of a Web page -- from defining text and image content to specifying layout and appearance details -- by communicating them to a Web browser. Web designers often use high-end HTML specific software to create and test their code, but a simple test of your HTML code can be performed with only your computer's text editor and Web browser.
Instructions
-
-
1
Open a new document with your text editor. Save the document immediately. Type a name when prompted followed by the extension ".HTML" designating it as a web document.
-
2
Enter the code and content you wish to test into the document. Enclose all tags in brackets and remember to close your tags. If you don't have code of your own to test, try this:
<html>
<head>
<title>Sample Web Page</title>
</head>
<body>
<h1>Sample Heading</h1>
<p>Here's a sample paragraph.</p>
</body>
</html>
-
-
3
Save your work.
-
4
Open your Web browser. Select "File," then "Open," and find the Web document you just saved. Select and open it.
-
5
Leave the page open in your browser. Refresh the page in your browser as you make changes and save them in your text editor -- the browser will reflect these changes.
-
1
Tips & Warnings
Test your page on different browsers for best results, since different browsers display pages differently. The extension ".HTM" can be used in place of ".HTML" for your Web document; the two are interchangeable.
Remember that HTML commands must be used to make visual changes to a Web page. Adding text or returns in your text editor will not change the appearance of your page.