Skip to content


Hosted Scripts and Fonts Coming soon

FreeWebBuilder.info is now using CloudFlare CDN to help deliver content to you quicker and more reliably.

In light of this, I will also be building free hosted script and font libraries for you to us on your websites.  These are all hosted here, and delivered through CloudFlare, so you can be sure you will get a good experience.

To begin with, I will be providing pretty much everything Google does in their AJAX Libraries, plus a few extras that they don’t provide. (DOMAssistant, and base2)

There are not yet any particular reasons to use our script and font libraries over Google’s, but in the future, we intend to host things, such as some HTML5 Polyfills, and some custom APIs for things like Geolocation, and more.

In the mean time, if there are any scripts you think might benefit from being hosted with a CDN, let me know, and I will see what it will take to host them.

Posted in jQuery, New Technologies.


Cross-Browser Box Shadow using jQuery

Here is a cross-browser solution to box-shadow using  jQuery.

It is my first jQuery plugin, so if you see bugs or errors let me know.

<script type=”text/javascript”>

/* **
* jquery-boxshadow.js
*
* $(object).boxshadow(HorizontalOffset, VerticalOffset, Blur, Color)
*
* If you are using this with IE, you should set your object’s background-color,
* otherwise the shadow is applied to all objects within your object as well.
*
*/

$.fn.boxshadow = function(options) {
var defaults = {
hOffset : 3,
vOffset : 3,
shadowblur : 3,
color : ‘#808080′
}
// Extend our default options with those provided.
var opts = $.extend(defaults, options);

var shadowVal = opts['hOffset'] + “px “+ opts['vOffset'] + “px ” + opts['shadowblur'] + “px ” + opts['color'];

if ((opts['hOffset'] > 0) && (opts['vOffset'] < 0)) { var direction = 45; var strength = opts['hOffset']; }
if ((opts['hOffset'] < 0) && (opts['vOffset'] > 0)) { var direction = -145; var strength = opts['hOffset'] * -1; }
if ((opts['hOffset'] > 0) && (opts['vOffset'] > 0)) { var direction = 145; var strength = opts['hOffset']; }
if ((opts['hOffset'] < 0) && (opts['vOffset'] < 0)) { var direction = -45; var strength = opts['hOffset'] * -1; }
var filterVal = “progid:DXImageTransform.Microsoft.Shadow(color=’” + opts['color'] + “‘, Direction=” + direction + “, Strength=” + strength + “)”

if ($.browser.opera) {
$(this).css(“box-shadow”,shadowVal);
} else if ($.browser.webkit) {
$(this).css(“-webkit-box-shadow”,shadowVal);
} else if ($.browser.mozilla) {
$(this).css(“-moz-box-shadow”,shadowVal);
} else if ($.browser.msie) {
$(this).css(“filter”,filterVal);
}
}
</script>

To use it, you need jQuery 1.4+

{code type=html}




{/code}

Posted in CSS, jQuery.

Tagged with , , , .


Chapter 2 – Semantics

Semantics in web design means using the right elements for your document parts. Putting headings in heading tags, paragraphs in paragraph tags, and so on.  Many people can make pretty websites on the surface, but the underlying code doesn’t really make much sense.

Posted in Introduction to HTML.


Chapter 1 – Your first Web Page

Rather than trying to be witty, which I am not, I will cut right to the chase… the Basic layout of an HTML page.  This should generally exist in all HTML Layouts you create from the simplest to the most complex.

{code type=HTML}<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<HTML>
<HEAD>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<TITLE>Page Title</TITLE>
</HEAD>
<BODY>
Your page content here.
</BODY>
</HTML>{/code}

That is all it takes to display a plain page that says “Your page content here.”

Now I will break this code down and explain what each section is for.

The DOCTYPE

{code type=HTML}<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>{/code}

The DOCTYPE tells the user’s web browser what standards set you will be using in your web page.

This basically tells the web browser that the page is HTML 4.01 in English, and might not conform to strict HTML Standards.  For an HTML Beginner, this is probably the easiest DOCTYPE to use, as it allows you to mix in some older tags. This will also make it possible to do some minor hacks and tweaks for older web browsers.

The HEAD

{code type=HTML}<HEAD>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<TITLE>Page Title</TITLE>
</HEAD>{/code}

The HEAD section is used for things you need to include in your page that do not necessarily need to display in the body of the page.  This might include JavaScripts, Style definitions, Meta tags, and more.

In our HEAD above, you will see a META Tag, and a Title.  The Particular META Tag used defines the website’s Content Type and Character Set.  For the most part, this should usually be exactly what I have above.  Once in awhile you will need to change the charset= part to another character set to display text in a language other than English, or produced by certain applications.

* A quirk with how some web browsers interpret HTML means that this tag should be very first thing after the opening <HEAD> tag.

The TITLE Tag is what will display in the Web browser’s title bar when your page is loaded. It is helpful to have something descriptive here, since it is usually what a search engine will display in search results, and users who multi-task will find it easier to navigate back to your page if they do something else.

The BODY

The BODY is probably the most interesting part of the page to your visitors.  Where the DOCTYPE and HEAD are hidden, all of the glory goes to the BODY because, face it… Content is King.  Here is where you will put your content.

Posted in Introduction to HTML.


FreeWebBuilder – Learn HTML

Welcome to FreeWebBuilder.info, my goal is to teach functional HTML (which isn’t always 100% Standards Compliant) to anyone who wants to learn it.  My goal is not to be overly critical about web standards or any one way to do anything.  I will show visitors what works, and explain possible caveats when they exist.  This site will be geared towards beginners, and introductory levels, but may go into more advanced topics at times.

Posted in General Site News.