• Hello,

    I am learning how to make a Word Press theme from scratch. In the tutorial it asks me to add the below code. It’s supposed to be an opening HTML tag with attributes that will make the type of page I’m creating more apparent to the browser.

    However I don’t use Internet Explorer. Windows 10 replaced IE with Microsoft Edge. I also use Firefox more than any other browser. What should I replace IE 8 with?

    <!–[if IE 8]>
    <html id=”ie8″ <?php language_attributes(); ?>>
    <![endif]–>
    <!–[if !(IE 8) ]><!–>
    <html <?php language_attributes(); ?>>
    <!–<![endif]–>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The code with IE 8 is meant for the people who will see the website( using your theme) in old IE8 browser. Though you are not using IE8, you have to take of all browsers so that your theme looks good in all browser.

    Thread Starter ComputerColumbus

    (@computercolumbus)

    All right, and how do I include all browsers? What kind of code will I use? What do I replace IE 8 with?

    Thread Starter ComputerColumbus

    (@computercolumbus)

    I guess my question is, what are the other browser codes called? For example, FireFox’s latest version is called FireFox 38.0.5. Do I replace IE 8 with FireFox 38.0.5?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTML Tag with Browser Attributes’ is closed to new replies.