Error: CSS Overview - Incorrect Syntax Accepted


#1

CSS: An Overview, Lesson 10

As I was completing the lesson, I noticed a small mistake as soon as I clicked the Save & Submit button.
Here is the code for the CSS stylesheet that I submitted:

h3 {
font-family: Verdana;
color: blue;
}

p {
font-family: Garamond;
font-size: 16px;
{

Notice how the brace closing the second block is backwards, yet the code was successfully submitted.


#2

@driuft,
What you have experienced is an =auto-correct= which Browser's can do
during HTML-Document load....

It would interesting to know which Browser and operating sytem you were using....


#3

probably because it assumed it wasn't closed and submitted it right because you don't have to close the tags if it is the last one. You should close them though because when your actually coding it won't come up if you do that unless your still working on it


#4

@driuft,

google search
== discussions / opinions ==
HTML browser HTML auto correction during load site:stackoverflow.com
for instance
http://stackoverflow.com/questions/14256084/why-is-my-incorrect-dom-structure-auto-corrected-after-jquery-dom-manipulation

google search
== the Book ==
jquery [your question] site:developer.mozilla.org
CSS [your question] site:developer.mozilla.org
javascript [your question] site:developer.mozilla.org
[your question] site:jquery.com
[your question] site:getbootstrap.com

== discussions / opinions ==
jquery [your question] site:stackoverflow.com
CSS [your question] site:stackoverflow.com
javascript [your question] site:stackoverflow.com

== guidance ==
www.crockford.com
[your question] site:crockford.com
- - http://javascript.crockford.com/code.html
- - http://javascript.crockford.com/survey.html

http://stackoverflow.com/questions/1795438/load-and-execution-sequence-of-a-web-page
http://www.w3schools.com/jquery/trysel.asp


#5

i might be wrong though


#6

Thanks for the feedback guys, I'm sure it is just a browser error then.

@leonhard.wettengmx.n, to answer your question, I was using the latest version of Mozilla Firefox on Linux Mint 17.3.