CSS * Selector
Rozwiązanie podane przez @niezalogowany - działa. Ponadto masz niedomknięty tag <a>
<header style="background-color: deepskyblue;">
<a href="index.html">
<img src="zdj/MIL_KOMP.png">
<a href="index_logowanie.html">Logowanie</a>
</a>
</header>
Domyślam się, że o taki efekt Tobie chodzi
<header style="background-color: deepskyblue;">
<a href="index.html">
<img src="zdj/MIL_KOMP.png">
</a>
<a href="index_logowanie.html">Logowanie</a>
</header>
Biorąc pod uwagę podane przez @niezalogowany propozycje zmian w kodzie i
można to zapisać np. tak
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
...
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.header {
background-color: deepskyblue;
}
</style>
</head>
<body>
<header class="header">
<a href="index.html"><img src="zdj/MIL_KOMP.png"></a>
<a href="index_logowanie.html">Logowanie</a>
</header>
...
</body>
</html>