background preloader

Html

Facebook Twitter

Tables

Semantics. Style Web Forms Using CSS [CSS Tutorials] A big part of our work as website designers is the ability to make things look good and function well. We spend hours taking the time to make every aspect of our site visually compelling, intuitive, user friendly, accessible and overall beautiful. Our forms are no exception! Our forms should be beautiful, easy to use, and should look consistent with the rest of our website. We can do this easily with CSS. The process isn’t difficult, you just can to know what each tag does, and how to style it. The first thing we need to do is bring in our HTML. Below is the HTML found in our sample form.

You will notice that in the HTML, I used words, names, and ids that make sense. Our form has no structure, no color, and no personality. The code above can look like a mouthful, but it is fairly simple when broken down. Since this is where you entire form is going to be contained, I decided to center the form in the browser by setting margin to auto.

Next, we should style the input area. In the Woods - Examples and Tips for Great HTML/CSS Formatting. An overlooked aspect of websites is the formatting of HTML and CSS documents. This affects validation, SEO, and visual ease of use. Visual ease of use is the last thing most authors tend to keep in mind, but it’s still very important. If you’re building a template for a client, or to sell on ThemeForest, it is important that it’s visually formatted properly. Here are some examples of well formatted HTML and CSS. Use the Strict DOCTYPE (DTD) whenever possible. You’ll notice that I’ve moved the meta http-equiv charset above the title. Encoded Characters Make sure you use HTML encoded characters, including URL’s. Alt Attributes Make sure you’re using the “alt” tag in your images. Properly Nest Tags Make sure your tags are properly nested.

Tags should also be closed in the order they are opened as well as contained properly. External Assets Make sure that your CSS and JavaScript is external. Indentation Indent your markup so that it’s easy to navigate and read. Commenting Markup Order Single-Line. WebsiteTips.com HTML Tutorials, Web Design Tips, Web Master Reso.