VOOZH about

URL: https://www.geeksforgeeks.org/css/w3-css-code/

⇱ W3.CSS Code - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

W3.CSS Code

Last Updated : 2 Mar, 2021

W3.CSS provides several classes for displaying inline and multiline blocks of code.

Displaying Inline Code: Inline code should be wrapped in <code> tags with w3-codespan as the class. The resulting text will be displayed in a fixed-width font and given a red font color with a light grey background.

Note: The < and > tags should be replaced with &lt; and &gt; respectively.

Example:

Output:

👁 Image

Displaying Multiline Code Blocks: Multiline code should be wrapped in <div> tags with class w3-code. The resulting text will be displayed in a readable mono-spaced font with spaces and line breaks being preserved.

Note: The < and > tags should be replaced with &lt; and &gt; respectively.

Example:

Output:

👁 Image
Comment
Article Tags:
Article Tags: