Including CSS and JS fragments and files.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 19 Jun 2016 20:07:30 +0300
changeset 1993 cfa0586ae955
parent 1992 f4ff79a3e693
child 1994 4a272425853d
Including CSS and JS fragments and files.
html.rst
--- a/html.rst	Sun Jun 19 20:01:35 2016 +0300
+++ b/html.rst	Sun Jun 19 20:07:30 2016 +0300
@@ -68,6 +68,26 @@
 https://www.w3.org/International/questions/qa-lang-why
   Why use the language attribute?
 
+Including CSS and JS fragments and files
+========================================
+
+HTML 4.01 require ``type`` attribute in CSS and JS linking tags::
+
+  <link rel="stylesheet" type="text/css" href="path-to.css">
+  <style type="text/css">...</style>
+
+  <script type="text/javascript" src="abc.js"></script>
+  <script type="text/javascript">...</script>
+
+HTML 5 makes ``type`` attribute unnecessary when declaring or linking to
+external CSS / JS::
+
+  <link rel="stylesheet" href="path-to.css">
+  <style>...</style>
+
+  <script src="abc.js"></script>
+  <script>...</script>
+
 Center an object.
 =================