• Google – Manipulate Your Listings For More Traffic

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

    Google seems to be the Search Engine that everyone talks about almost on a daily basis however, far from being about search engine optimization and specifically about Google related SEO i wanted to touch on something new that, perhaps you would not have already thought about.

    Manipulating Google Traffic.

    So your site is already listed in Google but you want to increase the amount of traffic you receive, one way that we as a company have been successfully using for the last 18 months is that of manipulating the display of our clickable links in Google, how are we doing this? Simple, using ASCII character codes in your meta tags.

    ASCII In Your Meta Tags.

    ASCII (American Standard Code for Information Interchange) it has been proven, when used in your HTML page Meta Tags will actually display not only letters and numbers but, symbols as well, as a webmaster this can give you a great advantage over how much traffic you can pull from your Google listings and, not only Google, a few of the other search engines also read ASCII code when it is found in your Meta Tags.

    Putting This To Use Practically.

    A good method of putting this to use would be utilizing in your Meta Tags as follows.

    <title>Site Name <ascii code here> page title</title>
    <meta name=”Description” content=”normal page description”>
    <meta name=”Keywords” content=”normal keywords”>

    This will display a search engine listing that not only has your site name on it as well as a description but, in the position where the ASCII code will appear you will also have an attention grabbing symbol enuring that your site stands out from all the others listed on the same search engine results page as yours.

    ASCII Meta Tags – An Overview.

    Hopefully you have seen how adapting your current HTML page Meta Tags by placing an ASCII character code within them can benefit you for gleeming further search engine traffic to your sites and, with this new found knowledge you may well place both your sites traffic and your bottom line profits ahead of other webmasters.

    Article written by Lee

  • Making Money From Adult Webmaster Referrals

    Date: 2011.02.21 | Category: General | Response: 0

    One method of income generation that is very rarely talked about in the industry is that of the webmaster, from the new webmasters to the adult industry right up to those who have been in the biz some time.

    One of the easiest ways to generate ‘long term’ income is by referring webmasters to programs using your own linking (referral) codes.

    However, this is for some a huge step out of their everyday site building even though it shouldn’t be.

    This is what we will investigate in this article.

    By now we should at least have a fair few sites online and getting surfer traffic but, how many of us get traffic from other webmasters and don’t even know about it?

    The chances are, if you submit a site to ANYWHERE you will at least get one webmaster hit to it regardless of whether it is a webmaster of a TGP, Links List, Dmoz Editor etc these are all potential money makers for you.

    One of the easiest ways to make money from other webmasters is to simply have a link on each and every site you build in text that says ‘webmasters’ this should be linked to a single page on your domain with a listing of various affiliate programs you use or can recommend.

    Often placing a button or a banner on this page for each of the referral programs will work much better for you as the webmaster can actually see a little more information about the sponsor you are trying to make them join.

    We all know of some of the big sponsors like ARS, Topbucks, Sic Cash etc etc but, what about the smaller programs that, perhaps not many webmasters know about, these would be the ideal types of sponsor to use on your webmaster page.

    However, in addition to the affiliate programs you could also recommend hosting companies, content providers etc etc for example, the following companies have referral programs that you could use on this page:

    Content Providers:

    http://content.xphotography.com
    http://matrixcontent.com
    http://pixmasters.com

    Hosting Providers:

    http://webair.com

    Message Forums:

    http://arsresources.com/forum/
    http://xnations.com

    Traffic Generation:

    http://adultbuttonexchange.com
    http://pornclient.com

    As you can see from the small list above, you could have more than one way for webmasters to make you some additional profits in the form of either, cold hard cash or, from some of the places, additional traffic to your sites.

    Hopefully list brief article will have given you some ideas as to how you can make some additional money from webmasters visiting your site and, don’t forget, once you have the page linked on your site, it will, inevitably get into the search engines, so keyword the page up and you might start generating more webmaster traffic than you could imagine.

    Article written by Lee.

  • Building Your Own Opt In Mailing List

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

    Despite the constant launch of ‘new and improved’ email collection programs one of the more popular emails I receive each month ask how webmasters can actually start their own opt-in email list for surfers. Surprisingly enough, this is a fairly simple process and, should only realistically take a webmaster 10-15 minutes to have an opt-in email script installed.

    However, the second type of email I get from webmasters who have already installed one of these scripts is asking how they can ensure that surfers sign up to their lists this is what I will approach in this article.

    One of the easiest ways to make sure surfers join your opt0in list is to offer them a financial gain by doing so, I don’t mean you should literally pay them for their email address but, why not offer them something for free? A daily picture by email, free porn site access etc etc.

    The next biggest mistake I find are that webmasters simply place a collection box saying something like ‘enter your email address here for our newsletter’ and, lets be honest, it isn’t very enticing. Ideally you need to have a ‘headline’ that will catch the surfers attention and actually ‘make’ them want to join your list. Be specific yet be vague (bit hard I know) and you’ll soon see your list grow from one new subscriber a week to hundreds of them!

    The next thing you need to take into consideration is how quickly, not only your site, but the page with your collection box loads, if you are using a pop-up console, make sure it is heavy in text not graphics with the first words at the top not saying ‘free porn’ but a similar meaning text, everyone and their dog has seen the words ‘free porn’ on countless other porn sites. Yours NEEDS to stand out!

    You should use an effective title if you are going to be using pop-up windows for your email collection. in the title bar don’t have the window called ‘pop-up’ have it named appropriately for the niche you are trying to collect the surfers email address from. Make it relevant, make it concise.

    Balance the collection page, any type of page you build for your site should at least be appealing to the eye. Meaning that your fonts, colors and actual text need to contrast together perfectly. If you do use images on this page try to have them prominent yet not overbearing to the surfer.

    Offer a way to close a pop-up if this is what you are using to collect the emails after all, they (the surfer) may decide they don’t want to give you their email until they have seen what your site can offer. In the same way, make sure you have a link from your sites to your collection page so, if a surfer decides they do want to give you their email address they can do it without the need of closing your site and reloading it afresh.

    Overall however, the best rule you can follow is to keep to the point and keep it simple. This way you will gain the surfers attention quickly and easily and, the surfer will not be distracted from the main purpose of having them on your site – getting to your sponsor.

    Hopefully the information above will enable you to start having some more success with your traffic and, once you have the surfers email address make sure you treat it with the respect you would want your own to be treat with, an email address is a sacred thing to most surfers, if you Spam them daily they will leave your opt-in list quickly however, if you send them a ‘newsletter’ once a week / month filled with relevant information you will soon find your list growing exponentially.

    Article written by Lee.

  • Everybody’s Going Gay

    Date: 2011.02.22 | Category: General | Response: 0

    The past few months in the online adult industry have seen some rather dramatic changes happen from Visa charging additional fees to accept their credit cards online, Paypal no longer processing adult and, several large companies going out of business. However, one thing that also seems to be changing for the better is the amount of webmasters looking at new niches to promote. Surprisingly, the one niche that many webmasters are looking at is that of the gay niche.

    Where The Money’s At.

    For years, the adult webmaster community has been split amongst themselves, those that are only focused on straight niches and, those that focus on gay niches however. As of late, more and more of those webmasters from the first group are looking to make additional income from the gay niche. With this inevitable surge in gay adult sites coming online, there are bound to be some knock-on effects, and those webmasters just starting to look at the gay niche, will return to what they know. However, for most, i think this is going to be a fruitful encounter with one of the industry less socially accepted markets. Many of the webmasters who have been concentrating solely on the straight market for their income are going to realize just how much money they have been losing out on for all these years. And with this realization, comes its own set of problems for the industry as a whole.

    The Gay Market.

    Whether you are a straight webmaster or a gay webmaster the one thing that will become apparent is that your sites are going to reflect you in both, how they look and, the marketing techniques you use. More importantly, the attitude you have towards your gay surfers will in fact show through. Many of the straight webmasters whom, perhaps are not as tolerant towards this niche will, almost certainly fail before they can really get going. Marketing gay adult sites is far different than marketing straight adult sites. You have to know the surfer, understand what they want and, more importantly, know the terminology in the gay market. Many times a post can be seen on various message boards belittling those webmasters who are openly gay – often accompanied by terms such as ‘fag’, ‘queer’, ‘homo’, etc along with with images being posted that, quite frankly, would turn most people’s stomach.

    The gay niche is much more than just a single online market, it is a whole lifestyle unto itself. While this lifestyle is affluent (having an abundance of readily available money to spend) it will take a lot of work and perseverance to ensure you get your share of this market.

    Starting Points.

    As I mentioned above, the main thing many webmasters are going to have to learn are the terms of the gay market, what is a twink? A bear? A cub? What products work well on gay sites? Despite what most people think, you cant just throw up some banners with naked men on them and turn a profit. Match your content to a niche and then, match your advertising to your content, what use is it having bears on a site if, the paysite you are promoting features Teens ‘n’ Twinks?

    Similarly, your text links, ‘Click Here For Hot Gay Action’ might get you a few clicks but, by targeting your surfers even more, you will see how some of the gay niches can really turn a profit. The trick is this, get the surfer to your site and actually give them something that you think will suit their desires. This may mean making a 10% commission on a sex toy sale as oppose to a $35 commission on a pay site membership. And so be it. Those 10%’ers start to add up after a few sales.

    In Summary.

    To summarize, the gay niche will make you money however, to make money you will need to invest something that, perhaps isn’t for everyone – a lot of time and understanding. Marketing the gay niche isn’t for everyone, we have seen this too many times. However for those who are, spending time adding a gay market portfolio to there straight, with a little time increase your overall income significantly.

    Article written by Le

  • What’s In A Niche?

    Date: 2011.02.24 | Category: General | Response: 0

    Many webmasters realize what the different ‘fetishes’ the surfers have are but, how many of us realize these are actually niches and, how many of realize that these niches can be broken down into smaller sub niches of the particular fetish the surfer is looking for?

    Lets take an example of say, the ‘lesbian’ niche.

    Of course we all know what the lesbian niche entails, two women getting naked with each other right? Wrong.

    There is much more to it than that, for example, obviously lesbian sites appeal to, well, they appeal to guys who want to fantasize about getting it on with two women but, what about the female surfers? Sure, some women probably join lesbian paysites too.

    That’s one ‘sub-niche’ of lesbian right there, this can be broken down even further though for examples, Ebony Lesbians, Teenage Lesbians, Mature Lesbians, the list goes on and on and on.

    So how do we choose a niche to market in adult?

    The first and foremost thing you should try when choosing ‘your’ niche is to try something that either excites you or, appeals to you in a non sexual manner, if you are into Lesbian Midgets getting it on, then start off with that for your niche.

    Likewise, if guys getting down and dirty is the thing that floats your boat, choose that as your niche, you should already know enough about the niche you choose primarily to be able to sell something to the surfer. If it excites you, it will more than likely excite a surfer and result in a sale.

    Of course, the above statement isn’t always true, I know plenty of straight webmasters who market the gay niche VERY successfully, they have found a method that works for them and developed their business from there it probably wasn’t easy at the start but, nothing easy will make you the ‘real’ money that there is in adult.

    You need to experiment, constantly adapt and change the way you do business, if you try something and it doesn’t work, ask yourself why, what could you have changed that might have made a difference and, instead of changing it on the first site you built, change it on your next one, that way, even though it may not work at this moment in time, you will no doubt find it will work at a later date just as you will find that something that works well for you now may not work at all later on in your business career.

    Once you have mastered a general niche you should then think about trying some of the sub niches that are available to you, there is more to teen than than just cute teenage girls lying naked on a bed and getting screwed rotten by some guy. just as you saw there was more to the lesbian niche above.

    Take your sponsors tour for ideas, often you will notice things that spark some though and, once you have that spark, you should ensure it develops into a flame.

    Even something as simple as a tattoo on a model or a piercing can be the tart of a whole new niche, look at the things that other webmasters may not be, just because there isn’t a proliferation of teenage pierced lesbian sites, doesn’t mean that someone doesn’t want to join one and, who knows, that weird sexual fetish you build a site for now may become popular in 6 months time.

    Basically, what I am trying to say is that as adult webmasters we need to investigate all aspects of the niche we want to or, currently do market, just because a surfer comes to the front page of a lesbian site, doesn’t mean that they wont also be interested in an ebony site, its all down to how we market our sponsors paysites as webmasters.

    Article written by Lee

  • Mixing Business With Pleasure

    Date: 2011.02.23 | Category: General | Response: 0

    Regardless of your status in the world of web mastering there will come a time when you will want to attend one of the numerous webmaster seminars. However, what should you do to plan for the day you attend your first seminar, are there some things you should aim for and things you shouldn’t? Well in this article we will take a look at planning your conventions.

    Before attending the convention of your choice there are a few things that you should prepare these are.

    Exercise.

    get out for half an hour each day at least two weeks before the day of your journey to the convention. You will be surprised at how much time you will spend walking around the convention floor and, by getting some basic exercise in before hand you wont feel the strain of being on your feet for hours at a time instead of being sat in front of your computer.

    Contacts.

    Make a list of people that you want to see and arrange with them in advance a time to meet up and have a chat. Most people who attend these conventions are busy for the entire course of the show. You may not get a chance to pop by their booth and talk tot hem if someone has already beaten you by booking a time to chat with the person you want to meet. It is also a good idea to trade hotel and cell phone information before leaving for the show, this way, if anything happens to make you miss a possible appointment you can call or leave a message informing them you will either be late or canceling.

    Seminars / Parties.

    Take a look at the events and seminars happening at the convention before you go, plan which ones you will want to attend make a list and take it with you. This will save you countless hours of wandering around aimlessly hoping to make all of the seminars and get to as many parties as you can in three days.

    Booths.

    Look at who is exhibiting at the convention, find out their booth number and make a note of it. List any specific details you may want to speak to the booth owners about. You can guarantee if you go unprepared you will miss out that important question or selling opportunity you wanted to make.

    Baggage.

    When packing your suitcase for the convention make sure you leave plenty of room for convention give a ways, You will be surprised at what you will be given for free at these shows, t-shirts, toys, books, flyers, you name it, you will be offered it.

    So, you have done the pre check, what do you do when you actually arrive at the convention?

    Food.

    Eat at every opportunity you get. Most people will end up not eating for the entire length of the convention. perhaps even arrange to meet up with someone you want to talk to in a restaurant and grab a bite to eat whilst talking business.

    Business Cards.

    Take them and lots of them. Everyone and anyone will ask you for your contact details, if you have a bunch of business cards with you at all times, you can just hand them out. Make sure you include your full contact details, your name, nickname, email, icq and, aim contact details. The more ways you give someone to reach you, the more chance you have of them actually attempting to get in touch with you.

    Clothing.

    Wear comfortable, clothing and shoes. Think casual but, also think business, shorts and t-shirt may be good for comfort but, it doesn’t portray a good business image and, that’s the sole reason you are attending the convention, to do business.

    Parties.

    If you get offered an invite to a party, take it, plans change so quickly at the conventions, your friends may suddenly feel tired and you have nothing left to do, attend a party, then you have another opportunity to network some more.

    Behavior.

    Although the conventions are a fun atmosphere, don’t forget that they are in the first instance a place to do business, treat it as such, you may miss out on the ideal business opportunities if you are acting like a drunk ass hole. This will reflect badly on you long term.

    You have taken in all the events you can handle, you have made your way back home what next? how exactly do you put this information and your new found contacts to use?

    Business Cards.

    Go through all the business cards you have been given and send your new found contacts a quick email thanking them for their time. This will be a good way for you to give them another reminder of what you spoke to them about and, I have personally gotten more business from the shows using this follow up method than if I had just waited for them to contact me.

    Notes.

    If you made any notes at the show, take a few minutes to re-write them, keep them safe in a notepad, you never know when one of these bits of information may come in handy.

    Well, that’s pretty much it for the basics of the adult conventions, obviously there is more to it than this but, if you are attending your first convention you will have a bit of insight into the work involved.

    Article written by Lee

  • Domain Name Renewals – The Basics

    Date: 2011.02.22 | Category: Domain Names | Response: 0

    As an adult webmaster there is one thing that we all own which we build our businesses on, a domain name and, with this comes the responsibility to ensure that as long as we are running our business from any given domain that we ensure they are constantly under our control this is where domain name renewsl come into play.

    Domain Name Registration Periods.

    Almost all reputable domain name registrars will allow you to purchase a domain for anywhere between one and ten year periods. Many webmasters however only choose to register their domains for one year at a time and this, is where many webmaster can run into problems with their domains. More often than not webmasters will either forget to renew their domain names completely or, are not aware that they are even coming up for renewal. For this reason it is usually best to ensure that you register your domains for a minimum period of two years, this gives you a good time frame to start using the domain as well as ensuring you have enough funds available by the time the domain name comes due for renewal.

    How To Stay On Top Of Your Renewals.

    The simplest way to ensure that you keep on top of the domain names you own and when they are due for renewal is to keep a written document detailing as much information as possible about your domains, this document should include information such as the domain name itself, the registrar you used to register your domain name, the cost of the domain name and, most importantly, where the domain is pointing to, the period of registration and, the date when the domain needs to be renewed. By having this information readily available and, by keeping this document up to date with each new domain name purchase you should be able to ensure that no matter when your domain/s become due for renewal that you are on the ball with paying the domain name renewal fees.

    Domain Name Renewals Overview.

    Regardless of when you register a domain name the one way you can be sure to be the owner of the domain for years to come is to ensure that you keep accurate, detailed records of each domain name purchase, whether you keep this written on a calendar, on a piece of paper or, somewhere else, you should make part of your monthly routine checking this document and making sure that the domains you own are all fully working and, more importantly, are fully paid up.

    Article written by Lee

  • The Adult Internet – More Than Just Porn

    Date: 2011.02.24 | Category: General | Response: 0

    So you have several adult websites up and running and, if you are one of the lucky few in this day and age you have already started to make money from your adult sponsor programs however, there are so many other ways that webmasters can make money in the adult industry in addition to their regular ‘porn site’ sponsors yet, many webmasters do not realize there are vast opportunities awaiting them.

    Lets spend a few moments to look at the alternative sources of income that we can use in the adult industry and also take a look at the basics of each type of affiliate system.

    Email Collection.

    Opt in email is big business, there is no denying this fact so why not jump on the opt in email collecting bandwagon? Most email collection sponsors will offer you anywhere from $0.50 per email collected to $2.00 per email collected and, better still, to start making money from your existing traffic base all you need to do is include a small email collection box.

    Software Programs.

    Many of the larger adult affiliate programs now offer their webmasters a range of software products to generate additional income, many of these products are good for use not only in adult but, also in mainstream. For instance, Anonymous browsing software, history deletion software, IE Toolbars and even submission programs are all good ways to generate additional income either on a per download or, per sale basis. Best of all, you only need to add a new banner to the sites you currently have in order to get a share of this lucrative market.

    Herbal Products.

    Penis Pills, Breast Enlargement, Vitamin Supplements, you name it you can sell it on adult traffic. Whether you run a TGP, Link List or your own collection of free sites, these herbal products can often sell much better than ‘porn sites’ and, for the most part, the payout levels are the same, if not higher than what your regular ‘porn site’ trial will make you. Again to get started with this type of sales all you need to do is add a text link or banner to your existing sites.

    Casino Sites.

    Gambling makes BIG money, just look at Vegas for the example, millions of people a year visit Nevada to gamble and millions more simply can’t get there for a range of reasons however, almost every home in the United States has a computer and internet connection so why not start using this to your advantage? Many of the larger casino affiliate programs will pay based on the amount of funds credited to a new users account and, to get started making money from casino sites it is quite literally as easy as adding a banner or text link to your existing sites again.

    Pre Paid Services.

    Such as Credit Cards and the likes, selling these types of products to your adult surfers not only offers then ‘anonymity’ on the web when they do make online purchases but at the same time when your surfers sign up or one of these pre-paid credit cards you will be making some money in the process. Often however you will find that these types of affiliate program do not payout as much ‘long term’ as they are pretty much a first time deal as far as, once the surfer spends money to initially ‘charge’ their pre paid card with funds, that is when you will make money and not again. Still, even if you can make $50 by selling one of these cards, its still an additional $50 you wouldn’t have made otherwise.

    Adding To Your Profits.

    As you can see from the above, there are a wide range of products and services you can offer your surfers and, as we all know, the more things we can offer our ‘customers’ the more chance we have at one of them buying something. Of course, as with anything, the more effort we put into marketing these products and services the more chance e have at making a sale however, unless we try to sell the surfer something other than porn, how will we know whether they will buy or not?

    Article written by Lee

  • Records Keeping Compliance Checklist for European Content Providers

    Date: 2011.02.24 | Category: 2257 | Response: 0

    More and more European Content Producers are choosing to do business with American. webmasters. While citizens of foreign countries cannot be compelled to comply with United States’ restrictions on the creation of adult material, business realities are forcing foreign content producers to consider voluntary compliance. American webmasters, painfully cognizant of the increasing need to focus on legal compliance, consistently reject foreign content that is not produced in compliance with 18 U.S.C. §2257.  Non-compliant content not only increases the risk that an underage model could slip through, but failure to strictly comply is itself a federal felony, exposing those involved to a 2-year prison term.  Given the substantial compliance motivations involved, foreign content producers are expected to adopt the U.S. requirements as the global standard for creation of sexually explicit imagery.  The following constitutes a bare minimum checklist for compliance with the requirements of Section 2257:

    1) Assume that all erotic images require Section 2257 compliance:  While the law only applies to actual “sexually explicit activity,” it is ill-advised for the content producer or the webmaster to attempt to guess which images require compliance, and which can be safely distributed without compliance. Since child pornography does not require the depiction of sexual activity to meet the federal definition, such distinctions can be risky business. And, in any event, a release given by a minor normally is not enforceable.

    2) Obtain a signed compliance form created by a competent attorney:  Section 2257 requires that certain records be created containing certain information. The right form is the best place to start.

    3) Obtain, at a minimum, the following information from each model:

    a.     Date Of Birth

    b.     Legal Name

    c.     All other names, aliases, nick names, stage names, and maiden names

    d.     Social Security Number

    e.     Copy of Government-Issued Identification containing a picture; preferably 2 pieces of identification. Note the requirement that the producer actually examine the identification document, not just the copies.

    f.       Address, phone and other contact information

    g.      The model’s signature

    4) Require the model to execute a binding model release prepared by a competent attorney.  The images are only as legal as the model release backing them up.  If all relevant rights have not been transferred and released by a valid model release, both the webmaster and the content producer are subject to claims once the content is displayed on a Web site.

    5) Maintain the records so that they are cross-indexed by the models’ legal names and stage names and by web page. Alternatively, provide copies of all records to the webmaster if the webmaster will act as Records Custodian. You need to discuss the particulars of this with an attorney, because each circumstance may be unique.

    6) The Records Custodian should maintain an off-site backup copy of the records: What happens if there is a fire or a government seizure?

    7) Include a conspicuous records custodian disclosure on all CD’s / DVD’s containing erotic imagery, including the full legal name of the custodian and physical address where the records are kept.  The disclosure should also certify that all models are over the age of 18, and include the date when the content was first created, published or republished.  Placement of the disclosure on the product should be reviewed by an attorney.

    Only through strict compliance with the mandates of Section 2257 will American webmasters fully embrace content produced overseas.  The right compliance procedure will open profitable markets for foreign content producers, and result in a wider variety of adult content for both webmasters and consumers.

    Article written by Lawrence Walters

  • 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