2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								id: 587d781b367417b2b2512abb
							 
						 
					
						
							
								
									
										
										
										
											2021-07-05 12:27:02 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								title: Criar uma linha horizontal usando o elemento hr
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								challengeType: 0
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								videoUrl: 'https://scrimba.com/c/c3bR8t7'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								forumTopicId: 301049
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								dashedName: create-a-horizontal-line-using-the-hr-element
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --description--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-05 12:27:02 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Você pode usar a tag `hr`  para adicionar uma linha horizontal do tamanho da largura do elemento em que ele está contido. Esse elemento pode ser usado para definir uma mudança no tópico ou para separar visualmente grupos de conteúdo.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --instructions--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-05 12:27:02 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Adicione a tag `hr`  abaixo do elemento `h4`  que contém o título do cartão.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-05 12:27:02 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**Observação:** no HTML, a tag `hr`  fecha em si mesma e, portanto, não precisa de uma tag de fechamento separada.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --hints--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-05 12:27:02 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								O seu código deve ter uma tag `hr` .
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								assert($('hr').length == 1);
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-07-05 12:27:02 +05:30 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								A tag `hr`  deve ficar entre o título e o parágrafo.
							 
						 
					
						
							
								
									
										
										
										
											2021-06-15 16:21:20 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								assert(code.match(/< \/h4 > \s*?< hr ( > |\s*?\/>)\s*?< p > /gi));
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --seed--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## --seed-contents--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```html
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< style > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  h4 {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    text-align: center;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    height: 25px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  p {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    text-align: justify;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .links {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    text-align: left;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    color: black;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .fullCard {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    width: 245px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    border: 1px solid #ccc ;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    border-radius: 5px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    margin: 10px 5px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    padding: 4px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .cardContent {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    padding: 10px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .cardText {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    margin-bottom: 30px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / style > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "fullCard" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < div  class = "cardContent" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  class = "cardText" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < h4 > < s > Google< / s > Alphabet< / h4 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < p > < em > Google was founded by Larry Page and Sergey Brin while they were < u > Ph.D. students< / u >  at < strong > Stanford University< / strong > .< / em > < / p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  class = "cardLinks" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < a  href = "https://en.wikipedia.org/wiki/Larry_Page"  target = "_blank"  class = "links" > Larry Page< / a > < br > < br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < a  href = "https://en.wikipedia.org/wiki/Sergey_Brin"  target = "_blank"  class = "links" > Sergey Brin< / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --solutions--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```html
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< style > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  h4 {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    text-align: center;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    height: 25px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  p {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    text-align: justify;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .links {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    text-align: left;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    color: black;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .fullCard {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    width: 245px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    border: 1px solid #ccc ;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    border-radius: 5px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    margin: 10px 5px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    padding: 4px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .cardContent {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    padding: 10px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  .cardText {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    margin-bottom: 30px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / style > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "fullCard" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < div  class = "cardContent" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  class = "cardText" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < h4 > < s > Google< / s > Alphabet< / h4 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < hr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < p > < em > Google was founded by Larry Page and Sergey Brin while they were < u > Ph.D. students< / u >  at < strong > Stanford University< / strong > .< / em > < / p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < div  class = "cardLinks" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < a  href = "https://en.wikipedia.org/wiki/Larry_Page"  target = "_blank"  class = "links" > Larry Page< / a > < br > < br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < a  href = "https://en.wikipedia.org/wiki/Sergey_Brin"  target = "_blank"  class = "links" > Sergey Brin< / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```