code

Support

Specifies a fragment of computer code.

The code element is used to identify computer code and display will be rendered by the browser in a fixed width font such as Courier. This element is often used with the pre element which will help enforce line breaks and whitespacing.

Example

<pre>
<code>
-(IBAction) sampleCode: (id)sender {
World *myWorld = [[World alloc] init];
[myWorld setName:@"Earth"];
}
</code>
</pre>

Preview

    
	-(IBAction) sampleCode: (id)sender {
		World *myWorld = [[World alloc] init];
		[myWorld setName:@"Earth"];
	}