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].
BEM
Write BEM
Report a typo
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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.