HTML style tag

HTML style tag is used inside html webpages to include the inline css. The inline css gives styling to the content of the website. The look and feel depends upon the CSS.

Syntax of HTML style tag


This is example using inline style to show the output of CSS.

We can style the HTML element without using <style> tag. Instead of using this tag, we can use style attribute to give CSS.


This is example using inline style without using the style tag.

Resources and References

1. W3C Specification.
2. HTML living standard
3. W3C project using Github

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Get FREE Access to Toolkit and Resources that we are using in Tutorialdeep that Every Professional Should Have! in one handy PDF.

Download Link Will be Send to Your Email id