How to use the class attribute to define style in inline elements with HTML and CSS

1 Answer

0 votes
<!DOCTYPE html>
<html>
    <head>
        <style>
            span.test {
                font-size: 130%;
                color: green;
            }
        </style>
    </head>
    <body>

        <h1><span class="test">HTML</span> Hypertext Markup Language</h1>

    </body>
</html>

 



answered Dec 19, 2018 by avibootz
...