html label text color – How to change label color with html and CSS without js?

html label text color – CSS background-color property sets the background color of an element. To set the font color in HTML, use the style attribute. The style attribute specifies an inline style for an element.

html label text color

HTML label font color

text color html

<p style="color:---"> Text <p>
<!-- Here an exemple if you want a blue text-->
<p stlye="color:blue"> Romuald <p>

How to change label color with html and CSS without js?

    label { color: blue; }
    label span { color: yellow; }

    <label> Label <span>Welcome To</span> </label>

label color: black


<html xmlns="">
  <title>Here an exemple if you want a blue text</title>
  <style type="text/css">

label:after {
  content: ": ";

label {
  background-color: pink;
  color: black;
  font-weight: bold;
  padding: 4px;
  text-transform: uppercase;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: xx-small;


<form action="" method="post">

  <label for="uname">membername</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <label for="pname">memberPass</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <input type="submit" name="Submit" value="Submit" class="buttonSubmit" />



Don’t Miss : HTML Textbox CSS Style Examples

How to set font color in HTML?

<!DOCTYPE html>
      <title>HTML Font color - How to set font color in HTML</title>
      <h2>Free Download Source code</h2>
      <p style="color:blue">Welcome To</p>

I hope you get an idea about html label text color.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.