• Using Basic Server Side Includes (SSI)

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    Server side includes are what their name sounds like.  A way to include the contents of another file into your current web page BEFORE the web page gets sent off to the surfer.  Not only does this include contents of a static file but you can also include the results of a CGI program and on some web servers, you can even have it display the current date and time.

    Now, many web hosts do not normally have server side includes turned on. You will have to ask your host if they have SSI turned on and if they do, what is the file name extension for SSI.  By default, SSI files have an .shtml extension.

    Sometimes, you can turn SSI on yourself.  If you host doesn’t have SSI turned on for you already, you can try adding the following two lines to your .htaccess file.  Then create a file with the .shtml extension, include a SSI command and see if it works.

    AddType text/html .shtml
    AddHandler server-parsed .shtml

    When you use SSI commands, you place them exactly in the location within your web page where you want the output of the SSI command to appear when you finally browse the page.  If you have SSI, then you can use the following command to include a file.  When you include a file, you can either give it a path name to the file or you can give a URL to the file. I’ll list both here.

    <!–#include file=”/some/path/above/my/web/to/my/header.html” –>

    This is an example of how to include a file based on its path name.  Now,
    here’s the same file put included with its URL.

    <!–#include virtual=”/to/my/header.html” –>

    And this is an example of how to use a URL.  With a URL however, it cannot be a complete URL such as http://www.somesite.com/somefile.html.  It has to be within your current website.  You can also use the URL method to run a CGI script!  Here’s an example of that:

    <!–#include virtual=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″
    –>

    As you can see, we can even pass arguments to the CGI script just as if you typed it into your browser!  There is also another way of running a CGI script but this is not as widely used any more and you should use the #include virtual method instead.  Here is the same example so that you will know what it means when you see it.

    <!-exec cgi=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″ –>

    As I mentioned earlier, you can use SSI to display the current time and date. Here’s how:

    <!-echo “$DATE_LOCAL” –>

    This will display the current date and time. SSI is usually used when you  want to have a standard header or footer on each page.  It’s also used for displaying rotating banners or page counters. As you see above, you can also  use it to display the current date and time or the date when the page was  last modified.

    SSI has also been used for cloaking and some tracking  software uses SSI to track each incoming hit to the web page.  If you would  like more information about SSI, go to
    http://www.apache.org/docs/mod/mod_include.html.  This is the definitive guide on SSI on the Apache web server.

    Most other web servers that use SSI also follow these conventions.

    Article written by Lee

  • Cascading Billing – Using Multiple Payment Processors For More Profit

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

    ‘Cascading Billing’ has been somewhat of a buzz word of late in the online industry however, there seems to be some confusion as to what this billing process actually involves or even does other than ‘process payments’ this is what we will take a look at in this brief article.

    Cascading Billing – The Basics.

    Simply put, Cascading Billing is a method to enable your surfers to buy membership to your site or, products utilizing multiple third party credit card processors and, other payment options. The process used, as its name suggests, is that of a ‘cascading’ feature meaning that, if you have multiple processors set up on your site and a surfers credit card is declined on your primary processor, the details will then be passed onto a secondary credit card processor where, they will either be accepted or declined and, if declined, the details can then be passed onto yet another credit card processor or, some alternate payment solution.

    Cascading Billing – The Benefits.

    From the initial reaction this new payment process has received in the online community it would appear that this new solution actually does work and, work well. Many companies who are adopting the ‘Cascading Billing’ process are reporting an increase in sales, some reporting upto a 20% increase over the normal procedures they used. This increase in sales also enables affiliate programs to pass the new found benefits onto the webmasters themselves through raised payouts and better sign-up ratios.

    Cascading Billing – The Options.

    As with any type of online payment processor or, payment system, you need to evaluate what your individual needs are and, using a cascading billing program is no different. With many solutions currently available and in development stages the choices for webmasters and program owners are growing and growing.

    However, that said, first and foremost you need to choose which processors or, billing solutions you will use to begin your cascading billing. In an ideal world, you should choose two of the more reputable third party payment processors as your primary and secondary processor in addition to a tertiary payment option or, perhaps even a custom dialer solution. Generally speaking, this will give you the best way to monetize your own and, your webmasters traffic.

    Cascading Payment Solutions – Overview.

    When all is said and done, cascading billing offers webmasters and online e-business owners ample opportunity to increase their profits through minimal outlay either by renting the scripting that will allow you to utilize the cascading billing option (costs from $300 a month) or, having such a solution custom coded which, you can have done from as little as US$5000. Either way i am certain we will start to see many more of the top online companies offering this type of payment solution in the near future and, with some of the larger online companies already adopting this method, it is sure to start happening soon.

    Article written by Lee

  • Are Your European Surfers Male Or Female?

    Date: 2011.02.21 | Category: Promotion | Response: 0

    In Europe, the domain of the Web still belongs to the younger generation, with nearly 80% of European surfers under the age of 30. This is not surprising, as Europe is culturally quite different from the US.

    The older generation in Europe has typically been slower to adopt new technologies and habits compared to their American counterparts, and we can’t see this trend changing anytime soon. Cultural differences will limit Internet penetration among the older age groups.

    Female Internet usage still lags in Europe, with slightly more than 20% of Web users being women. Although this difference is less pronounced in the UK, on the Continent, males still dominate the Web scene.

    Our Target Audience

    What does this tell us? Well, first of all, it tells us that the European audience is growing more and more each and every day but, we already knew that, what we didn’t know however, until now, was just what percentage of European surfers could be persuaded to buy porn memberships or related goods from one of our sites.

    Most paysite owners will tell you that, on average the ages of their members range from 25-30 and, as such, the European market could potentially supply a vast majority of these signups if, they got the overall balance of their sites right.

    The Solution

    As you should already know by now, the European porn surfer has different expectations to its US counterpart, they wont give out personal information as readily as American surfers, this includes their email address so, this rules out sending them to ‘For Free’ programs, they are also getting really pissed-off at having to download dialer programs to access porn, heck, the average phone bill in Europe is almost double what it is in America, why antagonize these people even more? They know they are overlooked when it comes to porn surfing so we need to stop neglecting these surfers, get a site translated into a foreign language, broaden your horizons, tap into an as yet ‘untamed market’ I feel certain that if you take a few basic steps your bottom line can be increased significantly, it all comes down to this…..

    Do you have the balls to try something new?

    Article written by Lee.

  • Why Go Adult?

    Date: 2011.02.21 | Category: Hosting | Response: 0

    When choosing a hosting company why choose an adult host over a mainstream one?

    Simple, They provide above other things, a better quality of service, affordability and, most importantly, reliability.

    Adult hosts face a variety of technical and support issues, this coupled with the points mentioned above makes them a far superior choice to standard mainstream hosting providers. This is one of the main factors why more and more mainstream internet based companies are now turning to the adult business forum to provide their hosting solutions.

    Mainstream going adult? Yes that’s right, more and more mainstream companies are turning to our industries hosting providers for the fast speeds, security and, reliable infrastructures they can offer after all, adult sites are amongst the most prolific on the internet on average gaining more daily hits to their sites than mainstream websites so, they need to be cost efficient, not only to the hosting companies but, also to their clients, the webmaster.

    Our industry strives on the use of heavy graphics, coupled with streaming media files to secure sales and longevity, this is why the adult hosting companies need to be able to provide not just a single, heavily laden server but tens of them, sometimes even hundreds all producing gigabytes of traffic on a daily basis.

    Adult hosting companies are constantly upgrading their equipment in order to improve not just their servers, connectivity but also the smaller things that are often overlooked by webmasters, hubs, routers, switches and the likes along side the not so technical aspects of running a host, The staff.

    Along with all of this technical equipment they also need to maintain a high level of technical knowledge, after all, not just anyone can install operating systems capable of running multi-million dollar industries. They need the knowledge to maintain, upgrade, repair and sell their services to the best of their capabilities.

    What does this mean to you? Well, we all want to make money and, through the use of faster servers, e-commerce solutions and the technical support your hosting provider can give you, you will be fattening your wallet on a daily, weekly, monthly basis.

    Adult hosting, quite simply, is the crème de la crème of the hosting world, they offer solid, solutions whether you are starting in the adult industry or, operate a mainstream e-commerce site.

    So how do you choose a host that is right for you?

    You need to ask some basic questions of the host and, do your homework. Not only should you find out what hosting solutions they can offer you but, you need to find out what their support service is like, how affordable they are in comparison to other companies who can offer similar or the same service. Whilst on the subject of hosting support, before you sign on the dotted line, give your host a call out of office hours, if they answer, then you can almost be certain they are a good hosting provider.

    Of course, not all hosts will have 24 hour phone support, however, that said, some offer 24 hour icq support, email support and more.

    Another sure fire way to find out if a hosting company is any good is to ask on the heavily traveled webmaster message boards, after all, you are not the only webmaster out there who will have tried this company, if they are no good, someone will know about it and point you in the direction of a reputable host like http://www.webair.com.

    Hopefully, this article will have given you some insight into the world of adult hosting companies and, will assist you in making the right choice of host for your site, whatever type of website you might be hosting.

    Article Written By Lee

  • Online Adult Laws – Privacy Policies

    Date: 2011.02.23 | Category: General | Response: 0

    To many webmasters and companies working online the fundamental basics of their business is to turn a profit through effective online marketing campaigns and promotions however, within all of this profit making there is a side of business that is so often overlooked or, forgotten entirely, what is this business practice? The law.

    In this brief article we will take a look at one such law that comes into effect in California on the 1st July 2004 namely, that all ‘web sites that collect any personal information from consumers to post a privacy policy’. Whilst this in itself is the first law of its kind in the United States it is worth mentioning that this is only a State law that affects California however, that said, where one state starts, others are sure to follow especially considering the huge potential left for the growth of the internet.

    Privacy Policies – How Does This Effect You?

    The main factor that you must take into consideration with this new law from California is that, because the Internet is truly global, you have no way of telling where one of your surfers are coming from thus, a surfer entering your site from California, may be making you break the law by not displaying a privacy policy should you collect their information. Incidentally, this new privacy policy law does not state what ‘collected’ information requires you to post a policy however, it would seem that personal information such as addresses, phone numbers and email addresses would be the primary target of this new Californian online law.

    Privacy Policies – The Basics.

    So what is a privacy policy, in essence, it is a document informing your site visitors / customers that any information you collect from them, including user submitted information will be used in a specific way, this might be a case of solely being used by yourself or, specifically if you rent out this information you need to tell your surfers / customers exactly who you are renting this information to.

    Privacy Policies – Overview.

    Whether you collect personal information from you site visitors or not the one thing that makes sense is to have a page created ready for the 1st July 2004 so that you can have it online for when you need it, perhaps storing this page on a central domain and linking to that page from all of your other web sites would be the best method to go as far as ensuring you are covered from prosecution or, perhaps creating a keyword rich privacy policy which you can get listed in the search engines is the way to go after all, just because this will become a legal requirement for you it does not mean that you cant profit from the potential traffic going to that page.

    Article written by Lee

  • Promoting Safe Sex In The Adult Industry

    Date: 2011.02.24 | Category: General | Response: 0

    To most webmasters, the only thing that needs to be considered when building and marketing our websites is the layout of the site, the sponsors that they will be using and ultimately, the amount of money they will make from the site however, there is another side of the adult industry that we should also be considering, the moral side.

    Safe Sex – Morally Speaking.

    We all have our own morals and work ethics however, I think that sometimes most of us push these to the back lines a little when it comes to making a buck which is understandable however, we are in a position of power somewhat over a lot of things that many of us do not even think about, we know that for the vast amount of industry webmasters there are more than 90% of them will actively report child porn sites when they find them however, how much further does this reach and, how much harm could you potentially be doing long term?

    Promoting Safe Sex – The Issues At Hand.

    Step out of your webmaster persona for a short while now while you read this next paragraph and actually think about what is being said, all of us in our communities realize that sexually transmitted diseases and especially HIV/Aids is on the increase although maybe not reported as much the one thing that you can be certain about whether you go to a gym, a bar or a doctors is that we are constantly shown images promoting safe sex, ask yourself how you feel about that and, furthermore, ask yourself if you would have unprotected sex with someone if the answer to this question is yes then the rest of this article will be of no consequence to you however, if the answer is no, then you may like to read on.

    Safe Sex Online.

    Now we have ascertained how you feel about safe sex, why do you not promote this more often on your sites and galleries? We are giving surfers a product that will, in all likelihood fulfill their fantasy and, quite possibly, be mimicked by them at some point in the future. With this in mind I would suggest the following to you if I may. When purchasing content, try to purchase photosets where the models are practicing safe sex, if a surfer see’s a famous porn star using a condom then, ultimately, they themselves may use a condom when they next have sex. When building a site or gallery why not promote a condom affiliate program on the site, either through the use of a text link or a button or banner, not only are you being responsible but, you are also still going to make money should your surfer buy something from your condom sponsor. A good sponsor for Condoms is http://www.condomexpress.com.

    Promoting Safe Sex – The Bigger Picture.

    As mentioned in the opening paragraph of this article, more often than not, webmasters choose to go with bottom line profits over their morals however, thankfully this isn’t always the case. Whether you decide to start promoting safe sex as a method to promote condom sales or, whether you choose to promote safe sex as it is a moral that you believe in, one thing alone will stand true, by showing the surfer that sex can be safe and fun, we are definitely doing our part towards making sure that not every webmaster is seen as morel-less.

    Article written by Lee

  • Gay Online Dating – Offering Your Surfers An Alternative

    Date: 2011.02.22 | Category: General | Response: 0

    Whilst adult websites remain the most highly concentrated method of making money for affiliate programs we have slowly started to see a trend over the past few months of affiliate programs adding a new kind of site to their regular lineup, online dating sites however, as webmasters working in the adult industry how can we successfully market these sites on our existing traffic base? This is what we are going to look at in this article.

    Gay Online Dating – Some Facts And Figures.

    As mentioned above many affiliate programs now offer some form of online dating site whether it is for gay men and women or for their straight counterparts there is very little mentioned about the target audience these types of site attract so, with that said lets look at some figures from a recent Nielsen report in respect of online dating sites.

    The online dating market is expected to grow to become an estimated $642 Million dollar industry by 2008.

    On average, a user on a dating site will spend 1hour 45 minutes on the dating network itself.

    The highest ranked age group (27.64%) for online dating sites is between the ages of 35 and 44 years old.

    Men are more likely to a) Browse online dating profiles, b) Post a profile on a dating site, c) Respond to a dating profile and, d) Pay for access to a dating site than women.

    So what does this mean for us marketing our sites to gay men and women well, straight off the bat you can see that there is going to be a considerable boom in the online dating world and, with that boom will come a rather satisfying chunk of change also, the age group that spends most time on a dating site as mentioned above is also within the demographical group for the ages of gay online surfers. In addition, males as mentioned, are also more likely to respond to, post, browse or, more importantly here, pay for access to an online dating site making this an ideal opportunity for those of us who actively promote a gay site lineup to start supplementing our income by offering our surfers access to dating sites too.

    Gay Adult Dating – Affiliate Programs.

    So now we have the figures where do we go to find a gay adult dating affiliate program? Well, there are a couple of options for us, there is the highly recognized outpersonals.com as well as the gay.com dating area however, surprisingly enough, the more ‘mainstream’ dating sites such as date.com, match.com and even adultfriendfinder.com all have sections within their sites for gay men and women as well as gay specific tour pages and promotional materials.

    Gay Online Dating – Where To Market Our Sponsor.

    As with any type of new affiliate program the best way to start marketing them is to place a link on a less prominent page of your site so as to not send your high converting traffic off to a sponsor that may not work for you however, if you have a good network of sites then you might like to try adding your newly found dating affiliate program on your sites ‘exit’ links or even create a TGP gallery specifically for your dating sponsor utilizing softcore content. Also, one thing that I have personally found is that using text links always garners more clicks thru to the dating site than a regular button or banner so again, this may be something you would like to try. In essence though, first test your gay dating sponsor on a minimal traffic source to see what effect it has on your overall site then, once you have ran a test period you can adjust your marketing efforts appropriately.

    Gay Adult Dating – Recap.

    As we have seen above the marketplace for online dating is going to grow to a multimillion dollar industry and, whilst we already know that gay surfers are more affluent and willing to spend money if we can match our sponsors to the type of site they are looking for, why not also offer them an alternative to porn? Many webmasters often overlook the basic principles of marketing that is to say, don’t just give a potential buyer one option but rather, give them several options, by utilizing dating affiliate programs on our sites we are not only giving the surfer an option but, are also giving us a potential opportunity to make more money.

    Article written by Le

  • Using SSI For Auto Updates

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    We all realize the benefits of being able to save time when building sites so, I got into thinking, how can I make my sites look as if they are continually updated without the need to go in and update them manually? Enter the world of SSI.

    SSI is actually a nifty little tool, not only can you include files from a central location but, you can include them at specific times of the day, days of the week or even months of the year, very handy indeed if you are building any type of site that needs updating periodically.

    Once the main burst of work has been completed you can pretty much use the same files over and over again to help you out.

    So onto the auto updating SSI, the following SSI coding will enable you to update a page or pages based on which day of the month it is. It will check the day the page has been accessed and display the relevant information again, this is a handy thing to have should your sponsor be running a promotion over several days, all you need to do is update a selection of SSI files and all of your sites are updated instantly.

    <!–#config timefmt=”%d”–>
    <!–#include virtual=”/yourdirectory/$DATE_LOCAL.txt”–>

    What you need to do is create 31 text files named 01.txt right the way through to 31.txt take the SSI call above and edit the location of the SSI files on your server, you may like to have a central folder named /SSI/ for this purpose so the location would be changed to /domain.com/SSI/$DATE_LOCAL.txt

    I the 31 files you created you could have a table ad with eight of your sponsors links, an article in each one or even just a simple text link, anything that you may want to update can be included in these files.

    As I mentioned above you can base the time, date and even month of rotation to whatever you like to alter how the files are rotated and ultimately viewed on the web you should change the %d in the timefmt field to one of the following:

    %d : Day of the month requires 31 files named 01.txt to 31.txt
    %w : Day of the week requires 7 files named 0.txt to 6.txt
    %j : Day of the year requires 365 files named 001.txt to 365.txt
    %u : The week of the year requires 52 files named 00.txt to 53.txt
    %m : The month of the year requires 12 files named 01.txt to 12.txt
    %H : Hour of the day requires 24 files named 00.txt to 23.txt
    %M : Minute of the hour requires 60 files named 00.txt to 59.txt

    As you can see from the above there really are no limitations to the uses of updating using SSI and, apart fro the relative ease of use and the time saved using them should one sponsor not be converting for you all you need to do to swap sponsors is alter your central set of SSI files and you have instantly changed sponsors over all of your sites.

    Article written by Lee

  • Turning Opt In Mailings Into Pure Spam

    Date: 2011.02.24 | Category: Opt-in Mail | Response: 0

    Spam is frowned upon net wide and even more so than usual in the online adult industry especially unsolicited email Spam however, many webmasters do not seem to grasp the essential basics about what Spam is and more importantly, the point in which they themselves become Spammers, this is what we will take a look at in this brief article.

    Double And Single Opt In Mailings.

    By themselves single and double opt-in mailing lists can be a very effective method of promoting your or, your sponsors sites however, many webmasters forget the one fundamental rule when mailing their opt in subscribers, send them what they actually opted in for otherwise, you are spamming the list and ultimately, the recipients.

    The line between opt in mailings and Spam is a very finely drawn one at best however in the adult industry it seems the edges of this line are more blurred than almost anywhere else. Quite often you see webmasters on a variety of message boards selling their ‘opt in mailing list’ to one or two other webmasters however, when does the opt in to Spam equation fit in? This is what we will look at next.

    Turning Opt-In Mailings In To Spam Emails.

    So you have collected opt in email addresses diligently for the last god knows how long and, you have successfully emailed those lists numerous times with some good results to show for it and you want to let others profit from your lists whilst making some money for yourself at the same time. Time to sell the emails you have collected. This is your first mistake, the email addresses which you have collected for your subscriber mail outs have been opted into YOUR list not another webmasters and well, the second that another webmaster buys this list from you the list itself becomes pure unadulterated Spam, nothing more, nothing less.

    Of course, you don’t have to sell the list, you could offer the list up for trades however, the same thing applies, the second your mailing list changes hands that list not only becomes worthless to the person who has purchased it but, in effect, the list has now become worthless to you.

    Adult Opt In Email Lists.

    To make a long term profit from your opt in mailing lists the one thing that you should ensure is that the list you have remains clean and, more importantly than that, remains private, if you have spent several years collecting these email addresses why would you turn the revenue potential of them in to nothing less than worthless overnight? Keep the lists as clean and as private as possible, the next time a sponsor opens a paysite that is on the same topic as your mailing list you can send your opt in mailer to your database and profit from the unexposed site.

    Adult Opt In Mailing Lists Overview.

    When all is said and done, as mentioned above opt in adult mailing lists are a very hard to find commodity and, if you have a list for a specific niche or market the list becomes even harder to find, keep your list as clean as possible and ensure that you and only you use the opt in mailing list. By keeping the email addresses you have collected out of the grasp of other webmasters you have the potential to make revenue from that list for as long as you maintain it however, all of your hard work can be undone overnight if you sell the list to the wrong webmaster. In short, if someone opts in to a mailing list owned by you, make sure you are the only person who mails them from that list otherwise, you have indirectly spammed that email address.

    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