Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Style Element
Style Element

HTML style element defines styles of HTML document. It is inserted in head of HTML page and used as internal CSS.

Syntax

<style>CSS styles</style>


You can use style element within head section of HTML document.


Example

Heading 1


Style is a pair tag and output of style element is css styles like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Write any HTML element
  • Apply CSS styles using style element

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

Heading 3

Paragraph


Don't forget style is non empty element which means it always comes in pair.