---
id: bad87fee1348bd9aedf08845
title: Use a span to Target Inline Elements
challengeType: 0
videoUrl: ''
localeTitle: Использование диапазона для целевых встроенных элементов
---
## Description
undefined
## Instructions
undefined
## Tests
```yml
tests:
- text: ''
testString: 'assert($("p span") && $("p span").length > 0, "Your span element should be inside your p element.");'
- text: ''
testString: 'assert($("p span") && $("p span").text().match(/love/i) && !$("p span").text().match(/Things cats/i), "Your span element should have just the text love.");'
- text: ''
testString: 'assert($("span").hasClass("text-danger"), "Your span element should have class text-danger.");'
- text: ''
testString: 'assert(code.match(/<\/span>/g) && code.match(//g).length === code.match(/span element has a closing tag.");'
```
## Challenge Seed