How Can I Detect IPAD MINI IN HTML5?

Recommended Answers

All 3 Replies

You could theoretically do something like check for the presence of "iPad" in the User Agent string and then check for the appropriate screen size, but it's almost always best to simply check for support for the feature or function you want to use instead of looking for a specific device.

It is not possible.

I don't think you can detect user agent using html. You have to use javascript.

But you can find the screen size that matches the ipad mini use @ media css query.

i.e.

@media screen and (max-width: 300px) {
    body {
        background-color: lightblue;
    }
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.