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 trial

PHP Build a Simple PHP Application Getting Started with PHP Your First PHP File

I don't get it

I have tried what I believed to be the correct code, however, miserably failed at it after many attempts and approaches I have come to the conclusion that I need further assistance

Hi Joey,

Can you post one of your attempts?


2 Answers

ryan champin
ryan champin
16,836 Points

you have to close your h1 bracket...right now you have two opening brackets

Logan R
Logan R
22,989 Points

Just to clarify:

Your code: <h1><h1> Correct code: <h1></h1>

You need to add a backslash in the second <h1>

Andres Altuve
Andres Altuve
16,274 Points

"Here's some code from a basic HTML file. Add a PHP command that would display the name of our website, Shirts 4 Mike, inside the H1 tag. Remember to use an opening PHP tag, a semi-colon, and a closing PHP tag as part of the command."

Inside the H1 tag write:

<!DOCTYPE html>
    <h1><?php echo "Shirts 4 Mike"; ?><h1>