@@ -39,10 +39,12 @@ <h1>Anatomy of a Friendly Error Message</h1>
3939 < div class ="anatomy__zone-tag "> Explain & Suggest - Title & Summary</ div >
4040 </ div >
4141 < div class ="anatomy__zone-body ">
42- < div class ="pfem__title "> This variable doesn't exist yet</ div >
43- < div class ="pfem__summary "> Your code uses the variable "< em > firstname</ em > ", but it hasn't been created
42+ < p class ="pfem__title "> This variable doesn't exist yet</ p >
43+ < p class ="pfem__summary "> Your code uses the variable < code class ="pfem__var "> firstname</ code > , but it
44+ hasn't been created
4445 yet.
45- Check line 2. If you meant to print the text < em > firstname</ em > , put it in double quotes.</ div >
46+ Check < span class ="pfem__line "> line 2</ span > . If you meant to print the text < code
47+ class ="pfem__var "> firstname</ code > , put it in double quotes.</ p >
4648 </ div >
4749 </ div >
4850
@@ -53,9 +55,10 @@ <h1>Anatomy of a Friendly Error Message</h1>
5355 < div class ="anatomy__zone-tag "> Hint & Direct - Why it happened</ div >
5456 </ div >
5557 < div class ="anatomy__zone-body ">
56- < div class ="pfem__why "> Without speech marks Python treats < em > firstname</ em > as a variable, and this
58+ < p class ="pfem__why "> Without speech marks Python treats < code class ="pfem__var "> firstname</ code > as a
59+ variable, and this
5760 variable
58- does not exist yet.</ div >
61+ does not exist yet.</ p >
5962 </ div >
6063 </ div >
6164
@@ -67,7 +70,7 @@ <h1>Anatomy of a Friendly Error Message</h1>
6770 </ div >
6871 < div class ="anatomy__zone-body ">
6972 < ul class ="pfem__steps ">
70- < li > If it is meant to be text, put speech marks around < em > firstname</ em > .</ li >
73+ < li > If it is meant to be text, put speech marks around < code class =" pfem__var " > firstname</ code > .</ li >
7174 < li > If it is meant to be a variable, make it first (for example: < code > firstname = "Jo"</ code > ).</ li >
7275 < li > Check spelling and capital letters.</ li >
7376 </ ul >
@@ -81,8 +84,11 @@ <h1>Anatomy of a Friendly Error Message</h1>
8184 < div class ="anatomy__zone-tag "> Solve - Suggested fix</ div >
8285 </ div >
8386 < div class ="anatomy__zone-body ">
84- < pre class ="pfem__patch "> firstname = "Jo"
85- print("Hello, " + firstname)</ pre >
87+ < div class ="pfem__patch ">
88+ < p class ="pfem__patch-label "> Suggested fix</ p >
89+ < pre class ="pfem__patch-code "> < code > firstname = "Jo"
90+ print("Hello, " + firstname)</ code > </ pre >
91+ </ div >
8692 </ div >
8793 </ div >
8894
0 commit comments