|
just another regularban.info web blog |
| MEMBERS: | Create A Website That Works
That should be the main reason that you create a website so that it will work for you in your chosen endeavor. When you build a website it is important to understand what makes a website work. Firstly when you go online in the research mode you type in a keyword relative to your question. Then a number of sites come up with content relative to that keyword. Then you visit a site and see if it contains the answers you seek. The best sites are highly relevant to your search and provide content that addresses your needs. This content is laid out in a way that makes sense. Navigation is straight forward and there are few distractions. As a result you get the answers you seek and because it is presented logically in a way you can understand you relate to it and as a result you follow its recommendations. This is exactly the way you want to build your website. Good content is king but not only that - content that is relevant and solution orientated rather that sales orientated will deliver better results. This way you become your visitor's friend and we all listen to our friends. When people can understand and see results credibility develops. Then share a few secrets here and there and you will have a friend for life. Get this right and you will build a website that will work for all parties concerned. This may sound a little complicated but it actually is not. We are all human beings and we have far more things in common than not. So observe how you use the internet and what your expectations are then you will understand what others expect. To learn how to put all this together select any of the following links.
Your CSS Code is Slowing Down Your Website - How To Optimize for Speed
Did you know that your css code could be slowing down your website? Did you also know that there is a free solution out there that can help you optimize or reformat your css code for speed and readability? This article is going to explain the benefits of optimizing your css code and the reasons why all web designers should be doing it. First we need to take into account the 2 reasons why you would want to reformat your css: readability and optimization. Readability Having nicely formatted css that easily readable is very helpful when you are developing a site. Most of us (me included) can get pretty sloppy when in a hurry to develop code, and a formatter can really help out to make it more readable. On development teams where both Macs and PCs are used, sometimes line breaks are not read correctly across platforms and your css can end up all on one line. A formatter can help get your code looking pretty again. Optimization The opposite of readability is optimization. One problem with CSS is that it can get pretty file-size heavy when designing with it - especially on complex layouts. Optimizing your CSS will strip out all unnecessary characters and leave your CSS lean and mean. Optimizing css is great to do once you've finished your site and don't plan to work on the design very much anymore. The css formatter is a great tool because it can do both! You can format for readability while you are designing, optimize when you go live, and reformat it for readability if you ever need to work on it again. It's really a 'win win' thing to do.
Reusing Code in Web Sites and Applications Part 1 - Using Include() and Require()
Reusing pieces of HTML code is a common way of making web sites (or web applications) more consistent, reliable, and more manageable. Even a small web site consisting of perhaps 20 or 30 web pages can benefit from reusing code for header and footer sections, for example. If the same header or footer is used across all the pages on the site, it makes sense to put the header and footer code in separate files, and then call those files to insert their contents where required. PHP offers two statements that can be used for inserted the contents of one file inside another: include() and require(). These two statements are virtually identical, with the only real difference being that if require() fails, it gives a fatal error, whereas if include() fails it just gives a warning. For this reason I tend to use the include() statement as it just seems slightly more friendly. So, to include the contents of a file called header.inc inside a web page called index.php, you would just need to insert the following line of code (wrapped in PHP opening and closing tags) inside index.php. Include 'header.inc'; As PHP takes no notice of the extension used for the included file, you can use whatever extension you want to. Be careful though, if you put passwords inside an include file with a .inc extension, they will be visible. You can get around this by putting include files that contain sensitive information outside the document tree to prevent people from browsing to them. In Part 2 we'll look at the use of functions when developing web sites and applications.
|
* About Archives
Categories:
Last Updated: |
| regularban.info
is proudly powered by WordPress MU running
on regularban.info.
Create a new blog and join in the fun! Entries (RSS) and Comments (RSS). |