Why am I getting red underscores randomly appearing in my HTML source?


#1

e.g. upon editing a tag attribute:

Workaround: close and reopen the file.


#2

The <b> tag has been obsoleted in HTML5, use a span with a class or style applied to it instead


#3

The <b> tag has been obsoleted in HTML5

News to me. And to the W3C Validator http://i.imgur.com/9GGdghB.png

Regardless, as I said, the appearance is random. E.g. I just entered <b>asdasd</b> and got no red lines. Even after Save.


#4

in the w3c validator, you didn’t define it as the right doctype, so it showed a version before <b> was depricated


#5

“you didn’t define it as the right doctype, so it showed a version before <b> was depricated”

I defined it as a doctype https://www.w3.org/TR/html5/syntax.html#the-doctype that supports the <b> element https://www.w3.org/TR/html5/text-level-semantics.html#the-b-element. For a document that uses the <b> element. There’s nothing wrong about that.

And no, <b> has not been deprecated.

Regardless, the C9 editor shows a red underline in the same document with the same doctype on which w3C validator shows no errors.

I see nothing to suggest the red underline is a doc format error indicator at all. It could be just a text rendering fault.


#6

I see nothing to suggest the red underline is a doc format error indicator at all. It could be just a text rendering fault.

Corroborated by its appearance on white space: