Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

HTML Styles

HTML Styling.

The style attribute in HTML is utilized for applying styling options to elements, including options for color, font, size, and more.

Example

  • Text colored red
  • Text colored blue
  • Text with increased size

 

Click to Learn

The HTML Style Attribute

The style of an HTML element can be modified using the style attribute.

The HTML style attribute uses the following syntax:

<tagname style=”property:value;>

Here, the property refers to a CSS property, and the value corresponds to the desired CSS value.

Further CSS details will be covered later in this tutorial.