

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use style attribute to define style rules?
You can use style attribute of any HTML element to define style rules. These rules will be applied to that element only. Here is the generic syntax:
<element style = "...style rules....">
The following is an example:
<html> <head> </head> <body> <p style = "color:#36C;"> This is inline CSS </p> </body> </html>
- Related Questions & Answers
- How to define multiple style rules for a single element in CSS?
- How to use the <style> tag to define style information for an HTML page?
- Style Rules in CSS
- HTML style Attribute
- Rules to override Style Sheet Rule in CSS
- How to work with style attribute in HTML?
- How to use Style Sheet in HTML?
- How to use Notification Inbox style in Android
- How to use JTextPane to style code in Java?
- How to use inline CSS (Style Sheet) in HTML?
- How to use internal CSS (Style Sheet) in HTML?
- How to use CSS style in PowerShell HTML Output?
- What are the ways to include style sheet rules in an HTML document
- How to use inline CSS style for an element in HTML?
- How to style images with CSS?
Advertisements