0

I created a html website with css on my computer and it works pefect on it. But i wanted it to work on android too, so i created a folder and just moved the files in it. As i opened the html file, the css file didn't work.

<html lang="en" dir="ltr">
  <head>
    <link rel="stylesheet" type="text/css" href="style.css" media="screen">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="description" content="Home">
    <meta name="keywords" content="Home">
    <meta name="author" content="Censored">
    <title>Home</title>
  </head>

An image from the html & css files folder

  • 1
    If you hava a website then why can't you use android webview? – Usama Altaf Jun 23 '21 at 10:05
  • Browsers on android have security concerns with local HTML files; I was frustrated by this recently myself - basically you need a webserver to host the file. Means you need network available. – flowtron Jun 23 '21 at 10:17
  • It depends on how you open the html file. You did not tell us what you did. – blackapps Jun 23 '21 at 10:51

1 Answers1

0

The webview approach should work, but it means you'll have to write up an app for every scenario.

Load HTML file into WebView

flowtron
  • 854
  • 7
  • 20