DONATE  
MENU
JAVASCRIPT
JSON
MYSQL
PHP
HTML
CSS
AJAX

HTML Tutorials

INTRODUCTION

» Introduction to HTML

» PRACTICE IT Editor

» Getting Started

» HTML Example

» HTML Tags

» HTML Elements

» Nesting Tags

» Block & Inline Elements

» HTML Attributes

» HTML Comments

» File Paths

» HTML Entities & Symbols

TAGS/ELEMENTS

» Important Tags

» HTML Headings

» Text Formatting

» HTML Links

» HTML Lists

» HTML Tables

» HTML Images

» HTML Audios

» HTML Videos

» HTML Iframes

» HTML Styles

» HTML Scripts

» Semantic Elements

» HTML Metadata

ATTRIBUTES

» Elements' ID

» Elements' Class

» Elements' Style

» Element's Align

» Element's Height & Width

HTML FORMS

» HTML Forms

» Input Elements

» HTML Textarea

» HTML Select

HTML EXAMPLE

» Login Page

.. » HTML » Attributes » Elements' Style
Share Tweet WhatsApp

Elements' Style

The HTML element's style attribute is used in applying basic and inline styling or CSS to an element. It's value is usually one or more styles that should be applied to an elements. Each of these stylings are defined in the name:value pair while separating each individual style to apply on an element from the other with a semi - colon (;) in accordance to CSS standard. You will learn all about the use and application of CSS in the CSS tutorials. EXAMPLE
<p style='color:blue; font-size:3em; margin:3%;'>Hello World</p>

<button style='border:1px solid blue; outline:none; padding:10px;'>Click Me</button>

Copy PRACTICE IT

SUMMARY
  1. The HTML style attribute is used in defining styles directly on an HTML element.
  2. The attribute value contains one or more styles separated by a semi - colon (;) and in standard with CSS styling.
  3. All HTML elements can have the style attribute but styles can not be interpreted on all HTML elements. For example, it doesn't make sense for the <title> element to have stylings.
Take a short quiz on Elements' Style.
Ask a question or tell us if Elements' Style is easy or not.
cent?

Join our 1,090 subscribers to receive tutorials' updates!

  We won't spam your mail box. We hate it.





StackBeginner 2021 © Joseph Omamode