Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHassam Ali
1,853 PointsIssue with loading header file
Hello readers im trying to solve my issue since last night
When i creaat inc folder with file name header.php and copy all code of header over there like this
<html> <head> <title>Shirts 4 Mike</title> <link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:400,700" type="text/css"> <link rel="shortcut icon" href="favicon.ico"> </head> <body>
<div class="header">
<div class="wrapper">
<h1 class="branding-title"><a href="./">Shirts 4 Mike</a></h1>
<ul class="nav">
<li class="shirts"><a href="#">Shirts</a></li>
<li class="contact"><a href="#">Contact</a></li>
<li class="cart"><a href="#">Shopping Cart</a></li>
</ul>
</div>
</div>
<div id="content">
and include this file in main index.php file
like
<?php include('inc/header.php'); ?>
my css files and header file wont load and include
what should i do
i reinstall xampp folder loacation checked please someone can figure it out
thanks in advance
1 Answer
Maciej Mikulski
29,480 PointsIf this is the whole content of your header file you're missing some tags: <html> <head> ... </head> <body>
If it's unclear please post also your contact.php
Hassam Ali
1,853 PointsHassam Ali
1,853 Pointsi sort out the issue thanks