Presenting Mathematical Concepts on the World Wide Web
Basics of Math on the Web
Basics of Math on the Web
Forcing Math via Entities
Can you recognize this as the quadratic formula in your browser?
If ax² + bx + c = 0
then x = (-b ± (b² - 4ac)^½) / 2a
What about this?
If ax**2 + bx + c = 0
then x = (-b +/- (b**2 - 4ac)**(1/2)) / 2a
Hint: View the source file for this document, and compare the code
that generated the two versions. Then take a few moments to think
about some of the relevant issues. Can you see where they generate
the same results ... in some browsers? Can you see where
they are actually different? If you are using one of the editors that
"writes HTML code automatically," can you figure out how to generate
notation like this using it? What about an expression that is more
visually complicated? How easy is your editor to use? Now
satisfactory are the results? What other issues should you be
considering?
The HTML code for inserting an entity has the following components:
- an ampersand
- either
- a hash mark followed by the character number, or
- the character name (much less support for this)
- a semicolon
Examples:
- © is generated by nnn; for nnn=169
- & is generated by &xxx; for xxx=amp
Here are some useful external references (found via Yahoo):
Next: Math via Mark-Up
Back / Up:
Basics of Math on the Web
Presenting Mathematical Concepts on the World Wide Web.
Copyright © 1997 by
Carol Scheftic.
All rights reserved.
(This course is based on a workshop originally offered at
The Geometry Center
and adapted with permission.)
Please send comments on this page,
or requests for permission to re-use material from this page, to:
scheftic@geom.umn.edu
Page established 1-Jun-97;
last updated Monday, 21-Jul-1997 11:20:32 CDT.