-
Online Adult Laws – Privacy Policies
To many webmasters and companies working online the fundamental basics of their business is to turn a profit through effective online marketing campaigns and promotions however, within all of this profit making there is a side of business that is so often overlooked or, forgotten entirely, what is this business practice? The law.
In this brief article we will take a look at one such law that comes into effect in California on the 1st July 2004 namely, that all ‘web sites that collect any personal information from consumers to post a privacy policy’. Whilst this in itself is the first law of its kind in the United States it is worth mentioning that this is only a State law that affects California however, that said, where one state starts, others are sure to follow especially considering the huge potential left for the growth of the internet.
Privacy Policies – How Does This Effect You?
The main factor that you must take into consideration with this new law from California is that, because the Internet is truly global, you have no way of telling where one of your surfers are coming from thus, a surfer entering your site from California, may be making you break the law by not displaying a privacy policy should you collect their information. Incidentally, this new privacy policy law does not state what ‘collected’ information requires you to post a policy however, it would seem that personal information such as addresses, phone numbers and email addresses would be the primary target of this new Californian online law.Privacy Policies – The Basics.
So what is a privacy policy, in essence, it is a document informing your site visitors / customers that any information you collect from them, including user submitted information will be used in a specific way, this might be a case of solely being used by yourself or, specifically if you rent out this information you need to tell your surfers / customers exactly who you are renting this information to.Privacy Policies – Overview.
Whether you collect personal information from you site visitors or not the one thing that makes sense is to have a page created ready for the 1st July 2004 so that you can have it online for when you need it, perhaps storing this page on a central domain and linking to that page from all of your other web sites would be the best method to go as far as ensuring you are covered from prosecution or, perhaps creating a keyword rich privacy policy which you can get listed in the search engines is the way to go after all, just because this will become a legal requirement for you it does not mean that you cant profit from the potential traffic going to that page.Article written by Lee
-
Masters Of Discipline – Have You Got What It Takes?
So you want to throw in your day job and become a full time adult Webmaster? Well yeah, I can hear you saying, “Who wouldn’t want to be surrounded by pictures of beautiful women all day, make up their own hours, and be the master of their own destiny?” It just sounds sooo good when it’s put like that doesn’t it?
Before you tell your boss you quit, you might want to read this article first, as the reality of working in this industry and especially for yourself can be a real wake up call for many.
The main thing you need to succeed in this business is discipline, and lots of it. If there are temptations when you work for someone else to slack off, take a sick day, or simply not bother showing up, then you can double those temptations when you work for yourself.
It’s so easy to roll over in the morning rather than get out of bed, stagger to the PC, and actually work.
It’s so easy to decide to take the day off when the sun is shining and the beach is calling. You simply tell yourself you’ll make up for it tonight, and then find yourself coming home at 3am.
It’s so easy to not actually work, when you work for yourself, that at times it can be unreal.
The reality of doing any of the above is longer nights, less sleep, and almost inevitably smaller paychecks.
Structure Your Day.
The answer to this problem is to really think about your working day and give it some structure, just as you would if you worked for someone else. Work set hours and take frequent breaks. When you work for someone else they make you take breaks for a variety of reasons, but mostly, because as research has proved, you’ll be more productive after one. It’s also important to make sure others know your hours as well, and always remember to add what time zone you are located in on any correspondence. There is nothing worse than being awoken by an associate at 3am because you forgot that little detail!
Set A Routine.
Get into a routine! There are various tasks that must be done each week no mater how boring. By creating a work routine, you can control your time and structure the more boring jobs at the end of the day when for most our creativity levels are less. You can also structure that routine as I do, when I’ve finished those boring tasks at the end of each day, I reward myself with some time doing what I want to do.
Going Solo.
This can be a lonely business and if you don’t like working alone then maybe it’s not the right one for you. You’ll likely spend many hours in your own company and as someone else pointed out to me, while boards and instant messengers are great, they can also eat heavily into your working time if you’re not careful. Personally, I use the boards and chats as a treat when I’ve accomplished a goal, unless I need to talk to someone in order to get that set goal done.
If, like me, your office is in your home, in reality you never really leave work. It’s just always there and there is always something else to be done, and it’s so tempting just to work a few more hours. Having the discipline to stick to your office hours is the trick and where structure comes into play. The saying all work and no play makes Jack/Jill a dull boy/girl is really true here.
The biggest trick of all though, is learning to recognize your limits. Set them and stick to them. Unlike in the normal workplace, you won’t have the big cheese or even the little one watching over your shoulder, making sure you work or making sure that your paycheck and your bills are covered each week. That’s up to you now.
Think Before You Leap.
Another thing you need to consider is can you REALLY afford to give up your day job? Working for someone else means that for the most part you will have a reliable pay check each week or month, when you work for yourself you loose that security. There are other things to consider as well like health insurance, book keeping and how exactly you are going to pay for them. Of course if there is another bread winner in the house this may not be of such a concern, but it’s still something you should consider before you give in your slip. As a general rule of thumb, if you’re considering going it alone, don’t, at least not until you have enough cash saved to cover any outgoings you might have over a six months period.
How well do you know the law? If you think the law doesn’t affect you because your just one person working from home then think again. If you don’t know your Title 18 USC 2257 from your arse then you may be heading for trouble. Standing in front of a judge and saying I didn’t know won’t get you out of a heavy fine or even a prison sentence.
The real questions you need to ask yourself now are you up to the challenge, and do you have the personal discipline to make this work for you?
Article written by Jenne.
-
Formatting HTML Text Using Tags
Formatting HTML Text Using Tags.
As we know there are many elements to a website from graphics to text. In this article we are going to have a closer look at text and, more importantly how we format the text to look like we want it to.The text of the HTML pages we create, as you already know goes inside the <body> tag of our HTML pages but, unless you are using a WYSIWYG editor you can not just click a button and make it appear bold or italic therefore we need to get to know some of the text property tags that can be used to enhance our HTML text. Lets take a look at some of these now.
<b> Any text inside these two tags will appear bold on our page</b>
<i> Any text inside these two tags will appear in italic on our page</i>
<u> Any text inside these two tags will appear to be underlined on our page</u>
<big> Any text inside these two tags will appear BIG on our page</big>
<small> Any text inside these two tags will appear small on our page</small>
<sub> Any text inside these two tags will appear subscript on our page</sub>
<sup> Any text inside these two tags will appear as superscript on our page</sup>There are also things called ‘heading tags’ these will work the same as the formatting tags mentioned above however there are only six of them and they look like this <hx> with the x being replaced by a number from 1-6 the lower this number is in the tag the LARGER our text will become so for example:
<h1> Will be the largest heading text</h1>
<h2> Will be the next smallest heading tag</h2>
<h3> Will be smaller again </h3>
<h4> Will be one size smaller again</h4>
<h5> Will be the second to smallest heading size</h5>
<h6> Is the smallest of the heading tags</h6>Also, you should remember that it *IS* possible to use more than one of the text tags in any single line of portion of text on our web page so for example, if i wanted to have bold underlined italic text my tags for the text would look like this:
<b><i><u>This text is bold, in italics, and underlined</u></i></b>
You will notice from the above example that the tags were opened and closed in the same order they were created this doesn’t have to be done like this but, in the long run, it is easier for you as a webmaster to code your pages this way.
Hopefully this article has given you a further understanding on how we can format out text and you will be bale to put this into practice on the next site you build.
Article written by Lee
-
Using .htaccess Effectively
The .htaccess file is an ASCII text document that can be placed in any directory on your site. It can be used to control access to files and directories, and customize some server operation in your site. A .htaccess file can be created in any word processor but must be saved as text only. You must use FTP software in ASCII mode to upload or edit your .htaccess file. For the examples provided here, place the .htaccess file in your root directory.
There are a variety of functions that you can control using .htaccess some of the more useful of these are explained below:
Custom Error Messages.
Add the following to the .htaccess file::
ErrorDocument 404 /notfound.html
After “ErrorDocument” specify the error code, followed by a space, and then the path and filename of the .html file you would like to be displayed when the specified error is generated, each specific error code is detailed below with the recommended codes to be used in the .htaccess file in bold :
200 OK
206 Partial content
301 Document moved permanently
302 Document found elsewhere
304 Not modified since last retrieval
400 Bad request
403 Access forbidden
404 Document not found
408 Request timeout
500 Internal server error
501 Request type not supportedUsing the codes above your error section of the .htaccess file should look like this:
ErrorDocument 301 /notfound.html
ErrorDocument 400 /notfound.html
ErrorDocument 403 /notfound.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /notfound.html
ErrorDocument 501 /notfound.htmlRedirect to a Different Folder.
Add the following to the .htaccess file:
RewriteEngine on
RewriteRule ^/oldfolder(.*)$ /newfolder/$1 [R]This redirects the user from /oldfolder/anyfile.html to /newfolder/anyfile.html, when the .htaccess file is uploaded to the otherwise empty “/oldfolder” directory.
Denying User Access.
Add the following to the .htaccess file:
<Limit GET>
order allow,deny
deny from 000.00.00.
deny from 000.000.000.000
allow from all
</Limit>This is an example of a .htaccess file that will block access to your site to anyone who is coming from any IP address beginning with 000.00.00 and from the specific IP address 000.000.000.000 . By specifying only part of an IP address, and ending the partial IP address with a period, all sub-addresses coming from the specified IP address block will be blocked. You must use the IP addresses to block access, use of domain names is not supported
Redirect a Machine Name.
Add the following to the .htaccess file:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domain-name.net
RewriteCond %{HTTP_HOST} machine.domain-name.net $
RewriteCond %{REQUEST_URI} !machine/
RewriteRule ^(.*)$ machine/$1This will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net.
Different Default Home Page.
Add the following to the .htaccess file:
DirectoryIndex filename.html
Then a request for http://domain-name.net/ would return http://domain-name.net/filename.html if it exists, or would list the directory if it did not exist.
To automatically run a cgi script, add the following to the .htaccess file:
DirectoryIndex /cgi-local/index.pl
This would cause the CGI script /cgi-bin/index.pl to be executed.
If you place your .htaccess file containing the DirectoryIndex specification in the root directory of your site, it will apply for all sub-directories at your site.
Preventing Hot Linking.
Add the following to the .htaccess file:
# Rewrite Rule for images
RewriteCond %{HTTP_REFERER} <URL of page accessing your domain>
RewriteRule ^(.*)$ http://<same as above URL>You would replace the <URL of page accessing your domain> above with the domain name and path of the page that is referring to your domain. For example: www.theirdomain.com/users/mypage/
The RewriteCond directive states that if the {HTTP_REFERER} matches the URL that follows, then use the RewriteRule directive. The RewriteRule directive will redirect any reference back to the referring web page.
Using the above you should, safely be able to publish your sites on the internet knowing that you will not be privy to bandwidth thieves via hotlinking and also, that you will not lose any traffic through pages that are ‘not found’.
Article Written By Lee
-
Newbie Basics – The HTML Layout
In this article we will look at some HTML tags that you will be using in every HTML document that you create. They are the base for every web page and are the essential pieces of HTML coding to ensure that your pages display correctly.
The Structure Tags.
Here is a look at the main structure tags. You will have to get used to these since you will be using them for all your pages.We would suggest that you start by copy and pasting the structure into your document then creating my page once they’re in place.
Make it a habit to ensure that all surfers (regardless of their browsers) will be able to identify your creations. Each of these HTML tags are used in pairs with a start and ending tag in the same way as we mentioned in the previous chapter.
<HTML> </HTML>
The HTML tag tells the browser that your page is a valid HTML page.
The first and last tag on all your HTML documents will be this tag.
The complete HTML coding for the remainder of your document will be placed between these two HTML tags.
<HEAD> </HEAD>
This tag is used to reference your document.
<TITLE> </TITLE>
This tag enables you to give your HTML document a title.
It’s best to insert descriptive text about your page between these tags we will go into this in more detail in the later chapters.
This will also be the name that is displayed in a web browser’s system tray when someone bookmarks or adds your HTML document to their favorites list.
<BODY> </BODY>
The entire coding for your page goes in between these two tags.
Basically, they mark the beginning and end of your web page’s body. They are the essence of your HTML.
All your HTML tags in your document will be resting in between these two HTML tags.
Putting It All Together.
Now that the main tags have been outlined, it’s time to put them all together. Here is an example of what your HTML documents should look like.<HTML>
<HEAD>
<TITLE>The Title Of Your Html Document Goes Here</TITLE>
</HEAD><BODY>
All your other HTML tags and text goes here.
This Is the main body of your HTML document.
At the end of this text you will also see where the closing Body and HTML tags go.</BODY>
</HTML>
This is the basic structure for any HTML document. Once these tags are in place, the rest is down to you. These Tags are not case sensitive. In other words, you don’t have to use all capital letters like we have in our Chapters. It won’t make a difference to the overall outcome of your tags. However we would recommend using Caps for your tags. It makes them a lot easier to distinguish from all the other sections of your HTML document coding, as you can see in the example above.
Article written by Lee
-
Content – Keeping your members coming back for more
We know that the first battle for pay site owners is getting the traffic and the signups. But, sometimes this becomes such a focus that we forget the other battle: keeping members interested once you have them. When people pay for a membership to a site they are expecting to get their money’s worth. In return for their monthly fee they are looking for a site that encompasses quality, variety and originality.
As the web grows, so does the online entertainment industry. Four or five years ago there was only a handful of pay sites around compared to the thousands and thousands that are on the net today. Back then, you could literally put any kind of content on your sites and you would have membership, there just was not much choice out there for the connoisseur of porn. Now, potential members are more informed, they know what is out there, they know what they like, and they know what they want to see.
What has to be done to cater to these more discriminating porn shoppers? You have to give them what they want. Here are some useful tips for choosing a content provider and/or content for your pay sites that will keep the members coming back for more:
Go for the exclusive content.
You want to be able to provide your members with something that is fairly fresh and that is not pasted on every pay site on the Internet. The last thing a potential buyer wants to see is a site that is a carbon copy of half the sites out there.
Choose leased content.
Choosing leased content over buying CD’s is a good way to keep your site fresh. Most leased content providers will update their content on a bi-monthly or monthly basis. As well, with leased content, it is just a matter of adding the feed into your site. This alleviates the need for extensive extra graphic design work.
Have a wide variety of content.
Make sure that your site has a little bit of everything a potential member could want: pictures, videos, live feeds, etc. The more you have the better. Many content providers have great package deals available that will include all of these things all set up and ready to put on a site.
Choose a reputable content provider.
You want to make sure that when you choose a content provider that you do not just go for the best deal out there. You want to also look at things like: how much bandwidth they provide, what their technical support is like and last but not least, do they have good customer service.
These are just but a few helpful suggestions to follow when choosing content for your pay site. There are certainly many ways to achieve a high rate of member retention. One thing that many of our customers tell us is that they find that having a least one voyeur feed on their site great for keeping the members coming back for more. Laura’s Condo, one of our voyeur feeds, has one of the best member retention rates around. Visitors get attached to the girls, develop a rapport with them and they do not want to lose that. Hence, they will keep renewing to be able to keep their relationship going with their favorite girl.
The number one thing that pay site owners must remember is that members equal money and in order to keep the cash flow rolling in they must keep the members interested and give them what they want. By spending a little extra money to get high quality exclusive content, you will actually be putting more money in recurring memberships back in your pocket at the end of the day.
Article written by Meredith Murray
-
Obscenity – Put It To The Test
Regardless of how long any of us have been an adult webmaster we all need to be
aware of obscenity laws and, in particular how they affect our businesses
whether we think a hardcore photoset is ‘obscene’ or not ultimately, if you get
taken to court on obscenity charges the one thing you should be aware of is how
the courts will decide whether the images you are using will be classified as
obscene or not.Testing Obscenity – The Miller Test.
The Miller test was developed in the 1973 court case of Miller vs. California
and in comprises of three parts ALL of which MUST be satisfied on order for
something to be deemed obscene by the courts. The Miller test is the ‘official’
method used by the United States Supreme Court for determining whether an
expression or a speech can be determined as obscene and, if deemed obscene, it
is not protected under the First Amendment and is therefore prohibited by law.The Miller Test – Part One.
Part one of The Miller Test states something may be obscene if ‘the average
person, applying contemporary adult community standards, would find that the
work, taken as a whole, appeals to the prurient interest’ In essence, this
means that if the ‘average’ person on a jury or on the bench finds the work to
be deemed obscene then, it is. However for the court to rule something as
obscene it also has to be deemed obscene by the standards set in part two and
part three below.The Miller Test – Part Two.
Part two of The Miller Test states that something is potentially obscene is
‘the average person, applying contemporary adult community standards, would
find that the work depicts or describes, in a patently offensive way, sexual
conduct’. Basically this is saying that if the images or speech is something
which is not practiced in a manner befitting your local community standards
then again, it may be obscene. However, as with part one of The Miller Test for
a court to find something obscene it needs to fall below the standards in part
three below.The Miller Test – Part Three.
Part three of The Miller Test states that something is potentially obscene if,
‘a reasonable person would find that the work, taken as a whole, lacks serious
literary, artistic, political, or scientific value.’ This is pretty much where
you could potentially come unstuck after all, everyone has different sexual
tastes and because of this, just because something that may be widespread such
as ‘bare backing’ (to use as an example) could potentially be considered as
obscene if you happen to have a jury who are devout practicers of safe sex.The Miller Test – Overview.
In essence The Miller Test is a useful guideline for webmasters when it comes
to operating our sites and specifically, when it comes to choosing the types of
content we utilize on them however, for the most part The Miller Test itself is
outdated. Since the early 70’s when this test was devised there have been many
sexual practices that were once deemed obscene that have become more a part of
everyday life and accepted in to society as whole thus, what once would (or
could) have been deemed obscene would no longer be in the same sense as
something that may be deemed obscene today could be found not to be in 5 years
time.Article written by Lee
-
Sample Adult Model Release Form
For many webmasters the option of being able to shoot their own content is a wholly viable one as such, you should ensure that the models you are using sign a suitable release form. Below we have set together a pretty industry standard model release form which you may duplicate if you so wish. European Webmasters would however, recommend that you get professional legal advice in respect of this matter and that this is no substitution for proper legal advice.
I, (Please Print) ____________________ (Model), for good and valuable consideration, the receipt of which is acknowledged, give to [INSERT YOUR LEGAL NAME HERE] (Photographer), his legal representatives, successors, and all persons or corporations acting with his permission, unrestricted permission to copyright and/or use, and/or publish photographic portraits or pictures of me, and the negatives, transparencies, prints, or digital information pertaining to them, in still, single, multiple, moving or video format, or in which I may be included in whole or in part, or composite, or distorted in form, or reproductions thereof, in color or otherwise, made through any media in his studio or elsewhere for art, or any other lawful purpose.
I hereby waive any right that I may have to inspect and approve the finished product or copy that may be used in connection with an image that the Photographer has taken of me, or the use to which it may be applied.
I further release the Photographer, or others for whom he is acting, from any claims for remuneration associated with any form of damage, foreseen or unforeseen, associated with the proper commercial or artistic use of these images unless it can be shown that said reproduction was maliciously caused, produced and published for the sole purpose of subjecting me to conspicuous ridicule, scandal, reproach, scorn and indignity.
I acknowledge that the photography session was conducted in a completely proper and highly professional manner, and this release was willingly signed at its termination.
I certify that I am not a minor under the laws where I live, and am free and able to give such consent.
Model’s signature:_________________________ day___/month___/year_____ Address:___________________________________ City:______________________________________ State/Province:______________________________ Country:___________________________________
Zip/Postal Code:_____________________________
Country area code and home telephone number:(______)____________________________
Witness (non family member):___________________________________
Witness (non family member):___________________________________
This form will be retained with the negatives, transparencies, digital media, and/or contact sheets. day___/month___/year_____ {INSERT YOUR LEGAL NAME HERE}.The above model release form is to be used as a mere example form and, when entering into any contractual agreement with any model for photographic / video work you should always seek proper legal advice.
Article written by Lee.
-
Favicon.ico – What Does It Do?
Favicon.ico is the name of the graphic Internet Explorer 5+ uses in the address bar and when someone views their favorite bookmarks. There should be one beside the address of this page now if you are using IE5+. If you want to see favicon.ico in action among your favorites bookmark our site now by right clicking and selecting ‘Add to favorites’.
Internet Explorer looks for this file in the same directory as the HTML page currently being displayed, if it cant find favicon.ico it will then display the default Internet Explorer icon in the address bar. As for viewing of favorites, IE will check its temporary folder to see if favicon.ico is there again, if it is not located it will display the default white background with a blue ‘e’ icon.
For a webmaster there are three main advantages to using the favicon.ico ‘trick’.
The first, is that it helps to brand your site with a nice little icon that is easy to recognize.
The second, is that it makes your website more professional.
The third, is that your entry will stand out in surfers bookmarks over the others. This is especially good as, if you can get a surfer back to your site then you have another chance at making a sale.
Many internet users have a multitude of site bookmarks so, you need to use favicon.ico to give you an edge. I highly recommend using it and, now I’m going to tell you how.
First, you will need to create an icon file which is exactly 16 x 16 pixels. If the icon is larger or smaller IE5+ will just ignore it. As for the colors in it, 16 is standard. You can use more colors if you want but, the more colors you use, the larger the .ico file becomes and, the longer it takes to load.
You now know the standards the favicon.ico file has to be, now to actually create this file you can take one of two routes.
The first is to convert and existing 16 x 16 BMP or GIF graphic with 16-32 colors into an .ico file using converter software making sure to save it as favicon.ico.
You know the standards the favicon.ico file has to be, now to actually create favicon.ico . The easiest way of creating a favicon.ico file is to convert an existing 16 X 16 BMP or GIF graphic with 16 – 32 colors into a .ico file using converter software making sure to save it as favicon.ico.
Once you have created your favicon.ico file all you need to do is to upload it to any directory on your server that contains html pages. This way, when IE5+ searches for favicon.ico it will be bale to find it regardless of which page you are on.
That’s nearly all the areas of favicon.ico covers apart from, what if you want different icons for different parts of your website? Can this be done? The answer is yes it can. All you have to do is place the following HTML code between the <head> and </head> tags of your web page.
<LINK REL=”SHORTCUT ICON” HREF=”differenticon.ico”> (SHORTCUT ICON should be kept in uppercase).
Now when someone adds a web page with that code to their favorites, IE5+ will not look for favicon.ico but will look for differenticon.ico and if it’s there it will display it, if not the default icon will be displayed.
Using favicon.ico or the SHORTCUT ICON code is nice way to add a unique touch to your site, and of course will result in more repeat visitors than if you were not using it – which is always good for any webmaster.
Article Written By Le
-
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