-
Mirroring Adult Sites – Stage Two
Ok, in stage 1 of this tutorial we learnt the basic ‘setup’ for our multisite generation now we have to start putting the rest of our puzzle together.
At this stage in the tutorial we should now have a 50 pic free site, all of the images are in the appropriate folder on our HD along with the HTML in their own folder. If you have not already done so, you need to ensure that when you add/added the links to your individual HTML pages that you call the images like this:
/FreeSite/Images/pic1.jpg
The Thumbnails like this:
/FreeSite/Images/Thumbs/thumb1.jpg
The gallery links like this:
/FreeSite/Galleries/gallery1.html
And the FPA from the warning page like this:
/FreeSite/FPA/fpa.html
Why are we calling the links like this and not like, http://www.mydomain.com/FreeSite/Galleries/gallery1.html I hear you ask, well the answer is simple, in order to use this site TEMPLATE over and over again, we need to ensure that there is a standard way of calling the links, this way, once we decide duplicate this site on a different domain, all we do is upload the folder to our server with a different set of images and we have another set of sites built.
Ok, we now have our free site but, we have some empty folders that need filling up, here is how we are going to achieve that.
What we now have to do is re-open the Gallery Pages, DO NOT change the image calls or the thumbnail calls however, what you will need to do is select 15 TGP’s that you would like to submit to, download the recip buttons for these TGP’s and save them in the /FreeSite/Images/Recips/ folder.
Now we have the gallery pages open we need to modify them like this..
Take the top text link that you created and replace that with a 3 cell table. In this table for the first gallery, you need to call the first 3 recip links for the TGP’s you want to submit to and link them to the appropriate recip url for each of the TGP’s again, calling the recip images like this, /FreeSite/Recips/recip1.gif. Also, you will need to modify the text link at the bottom of your gallery pages, I would suggest creating an 8 cell table, containing 8 niche text links, four of which should go to your Single-Site FPA’s (as created for the surfer trap) and the remaining 4 text links should go directly to your sponsors site tour page.
Now save this newly created page as tgp1.html in the /FreeSite/TGP/ folder. Do the above again for the remaining 4 gallery pages but calling a different set of recip links each time. each time you modify a gallery page save it in the /FreeSite/TGP/ folder so gallery2.html would be renamed to tgp2.html, Gallery 3 would be called tgp3.html and so on.
What you should now have is a single 50 pic free site with 5 galleries of 10 pics, all pics going to the larger image on a HTML page and, 5 TGP galleries.
This is as far as we go with the tutorial today however, in the next stage we will continue to fill in the rest of the puzzle pieces.
Article written by Lee
-
Outsourcing – Becoming More Profitable Online
As webmasters we already do a lot of outsourcing from hosting our sites to design and marketing to getting traffic which we send to our sponsors. However, many of us are missing out on opportunities to outsource even more of our work and, by missing these opportunities, we are losing money.
Outsourcing work can consist of anything from translations, design, scripting, marketing, seo, site submissions and pretty much anything and everything in between.
However, before we outsource some work to others there are several factors that need to be taken into consideration these are what will be addressed in this article.
Cost.
Ensuring we work ‘cost-effectively’ is one thing we all want to do, we need to make a profit whilst still being able to develop our business further. One good way to find out if the costs of outsourcing outweighs the cost of keeping the work in house to make a simple list of both the time and financial involvements both in and out of house. For example, in house you may have employees that need paying to do the work, you will almost certainly need to spend a lot of your own time on the project and, more likely than not you will need to research the work you want to undertake, all of this can become costly when looked at in detail a good reason to outsource your work to another company or individual.Benefits.
How will outsourcing benefit you and your business? As with the cost example above make a list of things that will benefit you from the time saved on the project to the monetary benefits of outsourcing the work and the completion times often, by outsourcing your work you can have it done in much less time than if you handled it yourself ‘in-house’ so to speak.Flexibility.
What are the indirect benefits of you outsourcing your work? Not necessarily the money saved but more along the lines of time management. if you give a designer a list of ideas and suggestions you WANT your work to have, chances are, they will get it right the first time whereas, if you amble along experimenting with what you actually create you may, in effect, take much longer to complete the task in hand. By saving yourself time what else can you get done, whether it is building more sites or marketing your existing sites further the indirect benefits all weigh up more often than not, these benefits will be favorable to outsourcing the work.Risk.
This is probably THE most important thing to take into account when considering outsourcing your work, what happens if, you pay for the outsourcing and, overnight the company who is doing the work for you goes out of business? What happens if someone you have in your employ decides that they would rather be doing the work rather than you outsourcing it? Financially can you afford to outsource the work? All of these factors need to be considered before undertaking any form of outsourcing.Basically, what I am trying to tell you is that, if you spend a few moments actually running the numbers as oppose to the ideas you have in respect of your workload you will see that outsourcing can be come a valuable asset to your business and, more importantly, your bottom line profits.
Article written by Lee
-
Quick Loading Pages Plus Saving Bandwidth
Have you noticed how many of the sites out there are trying to make themselves look better than they actually are by using heavy graphics and media files? The fact of the matter is this, most surfers who visit your we pages are viewing them on a screen that is between 15 and 19 inches wide, can only see 216 colors and, are on a connection of 33.6 kb per second (If they are lucky).
What Does All This Mean?
What does this mean to you as a webmaster? Simple, try this test.Connect to the internet on a 33.6 connection, type in your url and, hold your breath. Does the page load before you need to start gasping for air? If so then you are designing your sites correctly, if not, your pages are far to big in file size.
I’m pretty sure that some of you can hold your breath for a long period of time so, here is a basic rule of web design. Your pages should, be no larger in file size than 50k in fact, I would even go so far as to say try getting your pages under 30k in size.
How Can I Get It Under 50K? 30K?
First, all your graphic images should be as small as possible. Try to get them smaller than 4k. Going up to 6k is reasonable. When designing a graphic for the web site keep in mind the number of colors being used.I know, from designing banners myself, it was hard for me to go from millions of color to only 216. Yes, 216 is the number of colors you have on a web safe color pallet.
Use solid colors when designing your image. PhotoShop has made the gradient such a popular tool. It looks good to fade things in and out. I always see a background border made up of this gradient. I always right click on that image to see the size. The 8k-12k is not worth the space. The problem with the gradient is it uses many colors and dithering. Both take up big time K. The more color you have in an image the bigger it’s going to be.
Use design more, graphics less. For a web page to be successful it needs to download quickly and look good.
Here is the dilemma download quick or look good? Instead of designing graphics and taking pictures and turning them into jpgs to make your web page look good, try using color schemes. Use cell colors to make borders. Use the negative space on your web site. What is not there is just as important as what is there.
Remember sometimes less is more. When in doubt think of a typical visitor coming to your web page. Would that extra graphic sell them or keep them coming back again and again. If the answer is yes, by all means keep it. If the answer is “well maybe” or “it just looks good there”, yank it.
Your surfers will appreciate not waiting more then they have to. The web is here to make our life easier not to sit in front of a screen waiting for heavy web pages to download.
Article written by Lee
-
Newsletter Know How – A Guide To Writing Newsletters
Email newsletters are a great way to make contact with existing clients and, prospective clients which makes them a great marketing tool. The biggest bonus however, over Email newsletters rather than print ones is that you have virtually no cost involved with writing and, ultimately, mailing them out.
There is a wide variety of online newsletter on the internet. however, probably the simplest form for most webmasters is the email newsletter. Email provides you with a quick way to keep your name out there, build trust with you readers and, hopefully attract a few sales. If you archive your newsletter also this is a great way to get additional pages into the search engines and, as such, it then becomes a good traffic driver to your website regardless of the amount of subscribers you have. However one of the most important benefits of having an email newsletter sent on a regular basis is that it build brand recognition of your website or business.
Your newsletter should provide information, not just of an advertising nature but that, should also be informative to your subscribers. In doing this you are offering information of value and, ultimately, ensuring that your subscribers remain. However, remember newsletters are for promoting your area of expertise not just a vehicle for revenue generation.
One of the first things you should consider when deciding to do a newsletter is the amount of commitment you will have to put towards the project. Whether you start a monthly, weekly or, daily newsletter a great deal of commitment must be made to both the newsletter and, more importantly, your subscribers. For example, We generally spend a good 3 days researching the articles that have been submitted and trying to ensure that the details contained within them are relevant at the time of sending the email, this is not an easy task especially when the adult internet is constantly developing. If you don’t have the time to research and maintain consistency in your newsletter, then don’t even consider doing one, it isn’t for you at the present time.
Now you have decided you can make the commitment required to run a successful email newsletter what do you do next? Collect email addresses. Probably one of the easiest ways to get email subscribers to join your list is to go through your current mail clients contact list and manually add those email addresses or, further still, you may even have an opt in collection program that you have been using for a while but have never really had the time to commit to writing a newsletter worthy of sending out. Remember though, an email list is only as good as the addresses contained within it. You want to run an OPT-IN email list, any other type of list will be considered Spam and, that will do you more damage than good. Of course, if you haven’t already got an email collection program you can find one online there are literally hundreds of them floating around that you can get for free from sites like http://www.hotscripts.com.
So, you now have your emails, onto writing your newsletter. I think the greatest part of email is that it is somewhat less formal than writing for print copy. Email in fact tends to be very informal in comparison. The best way at approaching writing for an email newsletter is to write how you talk, it is more enjoyable for the reader and gives your newsletter a personality that no one else can emulate. Content wise, that depends on what you do, what would YOU like to see if you subscribed to an email list of the type you are going to be running and, more importantly, what would ensure you stay subscribed to the newsletter? Ask your friends, colleagues and, peers what they would like to see in an email newsletter, often they have been looking for information that is not readily available, this is an area where you then start to provide a service that no one else does.
So you are at the point where you are starting to realize that running a newsletter is a lot of work correct? Well, it is. However, the effort, work and, time spent in putting your newsletter together will help you build a relationship with people whom, in all actuality, you may probably not ever meet in a face to face situation and, more importantly, it can become a great income generator over time.
Article written by Lee
-
Traffic Brokers – Buying Additional Traffic
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.
-
Hard Hitting – In Your Face – This Is Reality
It started on terrestrial television some 5 years ago with the first episode of Big Brother, then it went from a house of captive stars to talent scouts looking to create a new pop sensation. From there we saw a variety of television series with ‘reality’ as the main focus.
It only follows suit that this popular marketing machine should hit the adult internet; and, it hit in a major way. And now, almost every major adult sponsor has one common type of site in their portfolio – a reality site.
However, one thing that many in the adult industry are not aware of is that the ‘reality’ type adult sites have been around for longer than what most realize. Before the live sex up-sells and chat rooms, Brandon Marley, a gay website owner, has had a site catering towards the gay reality niche – the premise of his site, as a gay male on the prowl, he goes to the street looking for straight guys to use as content; once he has them in the studio, he lets them work their magic and, inevitably, gets down to business, sometimes persuading the guys to have sex, sometimes, grossing them out whilst they up and flee the studio, all of this is caught on tape and published online.
Next is the web cam phenomenon. Reality at it’s utmost, watching live guys talk, strip, jerk off and discuss the most intimate desires in a chat room. The gay market flocks to reality like a moth to a flame. And surprisingly, much of the focus of ‘reality’ has been pointed to the straight adult audience, with a limited amount of gay orientated reality sites being launched.
That is until now, more and more programs and providers are coming up with reality to the gay market. The key to the on going success and growth of these sites is the, always allusive, original idea.
From M.I.L.F To D.I.L.F.
One of the popular types of reality site we saw explode was MILF (Moms I Like To Fuck). Spurred not only by the popular teenage movie American Pie, this type of reality hits a spot of desire within some surfers to days gone by where they had a secret crush on someone’s mom. Well if it’s possible that a straight man could have a crush on a mom, what about the young gay man having a crush on a dad?“Well, if the straight markets can have MILF, why can’t the gay arena have DILF?’ asks Gary-Alan, owner of the new gay reality site DILF.com from http://www.studmoney.com.
The gay markets have been yelling they are looking for something different to sell. So rather than taking DILF to the straight adult reality markets DILF takes it’s unique flavor and gears it toward to gay market.
‘Reality sells! It is one of the freshest and highest converting niches yet. We see this from great sites like Chi Chi La Rue and Brandon Marley – two of my most favorite sites. I have been listening to webmaster for years. They are looking for something different not just in a reality sense but something that features older guys, not your typical young buff stud. I think when the idea to finally launch StudMoney came up, the first thing that was mentioned was DILF. So we’ve brought the two aspects together and given the gay market webmasters the opportunity to promote a reality site that will convert and, convert well on their traffic.” Alan tells us.
So What Are Reality Sites?
Reality sites cater to a specific target audience, those people who don’t want to see the usual porn stars that are found on almost every other site on the web. Instead, these sites offer exclusive real-life models that could next door neighbor’s sister, mother or, in the case of DILF, their father. Reality opens your site offerings, giving you the opportunity to retain surfers with frequent updates and story lines that will peak their interests. You get to set the standard of your entire site to promote not only the content but a familiarity with your core performers.Starting Reality Site.
So how do you go about setting up a reality niche pay site? In all honesty, there is more involved than putting up a cookie-cutter site online.First you need a concept. With as many niches available today you need something fresh. Mind you there are ideas to mimic but new sells. Once the ideas are down then you need to find content. This isn’t as easy as buying a standard CD, it has to be fresh and new so finding a good photographer to shoot exclusive custom content. Even if you decide you will shoot your own content, you will need to be sure to schedule fresh new shoots frequently. This is important with any type of site, but none more than reality.
Once you have the content aspect figured out, you need to work on designing your site. You may think that’s easy, but the regular cookie-cutter designs, that are so often seen across multiple sites, simply do not cut it. You should seriously give your site design as much consideration as you do you concept for the site itself. A unique approach to the overall layout and design the site and it the member’s area has an equal impact on your members retention rates as having unique content.
Reality Niche – Overview.
What it all comes down to is reality is here, and here to stay. From market to market, niche to niche the one thing we have seen on and offline is that audiences around the world are looking to satisfy the voyeur, the deviant or the simple curiosity that lurks just beneath the skin. So the next time your driving past the mini-mart or peak inside the dressing room at the department store, remember you’re not only in public places – you are probably walking through the next set for an upcoming reality site.Article written by Lee
-
Building A Surfer Trap – Stage 2
In the last tutorial we hopefully got the foundations of our surfer trap laid and in this stage, we will start to put this thing together.
Ok the first step of stage two of building your surfer trap is to start linking each of the individual FPA’s to your Multi-Site FPA.
The easiest way that I have found to do this is to give each FPA its own sub directory on your server and have the html page named index for each of the single site FPA’s.
So for instance, if you have the site All Petite on your Multi-Site FPA you would link it to:
mydomain.com/all-petite/
Or whatever you called the sub directory for the All Petite single FPA.
Now, once you have linked these single FPA’s to your Multi-Site FPA we need to start ‘playing’ with them once again.
You should now have copy’s of your single site FPA’s and Multi-Site FPA on both your server and Hard Drive.
Take the copy’s you have on your hard drive and add a small NICHE pop up console to each of the single site FPA’s AND the Multi-Site FPA.
I would suggest making 6 NICHE consoles.
These consoles should be pure text and nothing else.
Each of the links on this small console should link to a different niche of your single site FPA’s I usually go with one link for each of the following niches…
Gay
Mature
Teen
Fetish
Hardcore
AsianPlus, I usually add a link at the bottom of my console which goes to the POTD program.
Once you have these consoles built you should upload them to their OWN sub directory on your server, I would suggest calling this directory ‘consoles’ and calling each of the niche consoles the name of the NICHE they represent.
So, you should now have the following on your HD and on your server:
1 Multi-Site FPA
50 or so Single Site FPA’s (All Linked From The Multi-Site FPA)
6 Small Pop-Up Consoles (Popping Only One On The Multi-Site FPA and The Single Site FPA’s, each different niche Single Site FPA pops a different niche console however.)You now have to check that your surfer trap is working so far.
Article written by Lee.
-
Becoming A Webmaster – Communication Home Truths
Ok, we are ALL guilty of the things that are going to be mentioned in this article in one way or another, this article isn’t going to be a ‘see I told you so’ session rather an explanation of how and why certain things happen from time to time in the adult industry and, how they can be overcome.
Get ready, his may make you realize the way you have been managing your time this far has been completely and utterly wrong.
Message Boards.
A great tool to the webmaster, virtually every resource site owner and their friend has one but, there is one thing that you are not being told as often as you should about them, they ARE counter productive to YOUR work schedule. Think about it, how often do you access a discussion forum on a daily basis? Two, three, four times? maybe more? That time you could be using more effectively, coming up with new ideas, putting sites together, tweaking your traffic sources etc.I would whole heartily agree that there IS a need for forums but, at the same time, what would happen if every time we went to post a message we left it and posted a selection of them in some time put aside for doing so? Another thing regarding message boards, they are there to benefit the webmaster, we can let our sponsors know when we have issues, we let other webmasters know when we have issues with them and, we also ask for help and advice, as I say a great tool to the webmaster but also one that should IMHO be used with a little modicum.
Instant Messaging Clients.
Again, another great global communications tool for webmasters, we get in touch with our sponsors, our peers and our friends and family but, how many of us spend countless hours a day conversing back and forth about things that, quite frankly, are of little or no importance? Who can honestly say they have time set aside each day to purely log onto your messaging client to just communicate with people? I know I am guilty of keeping my client on 24/7 and answering messages almost instantly whilst also bugging my peers for idle chit chat.Email.
The Bain of every webmaster, speaking from personal experience, if I don’t check my email 50 times a day I check it 100, first thing I do in the morning, check my email, last thing I do before I go to bed? Check my email. I realize there is absolutely no need for me to do this but, non the less I do, its almost as if I have become addicted to checking my mail. I’m sorry to say it but, again, this is one thing that we probably couldn’t live without but, we can certainly cut down the time we check our email each day. If I never had to reply to an email again, I would be happy, as it is I get close to 200 business related emails on a daily basis and, lets be honest, I rarely reply to them the same week.Sponsor Statistics.
Again, another GREAT tool that we are kindly given by our sponsors but, again, even this simple tool can become a Bain to the webmasters workload. How many times do you check your stats on a daily basis? Hell, even I will admit to checking them 3 times a day and, yes, I know even this is to many times. Some sponsors now have stats by email, again, this is better than logging into your stats each day but, it also adds tot he problem with email checking above. Basically, there is only a need to check your stats once a day if that. I used to check them every hour then, for whatever reason, I checked them once a week, then I slowly got back into the phase of checking them morning, noon and, night. The stats are still there every time I look so why do I bother? I guess that’s one of the mysteries of life but, I know I spend far to much time checking them and waiting to see an additional sign up or two on top of what I already have.Anyway, I’m going to leave this article alone at this point, as, the above would seem to be the most popular methods of wasting time on a daily basis, we all know we waste our time and we all know that what we need to do is manage it better but, how and when, getting our time management sorted out takes time in itself.
Article written by Lee
-
How To Use ALT Tags On Your Sites
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
-
Cascading Style Sheet Basics
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
- 2257
- Billing Solutions
- Blogging
- Branding
- Content
- Domain Names
- Employment
- Forms & Contracts
- General
- Hosting
- Link Lists
- Opt-in Mail
- Paid Traffic
- Pic Posts
- Promotion
- Scripts
- Search Engine Optimization
- Sponsors
- TGP
- Traffic
- Tutorials
- Viral Marketing
- WebDesign
- Writing