Friday, December 28, 2007

Vị trí các thẻ HTML trong Layout Template

Layout Template (hay Beta Template)bao gồm năm bộ phận được phác thảo trong các phần của Template. Bộ phận đầu tiên là nơi HTML được khai báo (các bạn không cần quan tâm nhiều đến phần này). Bộ phận thứ hai bao gồm tiêu đề blog và các thẻ meta. Bộ phận thứ ba chỉ có ở Layout Template và là nơi các biến (Variable) được xác nhận. Bộ phận thứ tư là nơi người ta dùng CSS (Cascading Style Sheets ) để định dạng style của blog. Bộ phận thứ năm chứa "Body" của blog và là nơi HTML đóng vai trò chủ yếu. Bộ phận này nằm giữa hai thẻ <body> và </body>.

Đây cũng là nơi xác định các khu vực của blog. Các khu vực đó là: Header, Main, SidebarFooter. Khu vực Header được chứa đựng trong 'Header-wrapper'. Tương tự như thế, khu vực Footer được chứa ở 'Footer-wrapper'. 'Content-wrapper' bao gồm 2 khu vực ở giữa là: Main, Sidebar.

Mỗi khu vực có thể chứa 1 hay nhiều Widget. Mỗi khu vực đó được mã hóa như sau:

<b:section class='main' id='main' showaddelement='yes'>
<b:widget id='HTML2' locked='false' title='' type='HTML'/>
<b:widget id='Blog1' locked='false' title='Blog Posts' type='Blog'/>
<b:widget id='HTML3' locked='false' title='' type='HTML'/>
</b:section>

Dòng đầu tiên là nơi thể hiện tên khu vực đó ( Ở đây, tên khu vực này là "main"). Đoạn mã này cho phép hoặc không cho phép hiển thị Add Page Element trên những khu vực . Bạn có thể tham khảo bài viết Thêm Add Page Element vào Header để biết cách làm. Dòng thứ 2 đến dòng thứ 4 là mã
Widget đã được làm gọn. Khi bạn click vào ô Expand Widget Templates phía trên bảng mã template, toàn bộ mã của mỗi Widget sẽ được thể hiện. Dòng cuối cùng là mã kết thúc khu vực này.
5 dòng trên cùng nằm giữa 2 dòng mã dưới đây:

<div id='main-wrapper'>

</div>

Đoạn mã tôi giới thiệu trên đây là phần Main-Wrapper đã được làm gọn.

Cám ơn các bạn đã theo dõi bài viết. Mong sẽ nhận được nhiều ý kiến đóng góp từ các bạn để giúp hoàn thiện nội dung bài viết hơn..
Chúc các bạn có 1 ngày vui vẻ!












AdSense Earning = Impression-count x Click-though-rate x Cost-per-click x smart-pricing-factor.impression count is basically referring to increase your traffic. It means the number of times AdSense secret block is displayed.Click-through-rate (CTR) is ratio of clicks per impressions. It can range from 0.1% to 30%, but most commonly around 1% to 10%.Cost-per-click (CPC) is the earning money you get per click. While traditionally it refers to the amount advertisers pay for each click, it can also mean the amount publishers get for each click.Smart-pricing is AdSense method to determine how valuable clicks from your site is worth. If clicks on your site doesn’t provide good value to advertisers, e.g. from visitors’ geo-location that seldom translate to sales, you will only get a fraction of the supposed CPC.Don’t encourage your visitors to click on ads. The only acceptable text is “Sponsored Links” and “Advertisements”.When in doubt don’t hesitate to contact the AdSense team. They are very helpful.Use Overture Bid Tool and Search Engine Keyword Tool to find suitable keyword.Submit your URL to search engines for crawling.Google is not the only search engine. Optimize for different engines as well. You are very likely to face less competition than in Google.Search engines are where most of your new visitors come from. Learn a bit about Search Engine Optimization, or pay people to do it. Doing it yourself will save yourself from troubles created by not-so-honorable SEO (Search Engine Optimizer).Try 300×250 medium rectangle, 336×280 large rectangle, or 160×600 wide skyscraper ad formats. These are the best performing AdSense ad formats.Wrap the AdSense block around your content.AdSense have both CPM (cost per thousand impressions) and CPC (cost per click) ads, and will choose the one it thinks can perform better.Adsense tips have in here.SearchAdSense Tipson Google. Most webmasters continuously try to optimize their AdSense and many are more than willing to share their result.You can get help of other AdSense pulishers at AdSense Help Group.Remove the “Advertise on this sitefrom your AdSense block until your site is big enough to attract real advertisers. This will help to clear off many MFA (made-for-adsense) sites. You can disable it from AdSense account setting.Use AdSense Competitive Ads Filter to remove irrelevant ads.Try variations of AdSense colors, format, position on different pages to make it more unpredictable for your visitors.Watch your AdSense tips earning. Notify AdSense hack Team if you find anything suspicious. Your competitors might try to sabotage your account, or your well-meaning friend keep on clicking on the ads thinking they are helping you.Use Google AdSense section targeting to help AdSense deliver more relevant ads.Let earning money!money!

1 comment:

Anonymous said...

Good day, sun shines!
There have been times of troubles when I didn't know about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never thought that there weren't any need in big initial investment.
Nowadays, I feel good, I begin to get real money.
It's all about how to select a correct partner who utilizes your money in a right way - that is incorporate it in real business, parts and divides the income with me.

You may get interested, if there are such firms? I'm obliged to tell the truth, YES, there are. Please get to know about one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]