style attribute is used to set the style of HTML element it is used in CSS to make different styles of element, it is used as inline attribute within any HTML element
<tag style=some styles
>Content</tag>
Here some styles means you can give any number of styles to HTML element and each style has following syntax.
Styles are used for decoration of HTML elements
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.
You can apply any style to your elements.