Aryan PrajapatKnowledge Contributor
Is it possible to add CSS to console messages
Is it possible to add CSS to console messages
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
Yes, you can apply CSS styles to console messages similar to html text on the web page.
console.log(
“%c The text has blue color, with large font and red background”,
“color: blue; font-size: x-large; background: red”
);