How do I use inline css styles?



  • An inline CSS style is used directly in the html tag.

    There are countless examples on internet searches.

    For example a CSS style in a heading.

    <h1 style="background-color: green; color: white">This is a heading</h1>
    

    The result in the browser is:
    d3baa0da-5955-4788-b49b-cd1911fd5d7d-image.png


Log in to reply
 

© Lightnetics 2024