From a84263fab7898f1bf54713071da2dcbbe82849e7 Mon Sep 17 00:00:00 2001 From: Golmote Date: Sun, 4 Mar 2018 15:50:15 +0100 Subject: [PATCH] Docs: Fix link to the element specification in HTML5 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 929de97ea0..d251c8b2a1 100644 --- a/index.html +++ b/index.html @@ -137,7 +137,7 @@

Basic usage

</html>

Prism does its best to encourage good authoring practices. Therefore, it only works with <code> elements, since marking up code without a <code> element is semantically invalid. - According to the HTML5 spec, the recommended way to define a code language is a language-xxxx class, which is what Prism uses. + According to the HTML5 spec, the recommended way to define a code language is a language-xxxx class, which is what Prism uses. To make things easier however, Prism assumes that this language definition is inherited. Therefore, if multiple <code> elements have the same language, you can add the language-xxxx class on one of their common ancestors. This way, you can also define a document-wide default language, by adding a language-xxxx class on the <body> or <html> element.