+ 1
Printing tags in html
What if I wanted to print a tad in html for example say i wanted to teach someone how to use a specific tag like<html> How do you do that?
4 Réponses
+ 4
you can write < and > for < and >. So <html> will be written as <html>
+ 2
cristalLysard you can't use PHP in HTML, you have to have special compiler and file must have .php type.
+ 1
It's kind of stretch, but you could use php:
<?php
echo("<html>");
?>
This would work with js as well
0
Yeah you're right, I'm too used to just save webpages as .php files to include headers... sorry about that 😅