html - Unique Situation - Placing text next to other text without using CSS -


i have unique situation going explain best can!

i want output users in style so:

username:password

username2:password2

etc etc...

but cannot place text in paragraph <p>username:password</p>

i can so... <p>username:</p><p>password</p>

and can have seperate tags on username , password design ents looking so:

username:

password

i cannot use css whatsoever.

but able use type of html tags like! (span tags of course wouldn't work both separate still)

is there possible way rules have given you, have tried everything!

(i know sounds strange wanting have strange parser software can this)

here snippet of code show how works:

$ids = array(); $usernames = array(); $passwords = array(); while ($row = $getaccounts->fetch_assoc()) {    $ids[] = $row["id"];    $usernames[] = "<span>".$row["username"].":</span>";    $passwords[] = "<span>".$row["password"]."</span><br />"; } $activezero = implode(",",$ids); $username = "".implode("",$usernames).""; $password = "".implode("",$passwords).""; echo $activezero; 

i know looks absolutely stupid, trust me, way of getting program parse properly.

how can make output want using code have?

there options solve without using css, either use table or definition list, example.

    <table>          <thead>              <tr>                  <th>username</th>                  <th>password</th>              </tr>          </thead>          <tbody>              <tr>                  <td>alice:</td>                  <td>abc123</td>              </tr>              <tr>                  <td>bob:</td>                  <td>pa$$word</td>              </tr>          </tbody>      </table>                    <dl>        <dt>alice:</dt>        <dd>abc123</dd>        <dt>bob:</dt>        <dd>pa$$word</dd>      </dl>


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -