2 اخطاء شائعة يقع فيها المبتدئون بتعلم برمجة الويب

<html><head>
<title>rob's bbc</title>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body{
margin:0;
font-family:arial,helvetica,sans-serif;
}
#topbar{
background-color:#7A0000;
width:100%;
height:45px;
color:white;
}
.fixedwidth{
width:1050px;
margin:0 auto;
}
#logodiv{
padding-top:4.5px;
float:left;
border-right:1px solid #990000;
padding-right:10px;
}
#signindiv{
font-weight:bold;
padding:4px 80px 10px 50px;
font-size:0.9em;
float:left;
border-right:1px solid #990000;
}
#signindiv img{
position:relative;
top:6px;
}
#topmenudiv{
float:left;
}
#topmenudiv ul{
margin:0;
padding:0;
}
#topmenudiv li{
float:left;
border-right:1px solid #990000;
font-weight:bold;
list-style:none;
font-size:0.9em;
height:100%;
padding:16px 20px 12px 20px;
}
#searchdiv{
float:left;
padding:10px 0 0 10px;
}
#searchdiv input{
height:25px;
border:none;
font-size:0.9em;
padding-left:10px;
background-image:url("images/magnify.png");
background-repeat:no-repeat;
background-position:right center;
}
#newsbar{
background-color:#990000;
width:100%;
height:90px;
color:white;
}
#newsbar p{
margin:0;
padding:0;
padding-top:13px;
float:left;
}
#newsheader{
font-size:3em;
}
#uk{
font-size:0.7em;
padding-left:20px;
}
#rss{
float:right;
padding-top:41.5px;
}
#rss img{
height:14px;
}
#topicmenu{
background-color:#420C11;
}
#topicmenu ul{
background-color:#3E0C0D;
padding:5px 0 0 5px;
margin:0;
height:20px;
}
#topicmenu li{
list-style:none;
font-size:0.8em;
border-right:1px solid #990000;
float:left;
background-color:none;
padding:0 6px 0 6px;
color:white;
}
.selected{
background-color:#EDEDED;
color:#66466;
height:14px;
position:relative;
top:-4.20px;
padding:5px !important;
}
#contant{
width:100%;
color:#535353;
font-size:0.75em;
}
.date{
font-weight:bold;
}
h1{
color:#1F4F82;
font-size:2.5em;
}
.headlineimage{
float:left;
}
.newsitem{
position:relative;
left:10px;
top:-15px;
width:280px;
float:left;
font-size:1.1em;
}
.newsitem a{
color:#1F4F82;
}
a{
text-decoration:none;
}
a:hover{
text-decoration:underline;
}
.video{
background-image:url("images/ss.png");
background-repeat:no-repeat;
background-position:left center;
padding-left:25px;
}
.links{
line-height:1.5em;
}
.sound{
background-image:url("images/sound.png");
background-repeat:no-repeat;
background-position:left center;
padding-left:25px;
}
#watchlisten{
background-color:#EEEEEE;
float:right;
width:380px;
position:relative;
top:-80px;
}
.boxes {
float:right;
margin:20px 10px 0 0;
}
h2{
color:#505050;
margin:10px 0 10px 10px;
font-size:1.8em;
}
.leftarrow{
float:left;
border-right:1px solid white;
}
.wlblock {
float:left;
background-color:#D1700E;
width:177px;
height:155px;
border-right:1px solid white;
}
.wlblock a {
color:white;
}
.wlblock p {
margin:9px 10px 13.8px 10px;
}
</style>
<script style="display: none;">var tvt = tvt || {}; tvt.captureVariables = function(a){for(var b=
new Date,c={},d=Object.keys(a||{}),e=0,f;f=d[e];e++)if(a.hasOwnProperty(f)&&"undefined"!=typeof a[f])try{var g=[];c[f]=JSON.stringify(a[f],function(a,b){try{if("function"!==typeof b){if("object"===typeof b&&null!==b){if(b instanceof HTMLElement||b instanceof Node||-1!=g.indexOf(b))return;g.push(b)}return b}}catch(H){}})}catch(l){}a=document.createEvent("CustomEvent");a.initCustomEvent("TvtRetrievedVariablesEvent",!0,!0,{variables:c,date:b});window.dispatchEvent(a)};window.setTimeout(function() {tvt.captureVariables({'dataLayer.hide': (function(a){a=a.split(".");for(var b=window,c=0;c<a.length&&(b=b[a[c]],b);c++);return b})('dataLayer.hide'),'gaData': window['gaData'],'dataLayer': window['dataLayer']})}, 2000);</script></head>
<body data-gr-c-s-loaded="true">
<div id="container">
<div id="topbar">
<div class="fixedwidth">
<div id="logodiv">
<img src="images/bbclogo.png">
</div>
<div id="signindiv">
<img src="images/signin.png" width="22px"> Sign In
</div>
<div id="topmenudiv">
<form>
<ul>
<li> News </li>
<li> sport </li>
<li> weather </li>
<li> iplayer </li>
<li> radio </li>
<li> more... </li>
</ul>
</form>
</div>
<div id="searchdiv">
<input type="text" value="search">
</div>
</div>
</div>
<div class="break"></div>
<div id="newsbar">
<div class="fixedwidth">
<p id="newsheader">NEWS<span id="uk">UK</span></p>
<div id="rss">
RSS<img src="images/rss.png">
</div>
</div>
</div>
<div class="break"></div>
<div id="topicmenu">
<div class="fixedwidth">
<div class="break"></div>
<div id="topicmenu">
<ul>
<li>Home </li>
<li>Word </li>
<li class="selected">UK </li>
<li> England</li>
<li>N.Ireland </li>
<li>Scotland </li>
<li>Wales </li>
<li>Business </li>
<li>Politics </li>
<li>Health </li>
<li>Education </li>
<li>Sci/Environment </li>
<li>Technology </li>
<li style="border-right:none">Entertainment&Arts </li>
</ul>
</div>
</div>
</div>
<div class="break"></div>
<div id="contant">
<div class="fixedwidth">
<p><span class="date">2 Aprill 2014</span> last updated at 15:23</p>
<h1> Pollution to spread across England</h1>
<img class="headlineimage" src="images/headline.png" width="384px" height="216px">
<div class="newsitem">
<p>Health warnings have been issued by the government as pollution spreading across England is forecast to hit high levels.</p>
<p class="links"><a class="video" href="">Why are pollution levels so high?</a>
<a class="video" href="">Saharan dust visible on cars</a><br>
<a class="video" href="">How saharan dust reached the UK</a><br>
<a href="">What will pollution do to us?</a><br>
<a class="sound" href="">Air pollution a 'serious issue'</a>
</p>
</div>
<div id="watchlisten">
<img src="images/boxes.png" class="boxes">
<h2> Watch/Listen</h2>
<img src="images/leftarrow.png" class="leftarrow">
<div class="wblockwrapper"><div class="xscroller"><div class="wlblock">
<img src="images/20.png">
<p><a href="">Titanic letter could fetch £100,000</a></p>
</div><div class="wlblock">
<img src="images/2020.png">
<p><a href="">The housing estate delivering its own mail</a></p>
</div><div class="wlblock">
<img src="images/20.png">
<p><a href="">Titanic letter could fetch £100,000</a></p>
</div></div></div>
<img src="images/leftarrow.png" class="rightarrow"></div>
</div>
</div>
</div>
</body></html>
تحدثنا في حلقة سابقة عن اخطاء اخرى يمكنك الاطلاع عليها هنا
https://hub.anbilarabi.com/d/154-1