Category Archives: Web Design

Should You Embed CSS In HTML Or Not?

yes no depends

A question commonly asked especially by newbie web developers is this: “should I embed the CSS in HTML or not?” Unfortunately, like most web development questions, this one doesn’t have a simple YES or NO answer.

The correct answer is “it depends.” There are times when it makes sense to embed CSS in HTML. There are times when it doesn’t. We shall consider all the options in a while. However, let’s begin by defining what embedding.

Embedding CSS

Embedding CSS is basically inserting the CSS styles within the <head> section of a webpage. The styles are included within the opening and closing <style> tags. Here is an example of an embedded CSS (aka an embedded stylesheet):

<head>
<style tyle=”text/css”>
p{
font-family: Arial;
color: blue;
}
</style>
</head>

Embedding is just one the ways of including CSS on a webpage. The ways others are through adding inline styles, linking external stylesheets and importing external stylesheets. For now, let’s ignore importing and briefly define the other two.

Inline styles add the CSS styling directly into the HTML tag of a page element. It uses the element’s style attribute. For instance

<p style=” font-family: Arial; color:red;” > My short paragraph </p>

Linking attaches an external stylesheet (typically a .css file) to a webpage. It is done by using adding the <link> tag with a rel of stylesheet within the <head> tag. For example:

<link rel=”stylesheet” href=”stles.css”>

When considering whether to Embed CSS in HTML or not, it is important to consider it in comparison with the two options. That is the approach we will take. So, let’s now consider when embedding CSS makes sense, and when it doesn’t.

When You Should Embed

Embedding CSS has one advantage. It enables you to define styles which apply to all elements within a specific webpage. For instance, to style all paragraphs within a page, you simply style the <p> tag within an embedded stylesheet.

This makes it more advantageous than using inline styles. With inline styles, to style all paragraphs within the page, you have to add CSS to each <p> tag. This is not only exhausting, it makes maintaining the webpage extremely difficult.

So, when should you embed CSS? Well, you should embed it when you have styles which apply to a specific webpage only. There two possible scenarios for this:

First, if you are creating only one webpage.

Second, if you want the webpage to look unique from other webpages on the website. For instance, let’s imagine all the <h1> tags within your website look the same. If you want the <h1> tag within your home page to look slightly different from the rest, then it makes sense to include an embedded CSS within the homepage.

When You Should Not Embed

stressful
Embedding is disadvantageous for styles which apply to different webpages. It has two distinct disadvantages. First of all, it makes building and maintaining a website boring and stressful.

Let’s imagine you want all the headers and footers in your website to look uniform. Using embedded stylesheets makes no sense at all. It means you have to copy and paste the CSS code to every page. This is repetitive and boring. Also, if you want to change one thing, you have to edit all the pages. This is stressful.

Secondly, embedding CSS can lead to bloated webpages. Remember, every line on a webpage adds a few bytes to the overall size of the webpage. Wepages which contain embedded stylesheets can become bloated and therefore load slowly. This makes them a little less user-friendly.

The cure for such bloating is through linking. Use the HTML link tag to link to the single optimized CSS file. Pages with linked stylesheets tend to be lighter and load faster. This is because of something called caching. Stylesheets which are shared by numerous pages are often stored on the browser (cached). This means that they are loaded from the server only once. As such, subsequent pages which use the stylesheet load much faster (certainly faster than pages with embedded styles).

So, when shouldn’t you embed CSS? Well, when you want to create CSS styles which will be used in numerous pages within a website. In such a case, the best way is to create an external stylesheet, and link it to each of the pages.

Secondly, you shouldn’t embed CSS in HTML if you want to create faster-loading webpages. This is because embedding leads to slow-loading webpages. To create faster-loading webpages, use external stylesheets.

In a nutshell, those are the basics of when to embed the CSS in HTML or not. Hopefully, this clarifies the confusion. However, in case you prefer a straightforward answer, then it is NO – don’t embed the CSS in HTML.

The reason for this is simple: even when creating styles which are specific to a webpage, you can safely use external stylesheets. All you have to do22 is create unique ID or class names to identify the elements within a specific page. As such, if you are to err, then it is better to err on the side of not embedding CSS in HTML.

Tips How to Get Best Design for Your Website

It is not a good idea for website developers to be writing tips on How to get best design for your website every time they are coming up with a new website. It is therefore important for all bloggers to be aware of such tips so as to come up easily with a professional website without necessarily referring to other sites. There are some important tips that must be considered when coming up with a website so as to meet the main objective. Most developers fail to understand that the main point of interest is the customer and not the owner of the website. Below are some of the useful ideas:

1.Keep It Simple And Be Aware That It Is For Your Customers

It is a fact that no one wants to read something he/she does not understand. Therefore, when you are developing your site, you have to make it customer friendly. Everyone visiting the site should have an easy time understanding the content. This will give the visitors the urge to read more on your site. The mistake that most people do is using a complicated language that most of the customers find it hard to understand. Therefore, the best trick is to make it simple and to the point.

2.Include Contacts On Your Website

contact informationWhen people visit your site, they have a lot of questions to ask. They may require some clarifications and even an immediate attention. If you include an online support system on your site, the customers or the visitors on your site will not find it hard to find you. Besides, they will trust whatever you are posting on your site since they can reach you at any time they need your assistance. Therefore, to win the trust of your customers, include the “contact us” button on your site.

3.You Should Be Consistent

This is another paramount tip on how to get best design for your website. You can imagine how your visitors will feel when they find different colors, fonts and styles on different pages of your website. You should try as much as possible to keep them uniform and attractive. The images posted on the site should match the content posted so as to give the viewers a rough idea of what they are reading. Including good pictures will give them a chance to develop that urge to visit and read more pages of your site.

4.Seek Referrals Form The Experts Before Starting Your Website

tips from expertsThere are those individuals who are experts in developing effective websites. They know a lot and they may guide you on what to do so as to have an effective website. Just approach such individuals and request them to give you some of the tips they have been applying and apply them too. Besides, they can introduce you to the best web developers who will do the job in a professional way. Such experts are very important since they have been doing it for a longer period and they are aware of all the challenges. They will give you the hints that enables your website be ranked higher in search engine optimization. Therefore, never ignore the roles of the experts when developing your website.

 

More

8 Effective Web Design Principles You Should Know

Responsive Web Design: 50 Examples and Best Practices

13 Simple Tips for Improving Your Web Design

Customizing a Submit Button using CSS

Using a simple Submit button code in your forms will result in  not very inspiring appearance

<input type="submit" name="submit" value="Submit" />

This code gets you this submit button
simple-submit-button

If you need a bit more stylish submit button, it is simple using some CSS. First customize the background style and then update the HTML text color code.

Here is a simple button demo:

See the Pen NGLeQz

 

Here are some more awesome examples:

See the Pen

Reasons to have a contact form

It has become common practice for most websites to provide contact numbers and e-mail addresses where their visitors can contact them. However, having a contact form on your website has a lot of benefits to it that you might not realize now. Here are the ten reasons why it’s a good idea to have a contact form on your website:

have a contact form

Contact forms are secure

. In most cases, the information that is sent through a contact form is more secure than those that are sent through e-mails messages. This is ideal for users who are required to provide private or sensitive data.

Contact forms are convenient.

If you have a contact form available in your web page, it makes it easier for visitors to contact you. You are relieving them of having to open their e-mail on another window to be able to send you their inquiry. Using a ready-to-use simple email form like this one, you can quickly add a contact form to your website

You can extract more information.

By asking your visitors to provide information on contact forms such as their e-mail address, names, location, contact number and any other information you feel you might be able to use, you are also extracting key data that you use to build your database. This will allow you to follow the lead more efficiently.

It makes you available at all hours.

If you simply provide them with a contact number, unless you have a 24/7 call center at hand, you would not be able to respond to your inquirers immediately. By giving them a contact form to fill, they can access you any time of any day and you wills surely get their message.

have a contact form

Contact forms are easy to customize.

You can design your contact form in a way that it forces the visitor to only give you the necessary information regarding why they have contacted you.

It allows you to provide better service.

A contact form, in the long run, can help you improve your products and services. This is so, because you are encouraging your clients and visitors to inform you about anything that they feel like they should address to you. You can then take their suggestions and improve your business.

Contact forms are effective as call to actions.

People unknowingly provide a ton on vital information when filling out contact forms which you can then use to generate lead.

It makes data manageable.

You can easily analyze and categorize the data that is being fed to you through contact forms. You can turn it into a database and analyze what kind of people reach out to you, who they are mostly and how you can target this demographic. Using an HTML contact form generator it is possible to build even more powerful lead capture forms.

Contact forms are mobile device friendly.

Having a contact form on your website will free your visitors of the burden of having to type out an email on their mobile devices.

You can use it to collect funds.

If you can customize your contact forms to include a space where visitors can make donations by putting in their financial information. This is something you cannot do with e-mails.

Image credit: Gustavo da Cunha Pimenta,

How To Become A Website Designer

So you look forward to become a web designer, but you have no idea if this is the right choice for you. Web designing is a booming career and in the last few years it has become one of the highest paid jobs in the world. In order to become a good web designer, you need to put a lot of efforts and time. There are many online resources and self-taught guides that you can use to learn the concepts and techniques of designing a website. In this post, we’ll discuss the basic steps to become a web designer, but before that let’s take a brief look at the job profile of a website designer.

 

how to become website designer

What Does A Web Designer Do?

As the name suggests, a web designer is supposed to draft a layout and design a full-fledged website. His main focus is to run his creative mind on the lines of the basic theme and requirement of a business for which the website is to be designed. There are a lot of tools and techniques that a web designer should be proficient in, to be able to deliver effective and attractive outcome. A web designer must have great computer graphic skills and ability to use the relevant software needed to create a fully-functional website.

how to become website designer

 

What Skills Should A Web Designer Have?

This job is not for people who are technophobic. It needs a lot of technical skills, research and high level of creativity to be able to deliver original, user-friendly and fresh site. This is an era of dynamic websites and in order to be able to make and implement the changes, one should be well versed with all the tools and techniques to achieve desired result from time to time. Innovation is the key to become a good website designer. Let’s take a look at some skills you would need to attain proficiency in this field:

  • Writing & editorial
  • Holistic circumspection
  • Web page production in HTML/CSS
  • Business sense
  • SEO
  • Graphic design theory
  • Listening & discernment
  • Self-learning Graphic design: original/creative graphics
  • Typing

Other key skills include:

  • High level of computer literacy
  • Creative flair for design
  • Excellent team working skills
  • Flexibility
  • Ability to see the bigger picture

What and Where To Learn 

As mentioned earlier, there are many online courses and web tutorials that you may consider to get started with your crash course on web designing. Study resources such as udemy.com is a good step to begin with. Such online courses provide you step by step instructional guides to help you master the subject. With a bit of online research, you can easily find suitable and flexible online tutorial centers according to your need.

Once you’ve gained some experience in the field, you can market yourself to get some freelance assignments as well for extra income. A web designer can expect to earn over $500 a month by just taking 3-4 assignments in a month. All you need is to find reliable online, as well as offline classified options and put up an interesting advertisement along with some links to your previous work. This should help you grab good amount of potential customers, as well as businesses looking to get website made at affordable prices.