Html Style Tag
Advertisements
Html Style Tag
<style> tag are used for define CSS styles required for the page. It must be inside the <head> tag.
Syntax
<!DOCTYPE> <html> <style> .para { color:red; } <style> <body> <p class="para">This is my first Html code.</p> </body> </html>
Result
This is my first Html code.
Browser supported
Element | |||||
<style> | Yes | Yes | Yes | Yes | Yes |
Google Advertisment