Avatar of wantabe2
wantabe2
Flag for United States of America asked on

PHP / HTML Formating

How can I edit this code so it will look like this in a browser?

LOGOUT     HOME

Instead of :

LOGOUT
HOME
<body>
<h2>Welcome <?php echo $login_session; ?></h2> 
<b> <p><a href="logout.php"><h5>LOG OUT</a></p></h5> 
<a href="http://mysite/hr2/welcome.php"><h5>HOME</h5></a>
</body>

Open in new window

PHPHTMLJScript

Avatar of undefined
Last Comment
Anil

8/22/2022 - Mon
Anil

<body>
<h2>Welcome <?php echo $login_session; ?></h2>
<b><p><a href="logout.php"><h5>LOG OUT</a></h5> </p>
<a href="http://mysite/hr2/welcome.php"><h5>HOME</h5></a>
</body>
Anil

You opened an <h5> tag but inside a <p> tag but closed the <p> tag before  closing the <h5> tag.

A>.
Anil

To answer your question:

<body>
<h2>Welcome <?php echo $login_session; ?></h2>
<b><p><h5><a href="logout.php">LOG OUT</a> <a href="http://mysite/hr2/welcome.php">HOME</a></h5></p>

</body>
Your help has saved me hundreds of hours of internet surfing.
fblack61
Anil

Please use http://validator.w3.org/check for markup validation but I do not know your requirements.
wantabe2

ASKER
<body>
<h2>Welcome <?php echo $login_session; ?></h2>
<b><p><h5><a href="logout.php">LOG OUT</a> <a href="http://mysite/hr2/welcome.php">HOME</a></h5></p>

</body>  

The above code works but how can I get a space or two between LOGOUT and HOME

Currently it looks like  LOGOUTHOME

ASKER CERTIFIED SOLUTION
Anil

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.