Žymų atributai PHP
Naudodami žymą a
atvaizduokime nuorodą ekrane:
<?php
echo '<a href="index.php">nuoroda</a>';
?>
Tegul dabar nuorodos adresas ir tekstas yra saugomi atskiruose kintamuosiuose:
<?php
$href = 'index.php';
$text = 'nuoroda';
echo '<a href="' . $href . '">' . $text . '</a>';
?>
Naudodami žymą img
atvaizduokite kokią nors paveikslėlį ekrane.
Naudodami žymą input
atvaizduokite įvesties lauką su kokiu nors tekstu ekrane.
Naudodami žymą textarea
atvaizduokite daugiaeilį įvesties lauką
su kokiu nors tekstu ekrane.