Why include_once including only HTML file not css? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why include_once including only HTML file not css?

include_once"../registration/registration/registration_page.php"; Its include only HTML part.CSS part was not applied on page.php. While opening it separately it working fine.

9th May 2020, 12:20 PM
Faisal Rahman
Faisal Rahman - avatar
1 Answer
0
to css file u need to use link tag in html include ,include_once ,require and require_once is used with php files to ur css file: <link rel="stylesheet" href="part.css">
11th May 2020, 4:20 PM
Ahmad Al-Zreqat
Ahmad Al-Zreqat - avatar