Answers for "css html attribute"

4

target css by form name

tag[name="nameofthetag"] {
	//style your html tag
}

Example: 
<input type="submit" value="Go" name="goButton">
input[name="goButton"] {
  background: red;
}
Posted by: Guest on June-24-2020
0

style attribute in html

<p style="color: red; /* CSS */">Example</p>
Posted by: Guest on January-01-2021

Browse Popular Code Answers by Language