For an SLASH it was not A CODE

Tell us what’s happening:

Hi guys I have noticed that by not placing a simple dot or “-” in the code, it does not work. Is there any way to have an “autocorrect” like the one we use on phones?

[image]

Your code so far


<style>
h1{
 font-size: 68px;
}
h2{
 font-size: 52px;
}
h3{
 font-size: 40px;
}
h4{
 font-size: 32px;
 }
h5{
 font-size: 21px;
}
h6{
 font-size: 14px;
}

</style>
<h1>This is h1 text</h1>
<h2>This is h2 text</h2>
<h3>This is h3 text</h3>
<h4>This is h4 text</h4>
<h5>This is h5 text</h5>
<h6>This is h6 text</h6>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36.

Challenge: Set the font-size for Multiple Heading Elements

Link to the challenge:

Not autocorrect, but highlight the errors. (jsfiddle)

https://jsfiddle.net/a6r0vjw9/

There is also a “tidy button” that makes it looks nicer.

1 Like

If you use a sytax-aware text editor, it may be able to warn you when you use some invalid code, but because characters like a dot have a specific meaning they can’t really be autocorrected in.

A significant portion of writing code is paying close attention to detail.

3 Likes

Thank you Silbert!! :smile: :smile: :smiley: :mechanical_arm:

Ok! So the big part in all of this consist in be focused right? Well im good in that but, sometimes its heavy hahah…

Silbert, one question: it is always necesary use the JSFIDDLE on-line? or it does got an off-line version?

I am not aware of an old fashion desktop version :slight_smile: