Bootstrap Tutorial - Style single line code








The following code shows how to style single line code.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-git2.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://getbootstrap.com/assets/css/docs.css">
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js"></script>
</head><!--from   w w w  .  j  a v  a  2s.  c o m-->
<body>
  <p>single line</p>
  <code> /*this is a comment*/ 
    xml javascript
    java; </code>
</body>
</html>

Click to view the demo