2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								id: 61fd67a656743144844941cb
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								title: Step 4
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								challengeType: 0
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								dashedName: step-4
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --description--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Screen readers announce HTML elements based on the document flow. We will eventually want the balance sheet to have a heading of "Balance Sheet" and a subheading of "AcmeWidgetCorp". However, this order does not make sense if announced by a screen reader.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Give your existing `span`  the `class`  attribute set to `flex` , and add two `span`  elements within it. Give the first the text `AcmeWidgetCorp` . Give the second the text `Balance Sheet` . You will use CSS to reverse the order of the text on the page, but the HTML order will make more sense for a screen reader.
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --hints--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Your existing span element should have the `class`  attribute set to `flex` .
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								assert(document.querySelector('h1')?.children?.[0]?.classList?.contains('flex'));
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Your existing `span`  element should have two new `span`  elements within it.
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								assert(document.querySelector('.flex')?.children?.[0]?.localName === 'span');
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								assert(document.querySelector('.flex')?.children?.[1]?.localName === 'span');
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Your new `span`  elements should not have a `class`  attribute.
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								assert(!document.querySelector('.flex')?.children?.[0]?.classList?.length);
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								assert(!document.querySelector('.flex')?.children?.[1]?.classList?.length);
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Your first new `span`  element should have the text `AcmeWidgetCorp` .
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								assert(document.querySelector('.flex')?.children?.[0]?.textContent === 'AcmeWidgetCorp');
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Your second new `span`  element should have the text `Balance Sheet` .
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								assert(document.querySelector('.flex')?.children?.[1]?.textContent === 'Balance Sheet');
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# --seed--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## --seed-contents--
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```html
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<!DOCTYPE html> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< html > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < head > 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < meta  charset = "UTF-8" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < meta  name = "viewport"  content = "width=device-width, initial-scale=1.0" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-03-14 15:54:43 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < title > Balance Sheet< / title > 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < link  rel = "stylesheet"  type = "text/css"  href = "./styles.css" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  < / head > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < body > 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < main > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < section > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < h1 > 
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								--fcc-editable-region--
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								          < span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < / span > 
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								--fcc-editable-region--
							 
						 
					
						
							
								
									
										
										
										
											2022-02-18 10:15:16 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < / h1 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < / section > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / main > 
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 14:20:34 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  < / body > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / html > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```css
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```