Home >Web Front-end >CSS Tutorial >How Can I Assign Multiple Classes to a Single HTML Element?
Assign Multiple Classes to HTML Container
It is possible to assign multiple classes to a single HTML container by separating the class names with spaces. However, using commas as separators will not work correctly.
For instance, the following code will correctly assign multiple classes to the
<article class="column wrapper">
The column and wrapper classes will both be applied to the
Note: Do not use commas to separate class names. The correct syntax is to use spaces.
The above is the detailed content of How Can I Assign Multiple Classes to a Single HTML Element?. For more information, please follow other related articles on the PHP Chinese website!