Suppose I have a JavaScript function that displays an error using the following code
document.getElementById("ID").innerHTML = "This is your error";
Now, if I wish to customize the error message by changing its text color and repositioning it on the page, what steps should I take? Despite my efforts to search for relevant information, I am unable to find any guidance.