PHP  / HTML Formating

wantabe2
wantabe2 used Ask the Experts™
on
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

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
AnilData Manager

Commented:
<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>
AnilData Manager

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

A>.
AnilData Manager

Commented:
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>
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

AnilData Manager

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

Author

Commented:
<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

Data Manager
Commented:
By adding &nbsp as many times as you need it,


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


Not very happy with the syntax but hope you are happy!
http://validator.w3.org/check  is the reference.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial