1
I have a doubt here.
I have the following HTML code:
<html>
<head>
<?php
$logado = 'my name';
?>
<link rel="stylesheet" type="text/css" href="cabecalho.css"/>
<nav id="menu">
<ul>
<yp><?php echo '<p>'.$logado.'</p>'; ?></yp>
<li><a href="/projetos/index.php">Home</a></li>
<li><a href="/projetos/historico.php">Histórico</a></li>
<li><a href="#">Em breve</a></li>
<li><a href="#">Em breve</a></li>
<li><a href="#">Em breve</a></li>
</ul>
</nav>
</head>
<body>
</body>
</html>
As you can see I’m calling the page features by a Css file
I was wondering if it’s possible to assemble a file that contains
<nav>
<ul>
<yp><?php echo '<p>'.$logado.'</p>'; ?></yp>
<li><a href="/projetos/index.php">Home</a></li>
<li><a href="/projetos/historico.php">Histórico</a></li>
<li><a href="#">Em breve</a></li>
<li><a href="#">Em breve</a></li>
<li><a href="#">Em breve</a></li>
</ul>
</nav>
and that I insert into the page in a similar way with css?
Type:
<html>
<head>
<?php
$logado = 'my name';
?>
<link rel="stylesheet" type="text/css" href="cabecalho.css"/>
<link chamar 'nav' aqui dentro/>
</head>
<body>
</body>
</html>
Thank you!
I could not understand what you want, could explain better?
– Rafael Augusto
How confusing. Nothing made much sense, but who knows would be something that the
include
of PHP resolvesse?– Woss