What Is The HTML Style

The HTML Style trait is utilized to add styles to a component, like tone, textual style, size, and then some .

Example

I am Red

I am Blue

I am Big

The HTML Style Attribute

Setting the style of a HTML component, should be possible with the style trait.

The HTML Style characteristic has the accompanying language structure:<tagname style=”property:value;“>

The CSS property is a property. The worth is a CSS esteem.

Background Color Of HTML Style

The CSS establishment concealing property describes the establishment tone for a HTML segment.

Example

Set the foundation tone for a page to powderblue:

<body style=“background-color:powderblue;”>

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

</body>

Example

Set foundation tone for two distinct components:

<body>

<h1 style=“background-color:powderblue;”>This is a heading</h1>
<style=“background-color:tomato;”>This is a paragraph.</p>

</body>

Text Color Of HTML Style

The CSS shading property characterizes the content tone for a HTML component:

Example

<h1 style=“color:blue;”>This is a heading</h1>
<style=“color:red;”>This is a paragraph.</p>

Fonts of HTML Style

The CSS text style family property characterizes the textual style to be utilized for a HTML component:

Example

<h1 style=“font-family:verdana;”>This is a heading</h1>
<style=“font-family:courier;”>This is a paragraph.</p>

Text Size Of HTML Style

The CSS text dimension property characterizes the content size for a HTML component:

Example

<h1 style=“font-size:300%;”>This is a heading</h1>
<style=“font-size:160%;”>This is a paragraph.</p>

Text Alignment Of HTML Style

The CSS text-adjust property characterizes the level content arrangement for a HTML component:

Example

<h1 style=“text-align:center;”>Centered Heading</h1>
<style=“text-align:center;”>Centered paragraph.</p>