• How To Use ALT Tags On Your Sites

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    One simple technique can improve your search engine rank, make site navigation easier, and increase the accessibility of your site to disabled visitors. Yet, as many as 78% of sites don’t use it! Boost your site’s profile with human visitors and search engine spiders with the <ALT> tag.

    Inserting ALT Text

    Adding <ALT> descriptions to your <IMG> tags is quick and easy. You don’t have to do any complex HTML coding. If you can describe your image or link, then you can add ALT tags to your code.

    We’ve used some examples below:

    <img src="thumbnails/porn.jpg" 
      width="100" height="78" ALT="Explicit Teenage Sex Pictures">

    You can also include an ALT tag when your image is a link:

    <a href="porn.html"> 
    <img src="thumbnails/porn.jpg" 
    width="100" height="78" ALT="Explicit Teenage Sex Pictures"></a>

    Ideally, your ALT text descriptions should be complete sentences, rather than a list of keywords or obscure phrase like “company logo small 2.” Remember that all visitors are likely to see (or hear) some version of your ALT text so be sure that it’s meaningful.

    Optimize ALT Descriptions For Search Engines

    Besides helping human visitors, ALT descriptions help you rank higher in some search engines. AltaVista and Google are two of the search engines that use ALT descriptive text when they rank Web sites. The growth of search engine/directory partnerships means that a high rank in one engine can often translate into an improved rank on its partner sites.

    Search engine algorithms calculate the number of times keywords are repeated and give higher rank to pages that use them often. Keywords in the ALT descriptive text help you increase their frequency on the page. Search engines assume the terms are more relevant and important if they’re used in the page content, not just listed in the META tag.

    For instance, the descriptive text in the example code uses keywords and keyword phrases from the META keyword tag: Explicit Teenage Sex Pictures. Since these are relevant to the site’s content, they’re easy to include as descriptive text.

    If you’re having problems choosing relevant, targeted keywords, refer to this article, How To Pick Your Keywords. It provides helpful tips about selecting keywords and using them to improve your search engine ranking.

    Make Your Web Site Sticky

    ALT tags help you promote your site in another way too: they help make it “sticky.” Sticky means that visitors stay at your site longer so they see your advertising and purchase your memberships. Visitors who feel comfortable at a site will stay longer – and hopefully return more often to make further purchases.

    Disabled visitors who use text-only or spoken word browsers rely on the ALT text for clues about the image’s content and function. This can be a lucrative audience: they represent a worldwide audience of 750 million and spend twice as much time online as the average user. But it isn’t just a disability issue: ALT tags make your site more accessible to everyone.

    Visitors see your ALT text while the images are downloading or when they mouse over images. The descriptive text helps them decide if they want to wait for an image to download or move on to a different page. If your image is also a link, then visitors can read the explanatory text and quickly jump to the section they want.

    Site navigation is easier, so impatient visitors are less likely to leave the site.

    Don’t Follow The Crowd

    ALT tags are a small addition to your HTML code that can make a big impact on your site. Since many of your competitors don’t use them, give your site and edge and include them on all images.

    Article Written By Lee

  • Domain Name Extensions + SEO

    Date: 2011.02.22 | Category: Search Engine Optimization, WebDesign | Response: 0

    With a slew of new TLD (Top Level Domain) extensions being launched in the first quarter of 2004 in addition to the hundreds already available how many of us actually take time to consider that when we register a .com, .net or, .org domain how will these sites help or hinder us with our search engine work? This is what we will take a closer look at in this article.

    Domain Name Extensions – What Are They?

    First of all, before we look at how the extensions of our domain names can assist us in running our search engine optimization methods we need to understand what the TLD’s themselves are actually for. Domain name extensions are essentially a way to recognize specific locales via the usage of domain names so for example, the domain name extension .com were primarily set up as commercial domain names however, with the commercial use of this extension it has also become, without a doubt the most popular extension for individuals or companies registering new domain names. In addition to the TLD extensions there are also a selection of domains extensions ranging from industry specific extensions such as .aero to country specific extensions such as .co.uk.

    Domain Name Extensions And Search Engines.

    Now we understand what the domain name extensions were put in place for we can now start to look at how they may benefit us in terms of SEO (search engine optimization) for example, head across to http://www.google.com and do a search on something such as ‘penis pills’ you can see from the results shown (01/01/04) that the first 10 results are evenly spread across a range of domain name extensions ranging from .com to .net and also some smaller .go.ro domain extensions. This would lead us to assume that at the current time, Google specifically is not paying to much attention to the extensions of the domain names we are using however, given the recent updates of the last month or two across Google this has also cleaned up a lot of the results that were present 2 months prior to this search in which the .biz extension was highly populated in the rankings.

    Domain Name Extension Abuse + Spam.

    With this slew of new domain name extensions being launched what seems like yearly this also opens up a whole lot of new problems for the webmaster primarily that of the domain name spam. Because domain names can be registered for as little as $5 per year many webmasters have taken to purchasing them, using them to spam the search engines and then, once the search engines discover the spam and remove the offending domains, the webmaster then moves on to new domains in effect, making domain names a disposable commodity to them. Whilst this method will certainly garner traffic for the search engine spammer it will also in turn mean that the traffic that honest webmasters receive from the search engines will be lower.

    Domain Name Extensions And Optimization.

    Hopefully this brief article has given you a little insight into how domain name extensions can both benefit and also detriment your business, by choosing your domain name extensions carefully and, making sure you do your best not to spam the search engines you can make some serious income from pure search engine traffic however, once you start to buy domain names with lesser known extensions to purely spam the search engines you are not only wasting your own money but, are also potentially wasting other hard working webmasters money too.

    Article written by Lee

  • Adult Industry Standards – What Are They Exactly?

    Date: 2011.02.21 | Category: General | Response: 0

    For some, the term ‘industry standards’ might seem like an oxymoron and, in such a wide spread global industry this might just be the case, the adult industry is not regulated in any way shape or form however, this term is thrown around with the best of them.

    In this article we will take a quick look at some of the ‘standards’ which have been set and, for the most part, seem to be accepted across the online adult industry as a whole.

    Industry Standards – The Basics.

    ‘Industry Standards’ are, in effect a set of guidelines or rules by which any person operating a business in a specific sector operate by. These may range fro charging a standard price for a product, operating in a certain way or something else. Most industries have their own set of specific ‘standards’ which are usually upheld regardless of whether they are actually written in law, as regulations, rules or, unwritten, unspoken standards.

    Adult Industry Standards – The List.

    This is a list of the 4 most common ‘Adult Industry Standards’ that webmasters would seem to operate their businesses towards, these are not ‘official’ industry standards more general operational guideline which are accepted as the ‘norm’ in our industry.

    1) Adult Webmasters should use ‘legal’ content.
    2) Adult Webmasters should abide by the rules of the sponsors they use.
    3) Adult Webmasters should not promote ‘child pornography’ or imply the promotion of the same.
    4) Adult Webmasters should operate their business within the scope of the law.

    Taking the above four items into account, there of course, other standards by which webmasters already self-regulate to some extent for example, you shouldn’t steal other webmasters work, content, bandwidth (through hotlinking), etc. However, other than the four primary ‘unwritten rules’ above there doesn’t appear to be any special ‘code of practice’ to which webmasters should or even, can adhere to.

    Taking the above information one step further, lets take a quick look at the adult industry sponsors, almost all of them have a different variation of their Terms and Conditions however, implied or otherwise, most of them tend to stick within the confines of the details already mentioned above. This in itself can lead webmasters into some troubles for example, promotion of sites, most sponsors have unwritten rules about what webmasters can and cant do to promote sites, no spamming paysites, no misleading links but, again, there are no ‘set’ rules that any two sponsors seem to say in the exact same manner.

    Adult Industry Standards – Self Regulation.

    We all know by now (at least those of us whom have been doing this for a few months) that the adult industry is pretty much self regulated and, whilst this is almost certainly a good thing it can also lead to complications. For example, ‘Webmaster A’ does something to promote a site that they got permission to do whilst, ‘Webmaster B’ does the same thing without having permission. in this instance, more often than not ‘Webmaster B’ will the one who gets their name blackened in the industry. it would also seem that, whilst those webmasters who have a long standing in the industry are capable of getting away with certain things, others, who perhaps have seen things done, when they try the same they get ridiculed.

    Adult Industry Standards – Overview.

    As ‘Adult Webmasters’ and, i would like to stress the ‘Adult’ part of that job title we have a lot of information thrown at us from the very first day of joining this industry, how we choose to use that information is up to us on an individual basis. That said, until the ‘standards’ are set on a level playing field i cant help wondering what effect, negative or positive our own style of self regulation is having on our associates and peers, does it help that we can go to message forums and call sponsors, hosts, other webmasters cheats? or, does this hinder our industry on a much wider scale?

    One thing is for certain, if i were a journalist writing a report on the adult industry as a whole, i don’t even think i could write about the actual ‘business’ side of things after all, we all run our businesses as we see fit and, at the same time, read the rule book that would at least, for the time being, suit us as individual business owners.

    Article written by Lee.

  • Billing Solutions For International Surfers

    Date: 2011.02.21 | Category: Billing Solutions | Response: 0

    We all know the lifeblood of the webmaster is to be able to accept credit cards for site access however, with the global markets emerging more and more, many webmasters still do not realize that they can accept credit cards from international countries at little or no extra cost to themselves or, their business.

    Presuming you already have your sites translated into a selection of global formats you need to make sure you can process foreign transactions and, these should be handled differently than regular US based credit card users however. This is what we will approach upon in this article.

    The main reason we own our businesses is to turn a profit and, from a profit making point of view is just how the details below will enable you to benefit your long term global business.

    The first step you need to take in order to correctly ‘charge’ your international customers is to ensure that you are sending them to the right language, after all, over 70% of internet users can not speak English, let alone read it. This is where having some geo-scripting comes in handy on your join page, the second the surfer hits this page he (or she) will be directed to a localized version of your join page.

    Now that you have the surfer on your join page you also need to ensure they have a variety of options available to them to actually finalize the purchase however, you should also ensure that, if they want to view your join page in another language, that they have this as an option too.

    Some alternate payment methods for your international customs could include one or more of the following, PayPal, JCB, Mastercard, Discover, Maestro, EuroDebit, Checks and, of course, a dialer.

    I would however use the dialer as a last minute option should their chosen method of payment not be accepted.

    Even though you may run a ‘recurring’ based site, you might not want to have your foreign surfers recur and risk having their card declined when it comes to authorizing your charge next, for this reason you may like to add the option of a 3 month membership or perhaps a 6 month membership however, make sure you lower the cost of this membership in relation to buying a monthly membership, this might just be the clincher you need to close the international sale.

    As with any purchase the after sales support is also needed, especially if you are wanting your international customer to rebill for several months and, trust me, they WILL rebill, often for in excess of 6 months. They pulled their credit or debit card out for a reason and, they will stay if you can give them more reason too.

    With any type of sale a follow up is always good, many sponsors and processors send out an email automatically upon sign up, however, how many of these emails are written in the surfers native tongue?

    In conclusion, when dealing with international customers you should cater to them NOT make them cater to YOU by doing this you will ensure the longevity of your international business.

    Finally, if you have any type of online business you should carefully consider the global market place as it is growing a rapid rate with millions of new international surfers coming online each year this would be a bad business choice on your part if you were not to cater for them.

    Article written by Lee.

  • Traffic Brokers – Buying Additional Traffic

    Date: 2011.02.21 | Category: Traffic | Response: 0

    For many adult webmasters traffic is the one thing they can get and, good converting traffic it would seem is hard to find in bulk. For those webmasters who simply can not or, will not work towards getting a good converting traffic base you now have several options. These option come in the form of the Adult Traffic Brokers that have seemingly multiplied over the last 12 months.

    Traffic Brokering – The Basics.

    So what is traffic brokering? In layman’s terms, it is the process used when one company sells / buys their traffic to / from another in order to turn the traffic they are selling / buying into a profit. Often webmasters will purchase traffic from a broker for several reasons, the main one being that they simply could not have generated the same amount of traffic they have purchased by any other means.

    Traffic Brokering – The Costs.

    The costs for purchasing brokered traffic vary greatly from traffic broker to traffic broker however, as a rough guideline, you could spend anywhere between US$1 and US$3 for each thousand (1000) unique hits that the traffic broker sends you. The cost of this traffic however can change for many reasons as do the rules for where you can actually send the purchased traffic to.

    Brokered Traffic – The Uses.

    There are many uses for brokered traffic as those webmasters who do it on a consistent basis will tell you. However, by far the most popular method of using purchased traffic would seem to be sending it to a central ‘hub’ site or a gallery page. From this point on the traffic can start to filter itself even more.

    In addition to this, some webmasters choose to send their brokered traffic directly to their sponsors pay sites if they have purchased niche specific brokered traffic.

    All of the above methods have their pro’s and con’s involved however, for most webmasters, the fact that they have purchased traffic at a relatively low cost will mean they can turn a profit. That said, purchasing traffic from a broker does not guarantee you a profit on your investment.

    Traffic Brokering – Overview.

    In overview of this article i would say that for webmasters who are unable to gain mass traffic through conventional methods, the traffic brokers offer a service of value and, whether the traffic that you are buying is profitable to you is an outcome that no one can say until the traffic has been used. one thing to consider though when purchasing traffic is that you need to have a clear, concise plan of what your needs for the traffic are, do not just send it blindly into the proverbial unknown but build up a solid plan of what you ultimately want to achieve.

    Also, before buying traffic ‘en mass’ you should always spend a few dollars in the first instance to run a small test of the traffic, this way, you will be able to send thousands of hits to your sponsors or hubs and judge for yourself which broker will offer you the best traffic for your money.

    Article written by Lee.

  • European Surfers – Porn High On The List!

    Date: 2011.02.22 | Category: General | Response: 0

    Adult web sites were visited by 3.8 million home Internet users in the UK in June 2001, according to Internet monitoring company Net Value. This accounts for more than a quarter of the entire UK home Internet population.

    UK visitors to adult websites spent more than 45 minutes on these sites each in June. Adult sites make up 41.2 per cent of all the sites visited in the UK with a significant audience. Students (23.2 per cent), manual workers (15 per cent), and professionals (12.8 per cent) are the largest groups of UK visitors to adult sites.

    However Germany has the largest audience for online porn in Europe with more than 5.3 million Germans visiting an adult site in June. They also spent more time on these type of sites than any other nationality – each German visitor spent almost an hour on adult sites in June. Net Value data also showed that more than half (52.3 per cent) the websites visited in June by a significant number of German users were of an adult orientated nature.

    Spain has the greatest proportion of visitors to pornographic sites – 40 per cent of Spanish home Internet users visiting a pornography site in June 2001.

    “Pornography has become a lucrative online business, with many companies now recognizing it as a valuable additional revenue stream,” Net Value’s Alki Manias said. “And this would seem to be a stable business area – the popularity of online pornography continues unchecked.”

    Adult sites are also popular amongst the earliest adopters of the Internet. People who first got online at home before 1997 account for 18.5 per cent of visitors to adult sites, though they only make up 14.1 per cent of the whole UK online population.

    In the UK, Lastminute.com has just introduced an auction for adult toys and aids, whilst in Germany, Freenet.de and T-Online are also moving into the adult business.

    The following charts detail various demographics relating to European surfers usage of adult sites:

    Visitors To Adult Sites In Europe

    Time Spent On Adult Sites By European Surfers

    Number of adult websites visited, June 2001

    Number of adult websites visited Total number of Websites visited* % of websites which have adult content
    Germany 4,140 7,909 52.3
    Norway 3,847 7,756 49.6
    Denmark 3,675 7,661 48.0
    Italy 3,131 6,579 47.6
    Sweden 2,419 5,231 46.2
    Spain 3,069 7,019 43.7
    UK 3,879 9,411 41.2
    France 4,348 11,845 36.7

    * Sites with a significant reach

    UK visitors to adult websites by occupation, June 2001
    Occupations Of Porn Surfers In The United Kingdom

    As you can now see, we, as adult webmasters, have a considerable chunk of the online adult industry sitting in our laps and, we should concentrate on tapping into this market as more and more American companies are realizing the importance of these figures we will inevitably reach a stage where the European market will be passed across to our US counterparts.

  • Adult Search Engine Optimization

    Date: 2011.02.21 | Category: Promotion, Search Engine Optimization | Response: 0

    Gone are the days when adult webmasters could Spam the search engines and get highly trafficked sites within a month of the search engines updating many of the search engines caught onto the adult industry very early on and started changing the way in which they indexed sites they went from meta tag optimized listings to theme indexing to almost every type of search engine optimization method in between.

    Search Engine Optimization Techniques.

    It would seem with the changing times of search engine optimization that there is no longer a single solitary way to get your adult sites listed highly in the search engines but rather a mixture of different adult seo methods being used on a single site ranging from increasing your pagerank, including relevant meta tags and page content to standard adult search engine optimization methods such as getting other popular websites linking to yours but with this comes a new challenge of its own webmasters need to get back to the basics to figure out what worked then and, what will work now so far as adult search engine optimization goes.

    Adult Search Engine Optimization Companies.

    There are many companies currently online that can offer adult webmasters their search engine optimization services however, how do you choose an SEO company that will not only work for you but, is cost effective for your needs, the simple answer is to ask around, there are sites online presently that offer monthly memberships to gain access to their adult seo techniques in the form of articles and tutorials just as their are sites that offer no information whatsoever or, information that, while it worked three years ago, it no longer works in today’s adult seo marketplace. You need to ask for advice from customers who have used adult optimization companies in the past and see how their results improved as well as making sure that what you are actually purchasing is a service that doesn’t just guarantee you improved site rankings but actually guarantees you will see a profit from the money you spent on the optimization services.

    Adult SEO Breakdown.

    Adult search engine optimization companies have only really become apparent in the adult industry over the last 6-12 months however, many well known and respected webmasters have been working on optimizing their adult sites for years and, whilst doing so, they have also achieved a vast knowledge base on how to optimize your adult sites for the search engines, again, ask around on the message forums to find the solution that will best suit your needs and budget and you wont go far wrong, the adult search engine optimization business model is one that in all actuality should change on a regular basis however, as mentioned above some companies are still using the same optimization methods they used three or four years ago, make sure you do your background checks before parting with any money and, most importantly, use the search engines to find their sites in search terms where, if they were any good at all, they would already have first page listings.

    Article written by Lee.

  • Doorway Pages

    Date: 2011.02.22 | Category: Traffic, WebDesign | Response: 0

    A doorway page is built to rank high for a particular keyword or search phrase. When your doorway page is visited by the searcher it simply has a “click me” button which links to your web site. The major search engines accept these pages as long as the end result does provide what the searcher is looking for. If you are discovered to be using doorway pages for irrelevant keywords you can expect to have your entire domain unlisted. For instance, one of our doorway pages is built to rank high for the search term -Adult Content—which is quite acceptable because when the searcher gets here he can find links to adult content providers from our site. If however, he couldn’t find links to adult content then we would risk the wrath of the all powerful search engines.

    Once you have selected your keywords and phrases (about 50 would be the normal) you need to build a doorway page for each keyword and ideally, for each major search engine. All the major engines look for different keyword density in the text, title and description so you need to do some research by doing a search using your chosen phrase or keyword and studying the top 10 results at each engine (if you can spot them, study high ranking doorway pages).

    Make notes of how many times the phrase or keyword is used in the title, description and body text. Is it used in header text etc? Once you have built a picture of what your doorway page should look like you can build it using your favorite html editor. Once you have done one for a particular engine the other 50 or so pages can be done by simply replacing keywords for keywords. After you have done a page for each keyword move on to the next search engine. Remember that your body text is not important but make each page unique or it may be considered spamming. It is your keyword or phrase density that you are attempting to get right. The page, when visited by a person, will be recognized for what it is, simply a link to the real content so don’t worry too much about what it looks like. When a search engine spider visits the page it is only interested in counting the keyword density in your body text.

    As you have probably worked out there is quite a lot of work involved. 50 phrases or keywords=50 pages X the top 8 search engines= 400 pages. In reality though, you are only creating 8 doorways, 1 page for each search engine. For all the other pages you simply have to substitute the keyword for the next and alter the text around so as not to finish with 50 identical pages. OK, nearly finished but the next step is crucial if your doorways are to work.

    Put all your pages in a folder on your server e.g. Mydomain/doorways/. Then create 2 more pages that have a link and a small description to each of your doorways (200 on each) and to each other. These are called corridor pages because the spider travels down them, visiting each page linked off them. Call these 2 pages index and home and place them in the folder with your doorway pages. Then place links to these two pages from your main index page so that a spider will be able to find them and list all your doorways. Submit only your index page and your 2 corridor pages. Do not submit your doorways to the engines.

    Ideally, and if you can afford it, you should set up a new domain and host for your doorways. This isn’t essential but it does have benefits. These are: If you do get over zealous with your doorways and an engine does ban you for spamdexing at least your real site will be safe. Engines rank sites higher if they have lots of links to them from other domains. You can put your most important keywords in your new domain name, which will increase the ranking of the doorway pages containing those keywords.

    Now all you have to do is wait for the engines to update their databases. We have had the best results with Google.

    Article written by Lee

  • Building A Surfer Trap – Stage 5

    Date: 2011.02.21 | Category: Traffic | Response: 0

    So we hit stage 5 in this surfer trap tutorial.

    It was brought to my attention this morning that we never added any ALT tags to our single FPA link so, in a change to the planned tutorial I am going to touch on this stage as, once the search engines get to our surfer traps this is going to be a crucial aspect on how highly we get ranked.

    So what’s next?

    Ok, now what you have to do is go back to manually editing the FPA’s (All of them!)

    What you need to do is this…

    Take the Multi-Site FPA first then, on ALL of the links that lead to the single site FPA’s you need to add the ALT tag. Again, in the same way as we did originally however, instead of using this tag on the images we will use this on the actual TEXT of the link so, for example the link which may be:

    ‘Voyeur Porn’ leading to the FPA you have for the Voyeur niche in the HTML coding will already look like this:

    <a href=”mydomain.com”>Voyeur Porn</a>

    Will get turned into:

    <a href=”mydomain.com” ALT=”More Niche Related Keywords”>Voyeur Porn</a>

    The reason we are going back over these links now and not earlier on is because you should hopefully have started to get a small amount of traffic from your counter impressions. These counters are virtually ALWAYS being crawled by the search engines due to the amount of people linking to them so, by optimizing our site at this stage, it makes it less work in getting into the search engines.

    One other thing that we can now start to do (as we did a couple of stages back) is to create some more HTML pages with some tables on them, however, these will be HTML pages on their own with no images on them. Again however, you should make them 4 columns across and two rows high.

    What you want to add into these tables are NICHE links so for example, taking the TEEN niche we would make eight links like:

    Teen Sex
    College Girls
    Erotic Teens
    Teen Porn
    Etc
    Etc
    Etc
    Etc…

    You should do this for each of the MAIN niches so you would have a table for Teen, Gay, Mature, Asian, Ebony, Fetish and one for General and again, these should link to the NICHE FPA’s that you already have created.

    These tables will be used for another console on our surfer trap however, before we implement this console we are going to have some fun with them.

    Article written by Lee

  • Cascading Style Sheet Basics

    Date: 2011.02.21 | Category: WebDesign | Response: 0

    CSS (Cascading Style Sheets) have been around for a while now, and act as a complement to plain old HTML files.

    Style sheets allow a developer to separate HTML code from formatting rules and styles. It seems like many HTML beginners’ under-estimate the power and flexibility of the style sheet. In this article, I’m going to describe what cascading style sheets are, their benefits, and two ways to implement them.

    Cascading What’s?

    They’re what chalk is to cheese, what ice-cream is to Jell-O they complement HTML and allow us to define the style (look and feel) for our entire site in just one file!

    They get their name from the fact that each different style declaration can be “cascaded” under the one above it, forming a parent-child relationship between the styles.

    They were quickly standardized, and both Internet Explorer and Netscape built their latest browser releases to match the CSS standard (or, to match it as closely as they could).

    So, you’re still wondering what a style sheet is? A style sheet is a free-flowing document that can either be referenced by, or included into a HTML document (Kind of like using SSI to call a file but not, if that makes sense). Style sheets use blocks of formatted code to define styles for existing HTML elements, or new styles, called ‘classes’.

    Style sheets can be used to change the height of some text, to change the background color of a page, to set the default border color of a table the list goes on and on. Put simply though, style sheets are used to set the formatting, color scheme and style of an HTML page.

    Style sheets should really be used instead of the standard , < b >, < i > and < u > tags because:

    One style sheet can be referenced from many pages, meaning that each file is kept to a minimum size and only requires only extra line to load the external style sheet file

    If you ever need to change any part of your sites look/feel, it can be done quickly and only needs to be done in one place: the style sheet and furthermore, it is done globally.

    With cascading style sheets, there are many page attributes that simply cannot be set without them: individual tags can have different background colors, borders, indents, shadows, etc.

    Style sheets can either be inline (included as part of a HTML document), or, referenced externally (Contained in a separate file and referenced from the HTML document). Inline style sheets are contained wholly within a HTML document and will only change the look and layout of that HTML file.

    Open your favorite text editor and enter the following code. Save the file as styles.html and open it in your browser:

    Cascading Style Sheet Example.

    h1
    {
    color: #636594;
    font-family: Verdana;
    size: 18pt;
    }

    This is one big H1 tag!

    When you fire up your browser, you should see the text “This is one big H1 tag!” in a large, blue Verdana font face.

    Let’s step through the style code step by step. Firstly, we have a pretty standard HTML header. The page starts with the tag followed by the tag. Next, we use a standard tag to set the title of the page we are working with.

    Notice, though, that before the tag is closed, we have our tag, its contents, and then the closing tag.

    h1
    {
    color: #636594;
    font-family: Verdana;
    size: 18pt;
    }

    When you add the style sheet code inline (as part of the HTML document), it must be bound by and tags respectively. Our example is working with the tag. We are changing three attributes of the ’s style: the text color (color), the font that any tags on the page will be displayed in (font-family), and lastly, the size of the font (size).

    The code between the { and } are known as the attributes. Our sample code has three. Try changing the hexadecimal value of the color attribute to #A00808 and then save and refresh the page. You should see the same text, just colored red instead of blue.

    An Example Of An External Style Sheet.

    External style sheets are similar to internal style sheets, however, they are stripped of the and tags, and need to be referenced from another HTML file to be used.

    Create a new file called “whatever.css” and enter the following code into it:

    h1
    {
    color: #a00808;
    font-family: Verdana;
    size: 18pt
    }

    Next, create a HTML file and name it test.html. Enter the following code into test.html:

    External Style Sheet Reference Example.

    This is one big H1 tag!

    As mentioned above, you can see that the actual code in whatever.css is exactly the same as it was in the inline example. In our HTML file, we simply place a tag in the section of our page. The rel=”stylesheet” attribute tells the browser that the link to the external file is a style sheet. The type=”text/css” attribute tells the browser that whatever.css is a text file containing CSS (cascading style sheet) declarations. Lastly, the href=”whatever.css” attribute tells the browser that the actual file we want to load is whatever.css.

    Conclusion.

    Well, there you have it, a quick look at style sheets and how to implement both an inline and external version. Checkout the links below if you’ve never worked with cascading style sheets before. You will be surprised at some of the things you can do with them!

    Article written by Lee.

Premium Sponsors















Categories

Site Links