Ich lerne derzeit das aufbauen einer Website mit CSS und HTML. Die Grundlagen von Tags in HTML und von attributen in CSS kenne ich schon.
Ich habe anhand von Div Containern versucht eine sehr simple Website zu gestalten.
Hier meine Codes:
HTML Code:
Code:
<!DOCTYPE html> <html> <head> <title>Website Template</title> <meta charset="ISO-8859-1"> <meta name="description" content=""> <meta name="author" content=""> <meta name="keywords" content=""> <meta name="generator" content="Webocton - Scriptly (www.scriptly.de)"> <link href="css/main.css" type="text/css" rel="stylesheet"> </head> <body> <div id="container"> <div id="header"><h1>Header</h1></div> <div id="navi">Navigation</div> <div id="content"><br> <br><br><br>Wassssss <b> geht </b> <i> ab !</i> </div> <div id="footer">Footer</div> </div> </body> </html>
Code:
body { background-color:black; } #container { width:1000px; height:800px; margin-top:100px; margin-left: auto; margin-right: auto; background-color:white; position: static; } #header { width:1000px; height:200px; background-color:red; text-align: center; font-family: Courier; font-size:30px; color: #00FFFF; } #navi { width:200px; height:550px; background-color:blue; } #footer { width:1000px; height:50px; background-color: yellow; } #content { width:800px; height:550px; margin-left:200px; margin-top:-550px; background-color: orange; text-align: justify; position:static; }
Die Website an sich wird ohne Fehler angezeigt.
Aufgebaut ist sie so:
Ich wollte fragen ob der Code sauber ist oder ob man was anders machen könnte?
Mfg