How to Create Multicolored Text using HTML and CSS? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The CSS linear gradient property is used to create a multicolored text using HTML and CSS. The deprecated <font> was also used for basic color applications.1. Using <font> color Attribute The <font> element is deprecated in HTML5 and still be used to specify the text color. You can apply this to each character, word, or entire line of text.Syntax<font color="color_name">Text content</font> HTML <h1> Welcome To <font color="#FF2626">G</font> <font color="#252A34">e</font> <font color="#753422">e</font> <font color="#FFD523">k</font> <font color="#71EFA3">s</font> <font color="#0F52BA">for</font> <font color="#66CC66">G</font> <font color="#FF9966">e</font> <font color="#FFCCCC">e</font> <font color="#00C1D4">k</font> <font color="#EFE3D0">s</font> </h1> Output 2. Using linear-gradient Attribute CSS is used to create a multicolored text effect with a linear gradient. This method involves setting a background gradient for the text and using webkit properties to clip the background to the text. Syntaxbackground: linear-gradient(to left, color names);-webkit-background-clip: text;color: transparent;Steps to Add Multicolor into TextAdd a simple text inside the <div> tag with the required selector. Apply the linear gradient property with any colors of your choice. Apply webkit properties that will fill the text with the gradient background and declare the color property with transparent background. HTML <div style="text-align: center; font-size: 50px; background: linear-gradient(to left,violet, indigo, blue, green, yellow, orange, red); -webkit-background-clip: text; color: transparent;"> Welcome To GeeksforGeeks! </div> Output Comment More infoAdvertise with us Next Article Create a Glowing text shadow using HTML and CSS A aksrathod07 Follow Improve Article Tags : Web Technologies Web Templates Similar Reads How to create linear gradient text using HTML and CSS ? The linear-gradient is used to create eye-catching text effects, particularly suitable for dark-themed websites or applications. This method involves filling text with linear-gradient color codes, making it look attractive and bold. Linear-gradient text effects are ideal for dark themes and provide 2 min read How to Create Style Labels using HTML and CSS ? Creating style labels using HTML and CSS involves designing form labels that enhance user interaction. By applying CSS properties like color, font, and spacing, you can improve the appearance of labels associated with input fields, making forms more visually appealing and user-friendly.Creating Styl 1 min read How to Create a Cutout Text using HTML and CSS ? Cutout text is used as a background header of the webpage. The cutout text creates an attractive look on the webpage. To create a cutout text we will use only HTML and CSS. We display the cutout text and then we make the text blending of an elementâs background with the elementâs parent. The CSS mix 2 min read How to Create Text Color Animation using HTML and CSS ? The text color can be changed according to the programmerâs choice using CSS @keyframes rule. In this article, we will see how to create text color animation using HTML and CSS. Preview:Approach:Create an HTML file with a centered <div> containing an <h2> element.Use CSS to reset default 1 min read Create a Glowing text shadow using HTML and CSS To create a glowing text-shadow, we will use HTML to create the structure and CSS for the styling of the text. With the help of CSS, we can add shadows to text. HTML Code: In this section, we will design the basic structure of the code. html <!DOCTYPE html> <html lang="en"> <head> 2 min read How to Create Engraved Text Effect using HTML and CSS ? The engraved text effect is an effect that you can use in your websites as a heading or a sub-heading to make it look more pleasing and attractive. Approach: The engraved text effect can be easily generated using HTML and CSS. First we will create a basic text using HTML and then by using the CSS te 2 min read Like