* fix: changed challenge test text to use should * fix: changed have to be used in Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: reworded test verbiage Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: improved test verbiage Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: improved test verbiage Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: corrected typo Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: corrected typo Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: changed have the to be used in Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: corrected verbiage Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
		
			
				
	
	
		
			64 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: bad87fee1348bd9aedf08801
 | |
| title: Inform with the Paragraph Element
 | |
| challengeType: 0
 | |
| videoUrl: 'https://scrimba.com/p/pVMPUv/ceZ7DtN'
 | |
| forumTopicId: 18202
 | |
| ---
 | |
| 
 | |
| ## Description
 | |
| <section id='description'>
 | |
| <code>p</code> elements are the preferred element for paragraph text on websites. <code>p</code> is short for "paragraph".
 | |
| You can create a paragraph element like this:
 | |
| <code><p>I'm a p tag!</p></code>
 | |
| </section>
 | |
| 
 | |
| ## Instructions
 | |
| <section id='instructions'>
 | |
| Create a <code>p</code> element below your <code>h2</code> element, and give it the text "Hello Paragraph".
 | |
| <strong>Note:</strong> As a convention, all HTML tags are written in lowercase, for example <code><p></p></code> and not <code><P></P></code>.
 | |
| </section>
 | |
| 
 | |
| ## Tests
 | |
| <section id='tests'>
 | |
| 
 | |
| ```yml
 | |
| tests:
 | |
|   - text: Your code should have a valid <code>p</code> element.
 | |
|     testString: assert(($("p").length > 0));
 | |
|   - text: Your <code>p</code> element should have the text "Hello Paragraph".
 | |
|     testString: assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()));
 | |
|   - text: Your <code>p</code> element should have a closing tag.
 | |
|     testString: assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/<p/g).length);
 | |
| 
 | |
| ```
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Challenge Seed
 | |
| <section id='challengeSeed'>
 | |
| 
 | |
| <div id='html-seed'>
 | |
| 
 | |
| ```html
 | |
| <h1>Hello World</h1>
 | |
| <h2>CatPhotoApp</h2>
 | |
| ```
 | |
| 
 | |
| </div>
 | |
| 
 | |
| 
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Solution
 | |
| <section id='solution'>
 | |
| 
 | |
| ```html
 | |
| <h1>Hello World</h1>
 | |
| <h2>CatPhotoApp</h2>
 | |
| <p>Hello Paragraph</p>
 | |
| ```
 | |
| 
 | |
| </section>
 |