The w3-container class can be used to display alerts.
Alerts are often displayed using a strong color:
Red often indicates a dangerous or potentially negative action.
Yellow or orange often indicates a warning that might need attention.
Green often indicates something successful or positive.
Blue often indicates a neutral informative change or action.