Spectre Inline code

The HTML code element is used to style the inline code and the code snippet. In this article, we will learn about the Inline code. Inline code is a line of the actual code. For inline code, you can use the <code> element. 

Spectre Inline code class: There is no predefined class for this, we can use the <code> tag for the inline code.

Syntax:

<code> code </code>

Example: The below example illustrate the Spectre Inline code.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>SPECTRE CSS Code Class</title>
    <link rel="stylesheet"
        href=
"https://unpkg.com/spectre.css/dist/spectre.min.css">
    <link rel="stylesheet"
        href=
"https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
    <link rel="stylesheet"
        href=
"https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
</head>
  
<body>
    <center>
        <h1 class="text-success">w3wiki</h1>
        <strong>SPECTRE Inline Code</strong>
        <br><br>
            <div>
                <code>A Computer Science portal for Beginner</code>
            </div>
     </center>
</body>
  
</html>


Output:

Spectre Inline code

Reference: https://picturepan2.github.io/spectre/elements/code.html#code-inline



Contact Us