UrbanPro
true

Learn HTML from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

HTML Style Attribute

Rahul Dekar
30/03/2017 0 0

Setting the style of an HTML element, can be done with the style attribute.

<tagname style="property:value;">
 
Ex -
 

HTML Background Color

The background-color property defines the background color for an HTML element.

This example sets the background color for a page to light grey:

<html>

<head><title>HTML Style Attribute</title></head>

<body style="background-color:lightgrey;">

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>

</html>

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Learn Conceptually
Whenever you try to learn something, understand the concepts well. This will not only fix the idea in your mind but also help you comprehend the process.
S

Shweta Chauhan

0 0
0

Types Of CSS
There are total 3 types of CSS: 1) Inline CSS. 2) Internal CSS. 3) External CSS. Meaning of these 3 CSS : 1) Inline CSS: Assign within html tag only. 2) Internal CSS: Assign within perticular html...

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

Kick start your IT career with User Interface development
If you are planning to start your career into IT, you can begin as User Interface developer. No previous IT background or programming experience needed. Below are some of the responsibilties of User...

HTML - Introduction
HTML - Hypertext Markup Language is the standard markup language for creating web applications. Hypertext is simply a piece of text that works as a link. Markup Language is a way of writing layout information...
X

Looking for HTML Classes?

The best tutors for HTML Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn HTML with the Best Tutors

The best Tutors for HTML Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more