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