Q Conditional comments

Posted in: Newspaper
Post count: 285

Hi guys,

After doctype declaration we have 3 conditional comments:

<!--[if IE 8]>    <html class="ie8" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="es-ES" prefix="og: http://ogp.me/ns#"> <!--<![endif]-->

My question is: ¿I can declare the same language for the two first conditional statements for both browsers [if IE 8] & [if IE 9] without broke the class?

or the third one overrides the first two, and I don’t have to do anything?

Thanks!

Post count: 22421

You do not have to do anything about the comments. You can lave the first 2 on lang=”en” without issues.

Thank you!

Post count: 285

Hi Bogdan
But, mi q was:

¿I can declare the same language for the two first conditional statements for both browsers [if IE 8] & [if IE 9] without broke the class?

My entire site is served in Spanish es-ES.

Post count: 22421

Hello,

You can change these if you want to as i do not think it will affect the site. you can change it like so:
https://www.snip2code.com/Snippet/453845/Agregar-class-para-IE-en-el-tag-html

Thank you!

Post count: 285

🙂 🙂 🙂 , just look at the same before (GitHub)

Thank you Bogdan, I’ll stay as I am (I think declare left to right is a little bit old).

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.