-1
I’m taking my first steps in html and bumped into my first puzzle. In this small "portfolio" that I am doing I tried to add the image of a square , I had already done some tests and worked very well ,but when trying to add the figure in the code of this specific exercise the figure does not appear .... I’ve tried to put it in other positions in the code and so far it hasn’t worked,I really appreciate if someone can give me a strength the code follows below:
body {
background-color: green;
}
.square {
height: 20px;
width: 20px;
background-color: #555;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nicolas Amad</title>
</head>
<body>
<!--Cabeçalho da página-->
<div>
<center>
<img width="300px" height="300" src="Perfil.jpeg">
<hr/>
<h1 style="color:white;"><big>Nicolas Amad</big></h1>
</body>
<hr/>
<div class="square"></div>
</center>
</div>
<!--Auto-Descrição-->
<h2 style="color:white;"><u>Quem sou eu?</u></h2>
<p style="color:white;"> Estudante de Engenharia Mecânica e Análise de Sistemas ,apaixonado pelo poder de criação que a tecnologia oferece, atualmente muito interesado em Desenvolvimento Web/Mobile.</p>
<br><br>
<!--Descrição de Habilidades--->
<h3 style="color:white;"><u><b>Skills</b></u></h3>
<table>
<tr>
<td style="color:white;"><b>HTML</b></td>
<td>
<div class="square"></div>
</td>
</tr>
</table>
</body>
</html>
Your HTML has two elements
<body>
. The element<body>
represents the content of a document HTML. only one is allowed<body>
per document.– Augusto Vasques
Thank you Augusto, solved my problem perfectly ,still confusing me a lot in some details.
– Nicolas Amad