Click to return to the HTML Help home page    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

Source-Code Topic Template


Microsoft Corporation

Updated June 10, 1999

To copy the template, select the text from the <!DOCTYPE> tag to the </HTML> end tag, right-click, and then click Copy:


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>

<title>Example topic that contains source code</title>
</head>

<body>

<h1>Enter heading for a topic that contains a source code example here</h1>

<p>Open each HTML file you want to contain a source code example and add the <CODE> </CODE> tags to the code. For individual HTML tags, you can type & followed by lt; on the left side of the tag and & followed by gt; on the right side of the tag (the example below shows how these should appear around an HTML tag). This code appears in a browser as greater than and less than symbols (<>).</p>

<p>This is a way to imitate HTML tags without having the tags used when the page is opened in a browser. The following is an example format for extended code examples: </p>

<code>
&lt;STYLE&gt; BODY { font-family: times, serif; color: black; margin-left: 10%; margin-right: 10%; } A:link {color: black; text-decoration: underline } A:visited { color: black; text-decoration: none} &lt;/STYLE&gt;
</code>

</body>
</html>

Example: Help authoring templates



Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.