HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The w3-panel class is used to display examples in a grey container
The w3-panel class is used to display examples in a grey container:
The w3-code class is used to display code in a readable mono-spaced font.
fruits[0] = "Banana";
fruits[1] = "Apple";
fruits[2] = "Mango";
fruits[3] = "Plum";
The w3-codespan class is used to highlight inline code:
The html
element defines an HTML page.
The
<code class="w3-codespan">html</code> element defines an HTML page.
w3resource provides a JavaScript library for coloring code.
fruits[0] = "Banana";
fruits[1] = "Apple";
fruits[2] = "Mango";
fruits[3] = "Plum";
If you use the w3codecolor.js library, you can also use the code classes described below:
The jsHigh class is used to highlight JavaScript code:
<div class="w3-code jsHigh">
.. JavaScript code here
</div>
The htmlHigh class is used to highlight HTML code:
<div class="w3-code htmlHigh">
.. HTML code goes here
</div>
The cssHigh class is used to highlight CSS code:
<div class="w3-code cssHigh">
.. CSS code here
</div>