Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    203
    Thanks
    27
    Thanked 0 Times in 0 Posts

    What is this red font in "view source"?

    I was changing some things and checked my source code and saw this red font (I assume its telling me something is wrong). I know this website is literally 1000 years old, we cannot change it until the busy season is over but I am trying to satisfy Google for the time being with some viewport stuff.

    view-source:www.replacementcushioncompany.com

    -hb-red-code-jpg
    Last edited by taymag; Apr 15th, 2019 at 10:12 PM.

  2. #2
    Senior Coder deathshadow's Avatar
    Join Date
    Feb 2016
    Location
    Keene, NH
    Posts
    3,374
    Thanks
    4
    Thanked 483 Times in 471 Posts
    Now... don't take this the wrong way, but given the page took almost a minute to load, you've got bigger fish to fry than one code error. To the point that such a relic may in fact be hurting your business more than it helps.

    It's not showing the red like that in Vivaldi (a chrome-like) or Firefox. Did you fix the issue or is that specific to one browser?

    That said, if I had a body tag with that many classes on it -- REGARDLESS of when the page was written -- I would take that site down immediately on general principle. Doesn't matter when it was written, that's a disaster that NEEDS immediate attention. Static style in the markup, static scripting in the markup, endless pointless classes for nothing, span doing paragraph's job, span doing numbered headings job. "more emphasis" applied inside numbered headings for Christmas only knows what reason, tags that haven't existed since 1998 (like FONT) in a doctype that NEVER supported them...

    I know you need time to get it done, but that REALLY needs to be moved up the list if that is contributing in any way, shape, or form to your bottom line. You're not going to "satisfy Google" until pretty much all of it is tossed and started over. Viewport META and some band-aid fixes are not going to get the job done.
    “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.” – C.A.R. Hoare, The 1980 ACM Turing Award Lecture
    http://www.cutcodedown.com

  3. #3
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    11,277
    Thanks
    6
    Thanked 1,357 Times in 1,326 Posts
    Quote Originally Posted by deathshadow View Post
    It's not showing the red like that in Vivaldi (a chrome-like) or Firefox. Did you fix the issue or is that specific to one browser?
    I’m getting the red text in Firefox. It starts with the closing </head> tag. I suppose the actual culprit is the missing quotes around the attribute values – since you denote your code as being XHTML it has to adhere to XML standards in order to be considered “valid”. The W3C’s HTML validator shows the issues with the code.

  4. #4
    Regular Coder
    Join Date
    Mar 2012
    Posts
    203
    Thanks
    27
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by deathshadow View Post
    Now... don't take this the wrong way, but given the page took almost a minute to load, you've got bigger fish to fry than one code error. To the point that such a relic may in fact be hurting your business more than it helps.

    It's not showing the red like that in Vivaldi (a chrome-like) or Firefox. Did you fix the issue or is that specific to one browser?

    That said, if I had a body tag with that many classes on it -- REGARDLESS of when the page was written -- I would take that site down immediately on general principle. Doesn't matter when it was written, that's a disaster that NEEDS immediate attention. Static style in the markup, static scripting in the markup, endless pointless classes for nothing, span doing paragraph's job, span doing numbered headings job. "more emphasis" applied inside numbered headings for Christmas only knows what reason, tags that haven't existed since 1998 (like FONT) in a doctype that NEVER supported them...

    I know you need time to get it done, but that REALLY needs to be moved up the list if that is contributing in any way, shape, or form to your bottom line. You're not going to "satisfy Google" until pretty much all of it is tossed and started over. Viewport META and some band-aid fixes are not going to get the job done.
    The site is literally 10 years old I am aware of the old school code issues, its no surprise a website that looks this way has a span doing a paragraphs job. We have 20 projects going on, this website is way past due clearly but I am just asking about the red text cause I have never seen it viewing source code like that. That being said I do need to check the speed thing, it was loading under a half a second so something is screwed up. Whether or not everything else is hurting me or not I try and fix anything Google webmaster shows me, this was more of a "why is this red" post out of curiosity


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •