Articles → HTML → Code Tag In HTML
Code Tag In HTML
Purpose
Syntax
Example
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<code>
var app = angular.module('app', []);
app.controller('myController', function ($scope) {
$scope.ClickMe = function () {
alert("Click me");
}
});
</code>
</body>
</html>
Try It
Output
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |