Here the whole text inside the div get\'s red color. but I need only the \"bar\" word color to be changed
Try this... prototype library:
this is a new bar