⊗mkPmSlSCE 63 of 250 menu

Element with multiple CSS classes

You can simultaneously set several CSS classes for a tag. To do this, in the class attribute, these classes must be listed separated by a space.

Let's look at an example. Let's say we have several CSS classes:

.error { color: red; } .large { font-size: 30px; font-family: Arial; }

Let's assign both classes to the paragraph:

<p class="error large"> lorem ipsum </p>

Let's say you have the following classes:

.success { color: green; } .error { color: red; } .large { font-size: 30px; } .small { font-size: 20px; }

Let's say you also have 4 paragraphs. Using the classes provided, make the first paragraph green and large font, the second paragraph red and small font, the third paragraph red and large font, and the fourth paragraph green and small font.

Come up with and make 3 some classes. Assign all three classes you came up with to some tag at the same time.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline