| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | --- | 
					
						
							|  |  |  | id: bad87fee1348bd9aec908846 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | title: Creare un titolo con Bootstrap | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | challengeType: 0 | 
					
						
							|  |  |  | forumTopicId: 16812 | 
					
						
							|  |  |  | dashedName: create-a-bootstrap-headline | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --description--
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Ora costruiamo qualcosa da zero per fare pratica con le nostre abilità HTML, CSS e Bootstrap. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Costruiremo un "terreno di gioco" che presto useremo con le nostre sfide jQuery. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Per iniziare, crea un elemento `h3`, con il testo `jQuery Playground`. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Colora il tuo elemento `h3` con la classe Bootstrap `text-primary` e centralo con la classe `text-center` Bootstrap. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | # --hints--
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Dovresti aggiungere un elemento `h3` alla tua pagina. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert($('h3') && $('h3').length > 0); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Il tuo elemento `h3` dovrebbe avere un tag di chiusura. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert( | 
					
						
							|  |  |  |   code.match(/<\/h3>/g) && | 
					
						
							|  |  |  |     code.match(/<h3/g) && | 
					
						
							|  |  |  |     code.match(/<\/h3>/g).length === code.match(/<h3/g).length | 
					
						
							|  |  |  | ); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Il tuo elemento `h3` dovrebbe essere colorato applicando la classe `text-primary` | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert($('h3').hasClass('text-primary')); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Il tuo elemento `h3` dovrebbe essere centrato applicando la classe `text-center` | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert($('h3').hasClass('text-center')); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 21:42:30 +05:30
										 |  |  | Il tuo elemento `h3` dovrebbe avere il testo `jQuery Playground`. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert.isTrue(/jquery(\s)+playground/gi.test($('h3').text())); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --seed--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## --seed-contents--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```html | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --solutions--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```html | 
					
						
							|  |  |  | <h3 class="text-primary text-center">jQuery Playground</h3> | 
					
						
							|  |  |  | ``` |