Connect with us

Design & Coding

HTML Forms III

Published

on

The final installment of this series about forms, their usage and markup. You can catch up on the previous posts at Part 1 and Part 2.

Last week we covered the main form input type which was, appropriately named, the input tag. This now leaves us with select lists, textareas and then a couple of standard layouts.

Select Lists

A select list is a cross between the radio buttons and checkboxes seen last week. If you force a select list to only allow one item to be selected, then it’s a compact version of a group of radio buttons, however, if you allow multiple options to be selected then it’s similar to a group of checkboxes. The attributes for the select tag are:

id
This is the id of the tag and needs to be the same as the value of the label’s for attribute. It also needs to be the same as the value of the name attribute (below)
name
This should contain the same value as the id attribute.
disabled
This denotes whether the list is disabled or not. It can only accept one value of ‘disabled’
multiple
If used this allows users to select multiple options. It can only accept one value of ‘multiple’
size
This sets the height of the select list. If the value is 1 (the default if the attribute is omitted) then the select list is a drop down list. Any value above 1 and the select list is a scrolling box

Options

Options are contained with a select list. They have a value which is hidden from view, and contain the option content which is displayed in the select list. The two main attributes for an option are

value
Contains the hidden value for the option.
selected
Denotes if the option has been selected. This can only accept one value of ‘selected’

An example of a select list is

[sourcecode language=”html”][/sourcecode]

Which would give us

Textareas

A textarea is similar to a text input except instead of a 1 line box for the text you can specify how many rows and columns to have, creating a box for the text. The main attributes available for the textarea tag are:

id
This is the id of the tag and needs to be the same as the value of the label’s for attribute. It also needs to be the same as the value of the name attribute (below)
name
This should contain the same value as the id attribute.
rows
How many rows the text box should display on screen (this doesn’t limit how many rows the user can add)
cols
How many columns the text box should display on screen (again, this doesn’t limit how much the user can type, however their content will wrap when it reaches the final column)
disabled
This denotes whether the textarea is disabled or not. It can only accept one value of ‘disabled’

Unlike a text input, a textarea doesn’t accept the value in an attribute. Instead the textarea wraps around the value/content for it. Example usage would be

[sourcecode language=”html”][/sourcecode]

Which would give us

Standard Layouts

So now we’ve covered all of the main aspects of marking up a form we can look at 2 standard layouts. These are

  1. Labels to the left and corresponding inputs/select/textarea to the right
  2. Labels above their corresponding input/select/textarea

From a markup point of view, both of these layouts can use the same markup with different styling applied (note, there are plenty of ways to mark up forms, this is just the method I find the easiest). For example, a simple comment form on a blog post:

[sourcecode language=”html”]

Leave a Comment




[/sourcecode]

As you can see, each input has a label and each label/input pair is surrounded by a div. This is to help us control the spacing and clearing. To set up a form with labels to the left and the inputs to the right we can use code similar to the following:

[sourcecode language=”css”]#commentform label {
width: 125px;
float: left;
}
#commentform div {
clear: both;
margin: 5px 0;
}[/sourcecode]

To have a form display with the label above the input/select/textarea we can use the following CSS. Note, we could actually remove the div tags around the label/input pairs and the CSS below would continue to work fine.

[sourcecode language=”css”]#commentform label, #commentform input, #commentform textarea {
display: block;
margin: 2px 0;
}
#commentform label {
margin-top: 10px;
}[/sourcecode]

For further information on layouts and how to style and mark them up I recommend reading Style:Phreak’s Standard Form Layout Revisited.

  •  
  •  
  •  
  •  
  •  

A PHP Developer using WordPress to power both blogging and commercial CMS sites. I've written and released a couple of plugins for WordPress and am currently writing plugins for use on commercial websites.

Continue Reading

Design & Coding

Fotor Photo Editor – The Perfect Graphic Design Tool for Bloggers

Published

on

As bloggers and content creators, it’s important to always have visual content built within our best articles and site designs. Infographics, clip art, stock photos and more… but customized and original images will always grab the most attention.

When it comes to actually creating such visuals, you will have many different options to choose from. Whether you are looking for a free application, one that is browser-based, or even if it’s a premium software you need to download and pay for — it’s important to know what’s out there.

Today we are going to be looking at Fotor photo editor which is a free and powerful tool that lets anyone get started with their own graphic design in just a few short minutes.

This tool allows anyone to start using it through a web browser or even with their mobile application. Whether you need to edit a photo, make a collage, or create a custom and original design, it can all be done through the power of Fotor.

The most popular features of this tool are it’s one click filters and fixes that allowed anyone to make their images pop and stand out like never before.

Let’s take a look at some of the many benefits to using Fotor photo editor for your website, blog, or just everyday life.

With most people looking to customize their mobile screenshots on photos with a few simple click of a button, and this is exactly what fotor photo editor will allow you to do. It will also allow you to create custom YouTube banners that can be used to liven up your channel as well.

You can see a few of these examples in the screenshot below.

When comparing Fotor to other graphic design applications like Photoshop, you are going to find many similarities, but it’s also important to note that premium applications like Photoshop are much more advanced, but also more costly in the process. The software is free to use, you can upgrade to Fotor Pro and find even more upgrade and options available.

What makes this design application and tool great for site owners and bloggers, is that it has a unique set of design tools and features — which are what most content creators are looking. In short, it provides users with what they need, while not overwhelming them in the process.

Fotor also offers a nice selection of design templates to choose from, which makes the process of creating new and original content even easier. These template designs scale across the many different design themes, sizes, and concepts on the site.

In addition to everything else mentioned, there is also a nice collection of resources, guides, and tutorials that can be found on their site blog. Such resources will provide users what the information and walk-through processes to get the most out of Fotor.

If you are currently looking for a new design editor to improve the look and feel of visual content on your site, be sure to give Fotor a try.

  • 1
  •  
  •  
  •  
  • 1
Continue Reading

Design & Coding

4 Essential Elements of Web Design (No.3 Will Shock You!)

mm

Published

on

If you’re a small business owner take note of these four elements of web design. They’re essential for boosting your online presence. Click here for more info!

Have you ever wondered why most business websites tend to look the same? It’s like you’ve seen one and you’ve seen them all.

The truth is a lot of business owners prefer the easy route. That means going for a website builder, which offers templated designs.

If you want something different, you’ll have to go custom. But that takes a lot of time. Plus, you’ll have to look for a skilled designer/developer.

Whatever route you choose, you need to understand the elements of web design. After all, it’s your website. If you choose to hire a pro, you need to know what to ask for.

And if you opt to DIY it, then you can steer clear of cringe-worthy web design. That said, here are 4 web design elements that will help boost your online presence.

1. User Journey

You can scroll through countless website design guides and you’ll never see one that says, “ignore what users think.”

Consider mobile apps. Would you download something that’s hard to use and has a lot of annoying ads?

When you design your website, put yourself in your visitors’ shoes. Is your website hard to navigate? Does it load fast?

But how do you know if your user interface is good? Aside from consistency, it has to be simple, intuitive, responsive, and flexible.

This is why it’s good to test different designs first before committing to one. It saves time and eliminates the need for major changes later on.

2. Content

Designing for the web doesn’t stop when you have a “pretty” website. Sure, your target customers will appreciate nifty graphics and all. But if your content doesn’t offer value, users will leave your website.

Now, this doesn’t mean huge blocks of text that will drown your visitors with information. Opt for conciseness. Give your target audience content that’s easy to digest so they can process it better.

Depending on what CMS you are using, content creation is usually the easy part. This is especially the case when using platforms like Weebly, WordPress or Wix. Since most of these platforms are drag and drop, it’s simply a matter of getting familiar with each platform, and knowing how to create great content. There are no programming or design skills required.

3. Accessibility

Did you just check the title again? If yes, you may be wondering why this would be shocking. Shouldn’t this be part of any website designing guide?

The thing is there are plenty of websites that use low contrast for text because it’s trendy. But you have to take into account users who have vision problems.

There has to be enough contrast between text and background. And you also need to choose your colors well. You don’t want to alienate color-blind and blind users who use assistive technologies.

4. SEO

Some people approach website design as a separate entity from search engine optimization. But there’s a way to be strategic about the process so that design elements improve the SEO of your site.

The easiest way would be to outsource to an all-in-one design company such as https://www.databerry.com/. When they build your site, they also take care of the backend coding stuff. This ensures your title tags, meta tags, etc work for better search ranking.

Want to Know More About the Elements of Web Design?

Knowing the elements of web design is your first step to a website that looks and functions well. But getting them all right takes a bit of trial and error.

For more web design tips, don’t forget to check out our other blog posts.

  •  
  •  
  •  
  •  
  •  
Continue Reading

Design & Coding

Defining the Best Colors, Style and Design for Your Brand Logo

Published

on

Have you ever thought about why some companies and brands are more successful and well-known than others? In many cases, it comes down to the products or services they offer, but the actual look and feel of the company brand can play a huge part in this as well.

A great example of this would be every brand that currently has a well-known logo design or identity, even though it doesn’t have the actual name of the company within the logo. Names like Nike, Target, Apple, Microsoft, and Starbucks come to mind. Billions of people from around the world can recognize these brands simply by seeing their logo… and they don’t even need to see a name associated with it. You can see some of the most popular brand logo designs and changes they’ve made over the years in this famous logos reference guide.

With all of that in mind, it’s important to create a logo design for your business that not only represents what you do but also one that resonates with your audience as well. To give another example of the many different ways an industry can influence the way logo are created to relate and brand with an audience, let’s take a look at some of the top online survey sites from a site like SurveyClarity.

What do you notice about each of the popular survey logo designs below? Not only are they mostly text-based, they are all different variations of GREEN! WebPageFX.com says the following about the color green in logo design:

Green is Youthful and Earth-Friendly: Health – Tranquility – Freshness. Green represents growth, and evokes a feeling of relaxation and healing. It is the color of healthy vegetation, so it reminds viewers of nature and health. It is also associated with money and wealth.

This is something you will see in many different markets. Another great example is the banking or make money space. Many of the banks will have a green or blue feeling to them — which both represent calm, financial, and fresh feelings and emotions. However, many other brands like Twitter and Dell are using BLUE to represent their compani\y logo and brand as well.

Now that you likely have a better understanding of what different colors are being used in logo designs today, you might be thinking about the different styles, variations, and colors you can use within your own company or site design and branding.

Thanks to the “What Type of Logo is Right for You?” infographic below (provided by Designhill), we are going to break down the many components and choices of logo design, and how to best represent your brand.

To get started with the process, you should first decide on if you want a font-based logo or a graphic design. No matter which option you choose, you can tweak both design types to work with whatever style you’d like to go with.

A “Word Mark” logo design is one that is made up of a stylized type font, yet is also original in design. A few good examples of this would be the HBO, NASA and CNN logo. At their core, they are text fonts — but also with a unique and custom design in the process.

After you’ve given some thought to the different colors, design types, and styles of logos you can create, we recommend you take a look at the new AI-powered logo maker from Designhill. Not only is the tool free to use, it can create an unlimited number of logo designs for you to choose from. Keep scrolling through the designs until you find one that you like, then complete the process by purchasing the fulicensednced version of your logo design, which also comes in a wide range of file types.

How to Find the Right Logo Design for Your Band

As shown in the infographic below, we can answer a few simple questions to see what type of logo you might want to focus your efforts on for your brand. Depending on how you answer each of these questions, you will find a different result for your brand identity.

  • Is your business well established?
  • Is your business internationally known?
  • Do you plan to remain a small business?
  • Does your company have a long name?
  • Do your company contain a unique word?
Of the many different types of logos you can choose from, the most popular are emblems. However, you will also see a popular occurrence of word marks, pictorial marks, abstract marks and letter marks.
  • 1.3K
  •  
  •  
  •  
  •  
Continue Reading

Trending