Displaying text

They have: 2 posts

Joined: Jul 2004

Hi everyone!

I want to display a text on my web site. I also want to include links to other sites in this text. But I also want to separate HTML and text. I don't want to see this text among HTML or PHP tags.
How did you solve this problem (if it is a problem)?

He has: 1,380 posts

Joined: Feb 2002

uhhh what?

Yianni's picture

He has: 17 posts

Joined: Jul 2004

<html>

<head>
<title>Text</title>
</head>

<body>

Look, there is some text on this page! There's also a
<a href="#"><u>Link</u></a> going absolutely nowhere! And more text.

</body>

</html>

I'm guessing that's what you want. Confused

Edit - Line too long.

He has: 1,380 posts

Joined: Feb 2002

Oh wait...If you're talking about keeping data separate from markup...two things. Use CSS to position your elements, and use something like PHP for your content (works with dB). Like so:

<?php
$title
= 'Title';
$text = 'this is the body of the text.  read me and know thyself';

<
html>
<
head>
<
title>=$title</title>
</
head>
<
body>
<
p>=$body</p>
</
body>
</
html>
?>

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.