A nice equation is E = mc2. Notice it uses a superscript. You can also get a subscript, as in the initial velocity, v0.
Fixed-width font is useful for various things, such as showing a snippet of a code: a useful Java function is Math.random()
Normally, line breaks and spaces in an html file will not affect the rules for how text is displayed.
However,
sometimes you wish to break a line right here
and then
continue it on the next line.
You may wish to put in a block of text that you preformat exactly, like a computer program. For example, here is a so-called "Hello World" program in Java:
// Hello, World! program in Java
public class HelloWorld {
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
Notice that it appears on the screen exactly as it is typed
(e.g., line breaks and indentation); it uses the fixed-width font by default.
Here is a table with a border:
| Language | Creator |
|---|---|
| Java | James Gosling |
| Python | Guido van Rossum |
| C++ | Bjarne Stroustrup |