• Filtering Adult Traffic For More Sales

    Date: 2011.02.22 | Category: Traffic | Response: 0

    When webmasters build sites there seems to be the train of thought that just because they use one of the top converting sponsors site they will make sales regardless of what type of traffic they are sending.

    Unfortunately, this is often not true.

    One of the first steps that we should take as webmasters when it comes to creating a new site, whether it be a free, avs or a TGP site is to learn the art of targeting our sponsors tour with the content and, more importantly, the traffic we are going to use.

    taking it to the simplistic levels, a straight teen sponsors wont convert on a site that gets mostly mature traffic, the niches, although complementary, are so far apart its unrealistic.

    That said, lets take a look at some options we can all implement on our sites to better target and filter our traffic to ensure optimum conversions.

    One of the simplest ways to target and filter your traffic is to build yourself a hub or a surfer trap. Of course, we also have to take into consideration the type of traffic we are currently receiving to our site and, that we ‘could’ receive in the future.

    Just because we receive 10,000 hits to our teen TGP doesn’t mean that ALL of that traffic IS looking for a teen site, this is where our surfer trap or hub site can come into play.

    Even if your main focus is the teen niche, you should make sure that the first thing the surfer see’s when visiting any type of site you build is a multi-site FPA (Full Page Ad) where applicable.

    This then starts your filtering process. If they know that they can find other niches than teen on your TGP then chances are, they will go to them either because that is what their niche is or, they are curious about that niche.

    Another thing we can do as webmasters is to ensure we use the headers and footers of our pages in the proper fashion, offer our surfers a choice of the main niches, Asian, Gay, Ebony, Teen, Ect using only text links and, you will probably find that by lining these text links to your hub or surfer trap that you actually have a diverse range of traffic available to you.

    In addition, rather than sending our surfers directly to our sponsors, send them via a filter page whether this is an FPA, or a page full of text links you made yourself detailing the benefits of the sponsor you are going to send them to, again, you will let the surfer know where they are going and, give them a choice as to whether they want to continue to that site or, choose an alternative.

    Overall, webmasters who target their surfers by niche can, for the most part have some excellent sales with a variety of sponsors that otherwise they would not be able to see.

    Target, Filter, Micro-Niche, however you do it, make sure your traffic is not wasted and, more importantly, make sure your sponsor is able to offer your surfer what you are telling them is inside the site.

    Article written by Lee

  • Designing Your Site With Link Popularity In Mind

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

    To get good traffic, your website needs to be popular, to be popular, your website needs links, to get links, your website needs to be popular. Annoying isn’t it :)

    Almost everyone agrees that link popularity is critical for your website’s visibility, traffic, and thus successfulness. It is something you need to have. As I pondered the ways of establishing and improving one’s “popularity”, eventually all come back to one central issue, your website must be designed to be popular.

    Link popularity is a basically the measure of links pointing to your website and is meant to be a measure of the best websites. Theoretically those websites that have the most links pointing to them must be important and thus worth the visit. Unfortunately, there are a lot of folks out there that have created programs to “boost” your popularity artificially and all they have done is create Spam and muddy the overall picture. The search engines and directories are keeping a close eye on these programs.

    Design: When getting a request or thinking about making one for a link exchange with a website, look thoroughly over the website first. The website’s theme or topic and general layout is the first thing to look at. Sites with themes or topics that are related to or compliment yours should be your main link partners. You do this to get targeted traffic.

    Just as you evaluated someone’s website, others will be doing the same to yours. Make sure you know what your theme or topic is and that it clearly encompasses the whole website. Stay focused; do not try to cover everything.

    Next, check out the links page or resource area. If they do have one, is it easy to find within the site? Does it seem to be part of the site or just a page off to the side? Are their linking rules available, clear, and easy to follow? Do they accept links from any website or are they choosy? Being part of someone’s well constructed links program, no mater what size, can be a very beneficial thing indeed.

    Again, the same goes for your website. You want to let other webmasters know that you want to exchange links and which type of website you will accept requests from. Make it easy for others to link with you.

    The last set of questions to ask yourself about any website is:

    Is it easy to navigate
    Does it have too many graphics (slow loading)
    Is it pleasant to the eye
    Does the information seem to be organized in a logical fashion

    What has been covered so far deals with what the visitors see; if visiting the website is a pleasant experience then people will stay and look and possibly come back. The final area to cover is what the search engines see.

    The underside (the source code) of the website is just as critical when designing or linking with a website. The search engines are the ones that read this and if it is not done properly then the website can not succeed. Below are a few things you need to consider in your source code and any potential site that has asked to be linked by you.

    Does the website contain frames
    Does it use the headers, titles, meta-tags, and alt tags properly
    Do the keyword location(s) and density seem appropriate and “optimized”

    The latter two issues mentioned above are critical, for they are the backbone to traffic production.

    Content: The information you have is just as important as how you set it up on your website. The more popular websites or the ones with good link popularity are those that have valuable information or resource(s) for its audience after all, they fill a niche! People will visit, stay, return, and recommend a website if it has the content they want or need.

    “Content is king.” A well-designed and organized website might look good but if it does not deliver anything of value, it will not be successful. Whatever subject matter you have on your site, make sure you have something of interest and importance to add to the subject, if you do and you promote it well, you and your site will be successful. In this context, it (content) does not just refer to images, why not add some stories or interesting links to news articles to improve your sites ‘popularity’.

    In addition to information, resources like mailing lists, surveys, polls, classified ads, forums, etc. are all things if used appropriately can add value and fresh content to your website which, in turn will assist you in interacting with your sites visitors.

    In conclusion: Take the time to design and optimize your website properly for the search engines. Make sure you have something of value or importance to add to whatever area your website is in. Provide resources and other tools, which your visitors could use and will make them come back. Be proactive and interact with your visitors. Websites that are dynamic and active are the best ones. All of this might take a little more time to get your website up and running, but it will be worth it.

    For yours or any website to be popular, it needs the links and to get the links, it needs to show the other webmasters that it is worthy of a link. It seems everyone today has a website, but not everyone has put together a website that adds value to the Internet community. Take a critical look at your website and any website you might link to and ask yourself…………….

    Would you bookmark it?

    Article written by Lee

  • Using JavaScript To Auto Scroll Text

    Date: 2011.02.24 | Category: Scripts | Response: 0

    Using JavaScript To Auto Scroll Text.

    There may come a time when you would like to have some text on a page that is simply just to big to fit on a single page. Of course, you could always create a new document for this text but, what if you could make the text actually scroll through the surfers browser?

    The following JavaScript will do just that.

    Place the following section of JavaScript coding between your <head> and </head> tags:

    <SCRIPT LANGUAGE=”JavaScript”>
    <!–

    function scrollit() {
    for (I=1; I<=1200; I++) window.scroll(1,I);
    }

    // –>
    </SCRIPT>

    Along with the following JavaScript coding someone in the Body of your page:

    <FORM>
    <INPUT type=button value=”scroll” onClick=”scrollit()”>
    </FORM>

    Have a play around with the numbers in the first section of the JavaScript to speed up and slow down the rate of scrolling until you find a speed that is easy on the eye.

    Article written by Lee

  • Message Boards – Getting The Postings

    Date: 2011.02.23 | Category: General | Response: 0

    There are plenty of free scripts available on the web which will enable you to start your own online discussion forum.

    However, having the most sophisticated and advanced features in a forum does not mean it will be successful by any means. It is the people who post on the forums that make them good not the scripts used to maintain them. This article is dedicated to getting people posting on your forums.

    It can be really quiet on your forum especially at the beginning when there are no real discussions going on, this is because people don’t want to be the first to post. They want to see some topics that interest them already being discussed, they want to be able to read through some posts first before having to post themselves. With this in mind, you should also be aware that just because a forum doesn’t seem busy, it can in fact get thousands of hits a day. Lurkers make message boards what they are, and, for this reason alone you should act professionally and courteously when making posts on any forums, one day, you might have to do business with one of these so-called ‘lurkers’ and, if they have seen you in a bad light on a forum, the chances are they wont want to know you. So what do you do to get your message board off the ground? There are a number of things actually and, some of these are as follows.

    First of all, make sure the signup process is as simplistic as possible, even better, ensure if the user doesn’t want to register, they don’t have to! To attract people to post on your boards why not get a few of your friends together and start some discussions of your own, you could even register a couple of different usernames so that your forums look busier than they actually are thus cementing the thought that your forums are active and will have worthwhile discussions taking place.

    To find some current topics for your forums why not visit some of the other message boards and see what people are discussing, if a topic is receiving a lot of interest, post about it on your forums. This is especially a good idea if your forums are specific to one area after all, if your competitions forums posters are interested in this topic, your forums users will be too.

    Another great way to get people to start talking on your discussion forums is to use a contest. For example, currently on European Webmasters we have a content giveaway whereby for each post you make you gain a point and, once you have reached a certain level of points you will be able to download exclusive content sets. If you are going to start a competition then make sure people are aware of it, post some information about it online and get something to giveaway that everyone wants.

    One other method to get additional posts is to put up subject lines and links to the topic threads from your main website page. Again, if you publish articles on your site create a link to your discussion forums and invite people to openly discuss the articles in question, not only will you get people posting on your message board but, you will also gain invaluable information from your user as to what they look for and want in articles you write.

    If you publish a newsletter, again, this is another great way to build interest in your message board. Simply ask them to post, tell them you are building up a great resource and, you need their help as much as you need theirs to make this happen. If you have provided them with high quality information in your newsletter the chances are they will repay you by posting on your message board.

    In conclusion, you should basically try and plug your message board wherever you can by doing the above, create banners for it and display them on your website, place a note in your signature file encouraging people to visit and post if they require assistance with anything. Its hard work but, once you have a few regular posters it will take off.

    Article Written By Lee

  • European Surfers – Gold Waiting To Be Harvested

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

    80% Of the internets content is English. 40% of internet surfers cant even read English, let alone understand it. Out of all the countries in the world, German internet users spend an average of 59.2 minutes looking at porn a month closely followed by Norwegian surfers who looked at it 55.4 minutes every month, how many of you have sites catering to this market? Not one of you… I would bet!

    Most webmasters that I know of automatically assume, European surfers = Freeloading Bestiality Loving Sicko’s. That’s bullshit! In fact, a larger and larger percentage of European surfers are looking for porn. Sure, they can find it by the bucket load but, lets be honest, Herman from Munich who cant speak a word of English is going to be making a lot more from this industry than Jason in Miami.. WHY? Because Herman has a captive audience, most of his surfers are German speaking after all, that’s the language he makes his sites in, that’s the language of the sponsors he uses and, like it or not, German surfers are proven to be avid porn surfers and, more importantly, Credit Card spenders!
    But Wait…

    Hang on a second, Credit Card spenders? But I thought the best way of milking $$$ out of foreign surfers was to send them off to a dialer program? hmmm…. perhaps I’m missing something??

    You are! there are a lot of sponsors that don’t have any sites in English, Germany has a load of high converting AVS sites, why is this? Because they are written completely in German, Spain has a lot of good quality sponsor that work wonders, Why? Again because they are written in Spanish.

    You have a lot of AVS, TGP and free sites that don’t make as much as they could, WHY? because you haven’t considered the global market! Let’s be honest here, the big sponsors of this world you use, how many of them say in their terms and conditions, they don’t allow access to German, Spanish, Ukrainian, Russian surfers? Ill bet at least 50% or more of them right? that’s money you have just lost! Sure, you can ship them off to a dialer program and hope they download it, most wont, sure you can send them to an opt-in email program and hope to make some money from them long term, you wont, In fact, European surfers detest having to give any information about them out. Its a privacy thing, they don’t want you to know who they are, so you cant tell their governments who they are, it sounds harsh but, its true.

    So How Do I Do It??

    The best way to milk money from the European surfers is to treat them EXACTLY the same as American surfers, but, with one major difference… You need to build for their language, get this right and you’ll be laughing all the way to the Bundesbank :)

    But, where do you start, how can you build a site in a language you know nothing about? Simple, do some research, there are places out there that cater to European based webmasters, go to the forums, ask for help, you wont be laughed at, you wont be ridiculed and, who knows, you may just learn something in the process!

    Sign up to a foreign sponsor, you can find a lot on our site, most of, if not all of these foreign sponsor will gladly help you out, they have email support in a variety of languages themselves, drop them a line, tell them you need help, Ask for it… It will come.

    Now you have the help you need what next? use it, ask everyday if you have to, there are some good translation services available on the net, spend $50 to get an existing site you have that’s working well translated into a foreign language, I guarantee you, its money well spent! Once you have this translated ‘template’ site use it time and time again, tweak it until you find the best converting site you can, submit it to all the foreign search engines around, you’ll soon pick up that its not much different to working your ‘standard’ sites except, you’ll have trapped a larger percentage of internet porn surfers and, what’s more, this is a percentage that YOUR competitors wont have!

    Integration..

    Is it possible to build foreign sites and English site to work together? YES but, its hard, you have to mimic the responses you have learnt from the trial you did with the first translated site, once you start to see trends happening, build on them, if something doesn’t work, swap it out, put something in its place, even if.. Its a US sponsor. You have the framework, the surfer is in your site, they know what its about, that’s the time to start introducing the foreign (to them) sponsors ads.

    The Results..

    The results of your trial will speak for themselves, you will have tapped into an as yet untamed market, You will have more scope of growth for your business, You will have established a new traffic source, You will be able to reap the benefits. Of course, you need to work for it, don’t expect magic overnight, it just isn’t gonna happen! Remember when you first started webmastering? it was hard work, tapping into the European market is even harder, its like starting all over again from scratch then, realizing you know what your doing but you have been doing it wrong all these years.

    Article written by Lee

  • Organizing Your Hard Drive And Server

    Date: 2011.02.24 | Category: Hosting | Response: 0

    We have probably all done it at some point, we get in such a hurry to upload our new site that we have just spent the last 20 minutes building that we don’t think about maintaining the site at a future date or, worse still, we need to change a site we built 6-8 months ago and can not remember where we uploaded it to.

    By organizing your server from day one of your steps into becoming a webmaster you will, inevitably, save yourselves a lot of time in the long term future of our business model.

    Lets take a look at how we can accomplish this ‘organization’ though.

    On your hard drive you need to have a ‘central’ location for all of your online files and folders, what better place to keep this than in a folder named ‘Online’ of course, this is just an example but it will son become apparent to you that this is probably the most logical folder name to use.

    Now, within this folder you are also going to need to have a few sub folders, i would suggest using a folder for each of the domains that you own so for example, for your first domain, you would name it myfirstdomain.com, your second would be named myseconddomain.com etc.

    Within these domain folders you will also need to have a selection of sub folders again, I would suggest names for these folders such as /html/, /scripts/, /articles/, you are now well on the way to organizing your server.

    In addition to these sub folders you will also need to create sub folders for your images that you will be using on your sites, I would suggest using the names /banners/ and of course, /images/ for these two folders, you now know that the /banners/ folder contains all of the buttons and banners you will use on your sites and the /images/ folder contains all of the .jpg and .gifs you will use. Inside the /images/ folder, it might also be advisable to create a sub folder called /thumbnails/ which, you can store your thumb nailed pictures in if required.

    One other advantage to organizing your folders and sites in this manner is that over time, it will assist you when it comes to dealing with hot linkers. Instead of having to find the paths to all of your individual image directory, you know instantly where you put them, without the need of logging onto your server.

    Ok so you now have a semi-organized folder structure on your HD, so far we hopefully have a folder structure that looks somewhat like this:

    C:/online/myfirstdomain.com/

    C:/online/myfirstdomain.com/html/
    C:/online/myfirstdomain.com/scripts/
    C:/online/myfirstdomain.com/articles/

    C:/online/myfirstdomain.com/html/Banners/
    C:/online/myfirstdomain.com/html/Images/
    C:/online/myfirstdomain.com/scripts/Banners/
    C:/online/myfirstdomain.com/scripts/Images/
    C:/online/myfirstdomain.com/articles/Banners/
    C:/online/myfirstdomain.com/articles/Images/

    So, hypothetically, if you created a article called ‘Article One’ you would find this in the following place on your HD:

    C:/online/myfirstdomain.com/articles/articleone.html

    See how easy that was to find on your hard drive?

    Of course, on your server the folder structure will be no different so, your structure will be mirrored EXACTLY from your HD to your SERVER I.E.:

    /usr/www/sites/myfirstdomain.com/articles/articleone.html

    Not only will you make your server layout a lot easier to navigate but, it should, in theory, save you time when submitting your sites to the search engines, free for all’s etc as, in your head, you will already know the location to any single page.

    Try this as an example…

    You have created an article site called ‘Online Marketing’ on your third domain, where is it located?

    That’s right, you will find it at http://www.mythirddomain.com/articles/onlinemarketing.html

    How much time would you have usually spent logging into your server trying to find this page?

    One other MAJOR advantage to keeping your server and HD structure the same is backing up your data now becomes easy as pie. you simply have to download your folders into the /online/ directory on your HD, then simply burn that entire directory to Cdrom.

    Hopefully this article has given you some insight into how proper organization can be of use to you on your HD and on your server. If you are just starting out in the adult industry hopefully you will see that spending a little time to make a structuring system such as this can save you a lot of time long term.

    One last question for you however, where would you find your article called ‘Marketing Shoes’ on your 56th domain name?

    Article written by Lee

  • Foreign Search Engines

    Date: 2011.02.22 | Category: Promotion | Response: 0

    ‘Suchmaschine’ | ‘Moteurs de Recherche’ | ‘Motores de Busqueda’ ? Or, to you and I ‘Search Engines’.

    Well what if I told you there was a huge chunk of the market (again I know) that your missing out on because, frankly, you haven’t attempted to get into it?

    What is this wondrous market? Simple.. Foreign search engines.

    I would say that AT least 80% of my traffic comes from the search engines, Google, AltaVista, etc, etc however a large portion of this se traffic is from countries whose language even some of my translators don’t know.

    So, how do you get the foreign search engine traffic? again that’s simple, there are several ways to get it, you can:

    1) Submit to your favorite search engine and wait, and wait, and wait… or 2) You can submit to your favorite search engine then, instead of leaving the page, go to the foreign equivalent of that same search engine!

    Guess what, if you submit to Google in English then go to google.de the submit form asks you exactly the same information as your submission on the English form would do…so, ya don’t even have to speak German to submit to google.de, isn’t that handy?

    In my previous article a few weeks ago I mentioned what countries were top of the ranks for surfers in Europe, well, this week I want to run some figures past you again about which search engines ‘seem’ to be sending a decent amount of foreign traffic.

    So here goes, we have the top 6 search engine referrals for December 2001:

    http://www.crawler.de/

    http://www.lycos.de/

    http://www.infoseek.com/Home?pg=Home.html&sv=ES

    http://search.yahoo.co.jp

    http://www.excite.co.uk/

    http://www.infoseek.com/Home?pg=Home.html&sv=FR

    As you can see infoseek (which has an English version) sends me lots of foreign traffic although, in reality, this is only for English pages, don’t ask me why but I guess the Spanish and French surfers love surfing for porn in English..

    On a separate note, for those of you who are either to stubborn, lazy or, stupid to try submitting to the foreign search engines we will shortly be releasing a foreign search engine submission chart on European Webmasters which will tell you step by step what to put in each of the boxes on the submission form, so even you have no excuse!

    Of course, the foreign traffic is going to mean you will need to pay more attention to your sites, perhaps offering these surfers a site in their language to sign up to or, before sending them off to a dialer, trade these foreign surfers off for some ‘English speaking ones via the use of a toplist. Admittedly, I haven’t found sending them to a toplist productive myself however, you might get different results to me.

    Basically, if you start to get the traffic, hell, the chances are your getting foreign traffic now and don’t even know about it… USE IT!

    If you want to ask questions specific to the foreign market that’s what our forums on EW are there for, we would gladly spend all day everyday answering your foreign traffic questions however, as yet, very few US based webmasters are taking the initiative to investigate further this GREAT source of revenue so, I guess ill just have to go back to my foreign search engines and get a bigger chunk of the ever increasing foreign porn surfer for myself.

    Article written by Lee

  • Article Writing For Publicity And Credibility

    Date: 2011.02.21 | Category: Writing | Response: 0

    If you’re looking for a powerful way to get free publicity and build your credibility at the same time, then writing articles may be your answer.

    If you’ve been on the Internet for a while, you’ve probably subscribed to a few ezines including this one, hopefully. Many ezine publishers will include an article written by a guest author. At the end of the article are a few lines of text about the author referred to as bylines or resource box. These lines of text are basically just an advertisement for the writer. They usually contain a couple of lines about the author and a web address.

    The writer gives the publisher permission to publish their article, free of charge, in exchange for the publisher including the author’s bylines.

    By writing articles and allowing them to be published, your articles will have the potential to be viewed by millions of Internet users. They may be published by several ezines with subscriber bases of a few hundred to several thousand. In addition, they may be displayed in ezine archives or on high traffic websites.

    Most ezine publishers prefer short articles between 500 and 750 words. Short “tip” articles of just a couple of paragraphs are also very popular. Articles should be formatted to 65 characters per line or less, including spaces, and written in short paragraph sections.

    When you begin writing your article, avoid using your standard word processing programs, as they do not allow for proper formatting. Instead, use a text editor such as Notepad. It should already be installed on your desktop.

    When you begin typing your article, use a hard carriage return (hit enter) when your text reaches 65 characters, including spaces, and leave a space between your paragraphs. This will enable publishers to easily copy and paste your article into their publication. By taking the time to properly format your article, you will increase your chance of being published significantly.

    Most publishers receive many article submissions each week and only select a few to be published. Here are some basic guidelines to assist you in getting published:

    (1) Make sure you follow the publishers’ submission guidelines. Articles submitted to publishers that don’t follow the submission guidelines will most likely be deleted.

    (2) Make sure your article is properly formatted.
    Publishers won’t take the time to format your article.
    They’ll simply delete it and move on to the next article submission.

    (3) Keep your bylines down to 6 lines or less.
    Publishers will not publish articles that contain excessively long bylines.

    (4) Select a descriptive title to intrigue your readers.
    Use a powerful headline that demands attention and try to keep it all on one line.

    (5) Use proper grammar and spelling.
    Publishers will not take the time to edit your article. Make sure you read your article several times and use spell check.

    (6) Avoid articles that are nothing more than a sales letter.
    Publishers want quality content and will simply delete an article that is written like a sales letter.

    (7) Avoid referring readers to an affiliate URL.
    Articles containing affiliate links may make your article appear to be biased and untrustworthy.

    (8) Write your articles with a sincere desire to teach and inform. Talk to your readers and share your expertise.

    Once you’ve written your article, you’ll need to develop a list of publishers that may be interested in publishing it. The best way to accomplish this is to display your articles on your website. Place a subscription box on each of your article pages to enable your visitors to subscribe. This list should be used to send your new articles to your list of publishers.

    Of course, you are already in one of the right places to start, we are always looking for industry related articles so, if you been given the motivation by reading this article to give it a try why not submit one to us for publication?

    Writing and distributing free articles on the Internet will be one of the best promotional decisions you’ll ever make. Not only will it provide you with free publicity, but if your articles are good, you’ll become a trusted professional in your area of expertise.

    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.

  • Promo Material – Make The Most Of Your Marketing

    Date: 2011.02.22 | Category: Promotion | Response: 0

Premium Sponsors















Categories

Site Links