What is the limitation of HTML in accessing files from outside the webroot in PHP?

HTML alone cannot access files outside the webroot due to security restrictions. To access files outside the webroot in PHP, you can use PHP functions like `file_get_contents()` or `fopen()` with the appropriate file path. This allows PHP to read files from any location on the server, regardless of the webroot restrictions.

$file_path = '/path/to/file/outside/webroot.txt';
$file_contents = file_get_contents($file_path);

echo $file_contents;