HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.

In CodePen, whatever you write in the HTML editor is what goes within the `<body>`

tags in a basic HTML5 template. So you don't have access to higher-up elements like the `<html>`

tag. If you want to add classes there that can affect the whole document, this is the place to do it.

In CodePen, whatever you write in the HTML editor is what goes within the `<body>`

tags in a basic HTML5 template. If you need things in the `<head>`

of the document, put that code here.

!
##### Insecure Resource

The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.

CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.

It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose **Neither** and nothing will be applied.

To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance `-webkit-`

or `-moz-`

.

We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).

Any URL's added here will be added as `<link>`

s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.

You can also link to another Pen here (use the `.css`

URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a *matching* preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

+ add another resource

JavaScript preprocessors can help make authoring JavaScript easier and more convenient.

Babel includes JSX processing.

Any URL's added here will be added as `<script>`

s in order, and run *before* the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.

If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.

You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.

+ add another resource

Search for and use JavaScript packages from npm here. By selecting a package, an `import`

statement will be added to the top of the JavaScript editor for this package.

Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 `import`

usage.

All packages are different, so refer to their docs for how they work.

If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.

If active, Pens will autosave every 30 seconds after being saved once.

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

If enabled, your code will be formatted when you actively save your Pen. **Note: your code becomes un-folded during formatting.**

Visit your global Editor Settings.

` ````
<h1>Responsive line-breaking with MathJax</h1>
<p>This demos responsive automatic line-breaks, i.e., reacting to resize events and trying to be efficient about it. We get a little bit of help from our markup and assume that all our (display) math sits in wrappers with <code>class="formula"</code>.</p>
<h1>Extract From Struik</h1>
<p>
This procedure is simply a generalization of the method used in Sects. 1-3 and 1-4 to obtain the equations of the osculating plane and the osculating circle. Let $f(u)$ near $P(u=u_0)$ have finite derivatives $f^{(i)}(u_0)$, $i = 1, 2, \ldots, n+1$. Then
if we take $u=u_1$ at $A$ and write $h = u_1 - u_0$, then there exists a Taylor development of $f(u)$ of the form (compare Eq. (1-5)):
</p>
<div class="formula">
$$ f(u_1) = f(u_0) + hf'(u_0)+{h^2\over 2!}f''(u_0) + \cdots + {h^{n+1}\over (n+1)!}f^{(n+1)}(u_0) + o(h^{n+1}). $$
</div>
<p>Here, $f(u_0)=0$ since $P$ lies on $\Sigma_2$, and $h$ is of order $AP$ (see theorem Sec. 1-2); $f(u_1)$ is of order $AD$.
<I>Hence necessary and
sufficient conditions that the surface has a contact of order $n$ at $P$
with the curve are that at $P$ the relations hold:</I>
</p>
<div class="formula">
$$ f(u) = f'(u) = f''(u) = \cdots = f^{(n)}(u) = 0;\quad f^{(n+1)}(u) \ne 0. $$
</div>
<hr />
<p>
The converse problem is somewhat more complicated: Find the curves which admit a given curve $C$ as involute. Such curves are called
<I>evolutes</I> of $C$ (German:
<I>Evolute;</I> French:
<I>développées</I>). Their tangents are normal to $C({\bf x})$ and we can therefore write the equation of the evolute ${\bf y}$ (Fig. 1-34):
</p>
<div class="formula">
$$ {\bf y} = {\bf x} + a_1{\bf n} + a_2{\bf b}. $$
</div>
<p>Hence</p>
<div class="formula">
$$ {d{\bf y}\over ds} = {\bf t}(1-a_1\kappa) + {\bf n}\left({da_1\over ds}-\tau a_2\right) + {\bf b}\left({da_2\over ds}+\tau a_1\right) $$
</div>
<p>must have the direction of $a_1{\bf n} + a_2{\bf b}$, this tangent to the evolute:</p>
<div class="formula">
$$ \kappa = 1/a, \qquad R= a_1, $$
</div>
<p>and</p>
<div class="formula">
$$ {{da_1\over ds} - \tau a_2\over a_1} = {{da_2\over ds}+\tau a_1\over a_2}, $$
</div>
<p>which can be written in the form:</p>
<div class="formula">
$$ {a_2{dR\over ds} - R{da_2\over ds} \over a_2^2 + R^2} = \tau. $$
</div>
<p>This expression can be integrated:
</p>
<div class="formula">
$$ \tan^{-1}{R\over a_2} = \int \tau\,ds + {\rm const}, $$
</div>
<p>or</p>
<div class="formula">
$$ a_2 = R\left[{\rm cot}\left(\int \tau\,ds + {\rm const}\right)\right]. $$
</div>
<p>The equation of the evolute is:
</p>
<div class="formula">
$$ {\bf y} = {\bf x} + R\left[{\bf n} + {\rm cot}\left(\int \tau\,ds + {\rm const}\right){\bf b}\right]. $$
</div>
<hr />
<p>If $P(u,v)$ and $Q(u,v)$ are two functions of $u$ and $v$ on a surface, then according to Green's theorem and the expression in Chapter 2, Eq. (3-4) for the element area:
</p>
<div class="formula">
$$ \int_C P\,du + Q\, dv = \int\!\!\!\int_A \left({\partial Q\over \partial u} - {\partial P\over \partial v}\right) {1\over \sqrt{EG-F^2}}\,dA, $$
</div>
<p>where $dA$ is the element of area of the region $R$ enclosed by the curve $C$. With the aid of this theorem we shall evaluate
</p>
<div class="formula">
$$ \int_C \kappa_g\,ds, $$
</div>
<p>where $\kappa_g$ is the geodesic curvature of the curve $C$. If $C$ at a point $P$ makes the angle $\theta$ with the coordinate curve $v = {\rm constant}$ and if the coordinate curves are orthogonal, then, according to Liouville's formula (1-13):
</p>
<div class="formula">
$$ \kappa_g\,ds = d\theta + \kappa_1(\cos\theta)\,ds + \kappa_2(\sin\theta)\,ds. $$
</div>
<p>Here, $\kappa_1$ and $\kappa_2$ are the geodesic curvatures of the curves $v = {\rm constant}$ and $u = {\rm constant}$ respectively. Since
</p>
<div class="formula">
$$ \cos\theta\,ds = \sqrt{E}\,du, \qquad \sin\theta\,ds = \sqrt{G}\,dv, $$
</div>
<p>we find by application of Green's theorem:</p>
<div class="formula">
$$ \int_C\kappa_g\,ds = \int_C d\theta + \int\!\!\!\int_A\left({\partial\over\partial u} \left(\kappa_2\sqrt{G}\,\right) - {\partial\over \partial v}\left(\kappa_1\sqrt{E}\,\right)\right)\,du\,dv. $$
</div>
<p>
The Gaussian curvature can be written, according to Chapter 3, Eq. (3-7),
</p>
<div class="formula">
$$ K = -{1\over 2\sqrt{EG}} \left[{\partial\over\partial u}{G_u\over \sqrt{EG}} + {\partial\over\partial v}{E_v\over\sqrt{EG}}\right] ={1\over\sqrt{EG}}\left[ -{\partial\over\partial u} \left(\kappa_2\sqrt{G}\,\right) + {\partial\over\partial v} \left(\kappa_1\sqrt{E}\,\right)\right],
$$
</div>
<p>so we obtain the formula</p>
<div class="formula">
$$ \int_C\kappa_g\,ds = \int_C d\theta - \int\!\!\!\int_A K\,dA. $$
</div>
<p>The integral $\int\!\!\int_A K\,dA$ is known as the
<I>total</I> or
<I>integral curvature</I>, or
<I>curvature integra</I>, of the region $R$, the name by which Gauss introduced it.
</p>
```

` ````
body {max-width: 900px; border: solid; margin: auto}
```

` ````
window.MathJax = {
jax: ["input/TeX","output/CommonHTML"],
CommonHTML: { linebreaks: {automatic: true}},
SVG: { linebreaks: {automatic: true}},
"HTML-CSS": { linebreaks: {automatic: true}},
extensions: ["tex2jax.js", "asciimath2jax.js", "mml2jax.js", "MathMenu.js", "MathZoom.js"],
TeX: {
extensions: ["AMSmath.js", "AMSsymbols.js", "autoload-all.js"]
},
tex2jax: {
inlineMath: [
['$', '$'],
["\\(", "\\)"]
],
processEscapes: true
},
AuthorInit: function() {MathJax.Hub.Register.MessageHook("End Process", function (message) {
var timeout = false, // holder for timeout id
delay = 250; // delay after event is "complete" to run callback
var reflowMath = function() {
var dispFormulas = document.getElementsByClassName("formula");
if (dispFormulas){
for (var i=0; i<dispFormulas.length; i++){
var dispFormula = dispFormulas[i];
var child = dispFormula.getElementsByClassName("MathJax_Preview")[0].nextSibling.firstChild;
var isMultiline = MathJax.Hub.getAllJax(dispFormula)[0].root.isMultiline;
if(dispFormula.offsetWidth < child.offsetWidth || isMultiline){
MathJax.Hub.Queue(["Rerender", MathJax.Hub, dispFormula]);
}
}
}
};
window.addEventListener('resize', function() {
// clear the timeout
clearTimeout(timeout);
// start timing for event "completion"
timeout = setTimeout(reflowMath, delay);
});
});
}
};
(function(d, script) {
script = d.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.onload = function() {
// remote script has loaded
};
script.src = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js';
d.getElementsByTagName('head')[0].appendChild(script);
}(document));
```

999px

Also see: Tab Triggers