Write BEM

Report a typo

Write modular CSS code that follows the BEM naming convention. Consider the card section as the block. The elements of the card section are image and caption. Use only these elements when naming the classes [Do not use your own class names].

Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BEM</title>
</head>
<body>
<section class="card">
<img class="..." src="you.png">
<p class="...">This is the caption</p>
</section>
</body>
</html>

Completed 1 of 3
Provide the class name in img tag
Provide the class name in p tag
___

Create a free account to access the full topic