I generally see the same sort of coding mistake, incredibly they are as a rule from the designer or a tutorial  from somebody who does not have extensive experience in development. Aesthetically your website could look fine however clean code that meets web standard is essential! I typically offer to fix them in the event that I seme the on a website I'm taking a screenshot at and the designer is constantly extremely grateful, so I thought it would be a smart thought as a feature of my Beginners GuideHTML/ CSS to make a list of the most widely recognized mistake I've run over and explain how to correct them.

HTML Code in CSS:

There shoudto be no HTML between <b:skin>...</b:skin> in your Blogger Template or in your style.css document on WordPress. HTML is for organizing your site, while CSS characterizes how those HTML components are shown. One sample I've seen a ton is the CSS for the Header gadget wrapped in HTML focus tags.
Incorrect Method
<center> 
.header-outer {  argin: $(header.margin.top) 0 $(header.margin.bottom) 0;
  background: $(header.background.color) $(header.background.gradient) repeat scroll 0 0;}
.Header h1 {font: $(header.font); color: $(header.text.color);text-shadow: 0 0 $(title.shadow.spread) #000000;margin-top:20px;padding:10px;}
</center>
Correct Method
<center>
.header-outer { margin: $(header.margin.top) 0 $(header.margin.bottom) 0;
 background: $(header.background.color) $(header.background.gradient) repeat scroll 0 0;}
.Header h1 {font: $(header.font);color: $(header.text.color);text-shadow: 0 0 $(title.shadow.spread) #000000;margin-top:20px;padding:10px; text-align: center;}
</center>
Another mistake here is that center tagsare deteriorated and shouldn't be utilized by any stretch of the imagination. It's causes a wide range of issues, can show components distinctively in different browser and build page load time.

Link Tag is closed incorrectly:

The link tag calls an external source (font, css file, javascript file, etc) into your design code. It is located in the head of your template (between <head> and </head>)
Incorrect Method
<link href=' ' rel='stylesheet' type='text/css'></link>
Correct Method
<link href='' rel='stylesheet' type='text/css'>

Missing or extra characters:

In your CSS area (between <b:skin>...</b:skin> on Blogger or style.css document on WordPress) verify you aren't forgetting any brackets, quotes, colons or semi colons. In your Template (HTML) verify you aren't forgetting any end tags .
Incorrect Method
.header { color: #000;  .footer {color: #FFF }
Correct Method
.header { color: #000; } .footer {color: #FFF;} 

Text Formatting:

This one isn't generally a mistake, its simply something I get asked a considerable measure about in light of the fact that individuals aren't certain for what valid reason certain things aren't changing on their website.The font tag has been depreciated and is not supported in HTML5. It as a rule will even now work however genuinely the primary issue here is its a torment to clean up in the event that you choose to change anything about the font. You'll need to experience all your substance (posts, pages, gadgets) and format to evacuate it.It’s much better and easier to use CSS, that way you just have to alter the value and everything will change to the font you want.
Incorrect Method
<font style="font-family: arial; ">this is my content</font>
Correct Method
<h2>this is my heading</h2>
<span class="subheading">this is my subheading</span>
 h2 {color: #000;} .subheading {color: #333;}

Incorrect properties and values in CSS:

This one is truly in case you're having an issue with styling something however I do see inaccurate CSS being utilized and commonly only left as a part of. It won't bring on any major damage more often than not however having right code is critical and making your CSS as smaller as could be allowed will truly help your site.
 Incorrect Method
.header { float: center; }
Correct Method
.header { float: none; }
.header { text-align: center; }
.header {width: 800px margin: 0 auto;}
these main all top most normal mistake I've seen. I trust this helped you clean up your online journal. Let me know if you have any requests around this coding for beginners topic or anything else you’d like to see.Having any issue regarding this post comment in a comment section we try to resolve your point in comment box .To check all web designing related blogs click on web designing blog and visit from oldest to latest blogs.Thankyou!!!.
Axact

Axact

Vestibulum bibendum felis sit amet dolor auctor molestie. In dignissim eget nibh id dapibus. Fusce et suscipit orci. Aliquam sit amet urna lorem. Duis eu imperdiet nunc, non imperdiet libero.

Post A Comment:

0 comments: