Thursday, December 20, 2007

Soạn thảo văn bản HTML

Cấu trúc của một trang văn bản HTML

Diễn giải

Chương trình bao gồm 3 phần:


<HTML>, </HTML>: mở đầu và kết thúc một chương trình
<HEAD>, </HEAD>: mở đầu và kết thúc phần đầu chương trình
<BODY>, </BODY>: mở đầu và kết thúc thân chương trình

Mã nguồn:

<HTML>
<HEAD><TITLE>Tựa đề thí dụ</TITLE></HEAD>
<BODY>
Xin chào các bạn
</BODY>
</HTML>

Kết quả:

Xin chào các bạn

Chú ý:

Xâu ký tự nằm giữa <TITLE></TITLE> không hiển thị trên trang Web mà hiển thị tại thanh phía trên của Browser.

Xâu ký tự nằm giữa <TITLE></TITLE> được đặt trong phần header khi trang Web được in ra.

Xâu ký tự nằm giữa <TITLE></TITLE> được ghi lại khi bạn cập nhật trang Web này vào mục các trang Web yêu thích (Fovorites).

Đầu đề trong một trang văn bản HTML

Mã nguồn:

<HTML>
<HEAD<
<TITLE>Tựa đề thí dụ</TITLE>
<HEAD>
<BODY>
<H1>Đây là đầu đề 1</H1>
<H2>Đây là đầu đề 2</H2>
<H3>Đây là đầu đề 3</H3>
<H4
> Đây là đầu đề 4</H4>
<H5> Đây là đầu đề 5</H5>
<H6> Đây là đầu đề 6</H6>

Kết quả

Đây là đầu đề 1

Đây là đầu đề 2

Đây là đầu đề 3

Đây là đầu đề 4

Đây là đầu đề 5
Đây là đầu đề 6

Xuống dòng và chia đoạn trong trang HTML

Diễn giải

Khi bạn đánh máy một văn bản trong một chương trình soạn thảo văn bản nào đó, bạn có thể chỉ cần bấm phím Return để kết thúc một dòng hay một đoạn văn, nhưng bạn sẽ cần phải làm nhiều thao tác hơn khi bạn muốn phân định riêng các đoạn văn khác nhau trong một trang Web. Browser tự động bỏ qua các mã xuống dòng bình thường. Vì vậy bạn phải viết thêm thẻ <P> để phân đoạn hay viết thẻ <BR> tại vị trí cụ thể mà bạn muốn xuống dòng.

Mã nguồn (với đoạn văn bản sử dụng mã xuống dòng bình thường)

Cộng hoà xã hội chủ nghĩa Việt nam
Độc lập - Tự do - Hạnh phúc
Đơn xin việc

Kết quả

Cộng hoà xã hội chủ nghĩa Việt namĐộc lập - Tự do - Hạnh phúcĐơn xin việc

Mã nguồn (có sử dụng thẻ <BR> và <P>)

Cộng hoà xã hội chủ nghĩa Việt nam<BR>
Độc lập - Tự do - Hạnh phúc
<P>
Đơn xin việc

Kết quả

Cộng hoà xã hội chủ nghĩa Việt nam
Độc lập - Tự do - Hạnh phúc
Đơn xin việc

source




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!


No comments: