1.6 KiB
1.6 KiB
id | title | challengeType | videoUrl | forumTopicId |
---|---|---|---|---|
bd7123c8c441eddfaeb5bdef | Say Hello to HTML Elements | 0 | https://scrimba.com/p/pVMPUv/cE8Gpt2 | 12345 |
Description
<h1>Hello</h1>
? That's an HTML element.
Most HTML elements have an opening tag and a closing tag.
Opening tags look like this:
<h1>
Closing tags look like this:
</h1>
The only difference between opening and closing tags is the forward slash after the opening bracket of a closing tag.
Each challenge has tests you can run at any time by clicking the "Run tests" button. When you pass all tests, you'll be prompted to submit your solution and go to the next coding challenge.
Instructions
h1
element's text to say "Hello World".
Tests
tests:
- text: Your <code>h1</code> element should have the text "Hello World".
testString: assert.isTrue((/hello(\s)+world/gi).test($('h1').text()));
Challenge Seed
<h1>Hello</h1>
Solution
<h1>Hello World</h1>