JavaScript String Fontcolor() Method - W3Schools
Có thể bạn quan tâm
JavaScript String fontcolor()
❮ JavaScript String Reference ★ +1 Track your progress - it's free! Log in Sign Up
❮ JavaScript String Reference
Example
let text = "Hello World!"; let result = text.fontcolor("green"); Try it Yourself »Description
String fontcolor() is deprecated in JavaScript.
Avoid using it.
It may cease to work in your browser at any time.
The fontcolor() method returns a string embedded in a <font> tag:
<font color="colorvalue">string</font>
The <font> tag is not supported in HTML5.
Syntax
string.fontcolor("color")Parameters
Parameter | Description |
color | Required.A color value in rgb or hex. |
Return Value
A string embedded in the <font> tag. |
Từ khóa » Html Color Text Javascript
-
Change Text Color On Click Using JavaScript | Bobbyhadz
-
HTML DOM Style Color Property - W3Schools
-
Change Text Color With Javascript? - Stack Overflow
-
How To Change The Font Color Of A Text Using JavaScript?
-
How To Change Font Color Of HTML Element In JavaScript?
-
How To Change The Text Color In JavaScript - Reactgo
-
Text Color Change In Js Code Example - Code Grepper
-
JavaScript: String Fontcolor() Method - TechOnTheNet
-
ntcolor() - JavaScript - MDN Web Docs
-
- HTML: HyperText Markup Language | MDN"> - HTML: HyperText Markup Language | MDN
-
How To Change Text Color In HTML? - Top 3 Ways To Create Awesome ...
-
How To Change Text Color In Html - Javatpoint
-
How To Change Text Color On Click Using JavaScript?
-
How To Change Text Color In Javascript - YouTube