Professional Documents
Culture Documents
Web Design For Beginners
Web Design For Beginners
W
OF VIDEO TUTORIALS
NE
Create
your first
website
today
Web Design
™
The Internet is ubiquitous across so many aspects of our lives that it’s difficult to
imagine living without it. As a platform for consuming media, connecting with
others and discovering new ideas and information, the web is unparalleled, and
as such web design is a more prevalent and more important skill than ever. While
some may be deterred by the seeming complexity of the web design process,
first timers will find this newly revised edition of Web Design for Beginners to
be an essential handbook. Spelling out all the basics, it will teach you how to
use HTML and CSS to create and style your website, before honing the user
experience with more advanced techniques. You will also discover how to use
Photoshop to produce graphics, SEO to get your website recognised by the likes
of Google, and social media buttons to boost your site’s interactivity. In no time,
you will see your website flourish into a fully fleshed-out online venue capable of
gaining and retaining visitors over time. Who knows, once you’ve mastered these
simple steps, your website idea may have the potential to be the next big thing!
Web Design
Imagine Publishing Ltd
Richmond House
33 Richmond Hill
Bournemouth
Dorset BH2 6EZ
+44 (0) 1202 586200
Website: www.imagine-publishing.co.uk
Twitter: @Books_Imagine
Facebook: www.facebook.com/ImagineBookazines
Publishing Director
Aaron Asadi
Head of Design
Ross Andrews
Production Editor
Jasmin Snook
Assistant Designer
Alexander Phoenix
Photographer
James Sheppard
Printed by
William Gibbons, 26 Planetary Road, Willenhall, West Midlands, WV13 3XT
Distributed in Australia by
Gordon & Gotch Australia Pty Ltd, 26 Rodborough Road, Frenchs Forest, NSW, 2086 Australia
Tel +61 2 9972 8800 www.gordongotch.com.au
Disclaimer
The publisher cannot accept responsibility for any unsolicited material lost or damaged in the
post. All text and layout is the copyright of Imagine Publishing Ltd. Nothing in this bookazine may
be reproduced in whole or part without the written permission of the publisher. All copyrights are
recognised and used specifically for the purpose of criticism and review. Although the bookazine has
endeavoured to ensure all information is correct at time of print, prices and availability may change.
This bookazine is fully independent and not affiliated in any way with the companies mentioned herein.
Web Design for Beginners Seventh Edition © 2016 Imagine Publishing Ltd
Part of the
bookazine series
Contents
Essential
Build a site guide to web
22
28
An introduction to HTML
Create a basic layout
design
30 Code a link page 8
32 Create lists in your website
34 Learn to use div tags
36 Create a three-column layout WordPress
40 An introduction to CSS
46 Centre your page 76 Get to know WordPress 4.0
48 Define text & heading styles 84 Download, install and set up a
50 Style your lists to stand out self-hosted site
52 Turn lists into navigation bars 88 View and organise WordPress
54 Format images using CSS dashboard modules
56 Style a two-column layout 90 Create a WordPress blog
60 Create a header 94 Edit your WordPress blog posts
64 Create a sidebar 98 Post images into your blog
68 Add content to your website 102 Embed external media in your
72 Add content to your footer WordPress posts
106 Add special features to text
Glossary
Understand
web designer
terms
“Promote your work page 170
for all to see”
Photoshop
& Graphics
130 New ways to work
Customise your site
with Photoshop 146 The perception of colour
136 Create great backgrounds 162 152 Make an expanding
140 Design header and footer Monetise navigation menu
graphics in Photoshop your new
website 156 Create animated
130
New
background text
Photoshop 158 Make image hover effects
top tips 160 Animate a strike-through
text effect
162 Add a shopping cart
164 Create email newsletters and
let people subscribe
166 Add social media buttons
168 Add Twitter Cards to your site
T
he web made its debut back in 1991, that web design and the web are always going to
adding a graphical user interface to the be informative, inspirational and essential.
internet. As such, web design was born. Think about what you use the web for and how
In its infancy, web design was heavily restricted by you would achieve these tasks without it. In the
technology and hardware, with a web presence couple of decades that the web has been around
being little more than black text on a white it’s gone from a plain text, email-checking entity
background. Thankfully, technology and web to the key communication and information tool of
design have reached a far more creative and governments, businesses and individuals. And, what
imaginative stage in their evolutions. Skipping past is it that makes the web such a crucial tool? Web
frames, tables and animated GIFs, web design has pages and websites. Whatever information, service
become far more sophisticated and will continue or product you need it will be wrapped up in a web
to grow and develop. Look back a couple of years page just waiting for you to say hello.
and take note of what was ‘on trend’ and how the
underlying infrastructure helped shape a website. Why build a website?
The progression of web design has always gone It’s a simple question, but why build a website?
hand-in-hand with technology, and technology There is no single answer to what is undoubtedly a
never takes a backward step, which in turn means very broad question. However, the answer could
Anatomy of a website
Websites by their very nature are made up of constituent parts. Characteristically, the header of the best and worst of websites found on the
a few constituent parts that are arranged in a a website appears at the top of the page, the web. Take a look at your favourite site and it is
manner to suit the content. Typical websites are footer at the bottom of a page and the main almost guaranteed to fit into the standard type
either two- or three-column layouts with a header content in between. of template. The key to a great site is bringing all
and footer. What sets sites apart is the imagination Background images or colour will be used the constituent parts together in a coherent and
and variations used in the construction of the to create a canvas for the page. This applies to cohesive manner that suits the content.
Logo Header
The logo is crucial, The top of the page
its presents the site is prime real estate
brand and it is a key on a web pages and
navigation point. It typically includes
should always take the site logo and
the user back to the the navigation
home page menu and
often advertising
Content
The main area of
any website is its
content. This will
typically appear Image slider
under the header A popular addition
element and will be to websites is an
arranged in a variety image slider. This
of styles, such as allows for multiple
two columns, image content to occupy
slider and the same space.
three columns Images, with text,
slide across to reveal
new content
Footer Sidebar
The footer, as its Sidebars are
name suggest, predominately
resides at the placed to the right,
bottom of the page. as this makes the
This typically offers content easier to
contact information, access, with less
links to social media mouse travel. A
and a repeat of the sidebar can contain
navigation menu an array of related
information and
interesting links
>>
What makes a good blog or from a local/home computer to a web server where
the website is ‘hosted’. A web host provides the
service that gets a website out onto the internet for
social website? all to see. Web servers are like a desktop PC in the
fact that they have similar hardware, but they are
much more powerful and run different software.
Blog sites can be bland and boring. But there are hundreds, if not thousands, of blogs that have A web host provider such as Fasthosts (www.
stepped outside the standard template to bring a splash of creativity and originality. Ultranoir (www. fasthosts.co.uk), 1&1 (www.1and1.co.uk), Heart
ultranoir.com) is an award-winning Parisian creative agency that has taken the blog format and Internet (www.heartinternet.co.uk), Host Papa
created a striking and unique design. The Ultranoir blog, known as Blackstage, is a simple selection (www.hostpapa.co.uk) and PlusNet (www.plus.
of posts, but the combination of fonts, typography, images, layout and effects make the blog a net) all provide a wealth of services including
compelling, imaginative and engaging presence. The bespoke layout makes an immediate impression. web space, monthly bandwidth, domain names,
The two-column arrangement does not simply stack post on top of post, but uses a combination of email accounts, databases, platforms and typically
post sizes in a grid type layout to emphasise specific posts. The arrangement of individual posts does a host of web building tools. All of these services
not stick to a rigid format, again offering bespoke arrangements. There are posts with images, without are included with a web hosting package, but
images, with intro text, without intro text and different size title text. The arrangement of the text and each web host will have different hosting plans.
the different weights make it ultimately readable. To finish, it adds a few clever dynamic touches, with The different plans provide everything from starter
a 3D effect on post boxes, on mouse hover and moving featured images. plans through to powerful plans for business. What
type of plan is needed depends very much on
what type of website is being set up. If it’s a simple
blog site that gets updated once a week and has
an audience of around 500 visitors a month then a
cheap starter plan would be ideal. If it is a company
website with much more content and a lot more
visitors expected then a more professional plan will
be needed.
So what does all the jargon mean? The more
important considerations are web space and
bandwidth. Web space is storage space, the same
as a hard drive. How much is needed obviously
varies dependent on the content, but if it’s a blog
with standard text and images then it’s unlikely
that more than 1GB of web space will be needed.
If more than text and images are going to be
displayed, for example video, photos, music, then
1GB of web space can be filled very quickly. Ten
gigabytes or more is a better option for such a
site. It is a good idea to estimate how much web
space you will need before embarking on choosing
a hosting plan. Don’t worry too much though,
because web space can be upgraded easily and
typically within 24 hours.
The other major factor is bandwidth, which is
usually measured by the month. Bandwidth is the
traffic, or the amount of data that is transferred to
or from a website. A quick method for estimating
monthly bandwidth is the sizes of the pages on
a website multiplied by how many visitors are
expected. For example, if a website has a total
page size of 1MB and the expected visits are 500, a
bandwidth of around half a gigabyte is sufficient.
However, if there is a spike in visitors due to sudden
Imaginative use interest then this could easily be doubled. Again,
of layout, fonts
and typography there is no need to worry as the bandwidth can be
produce a unique increased when needed.
and engaging
variation on the Other considerations are databases, if setting up
blog format a WordPress blog then at least one database will
be needed. If building a static brochure site that
just consists of text and images then a database
At the time of going to press, the latest incarnation of WordPress has Themes not only make a WordPress site look great, but they can be tailored to your particular
reached over 38 million downloads business or personality and can be changed in seconds
“Building a website is like building a house to a web page to create effects that typically add
movement. What can jQuery do? Typical examples
– you need a host of tools” include tabbed panels, image sliders, slide shows,
sliding panels, expanding and collapsing accordions
and tool tips to name a few.
(OS), typically Windows or Linux. This is not dictated of HTML is HTML5 and newcomers to web design Getting to grips with jQuery is not an essential
by the OS your computer is running; it relates to will need to make sure that, along with all the element of design, but it is something that should
OS that the web server is running. It only matters standard HTML tags, they also add HTML5 tags to be put on any web designer’s to-do list when
if you’re going to build a basic HTML and CSS site. the learning list. they’ve mastered HTML & CSS. Other backend
However, if a certain technology is to be used, it Sitting alongside HTML in the web design technologies that power many websites are PHP
may only run on a certain operating system. hierarchy is Cascading Style Sheets, which is and MySQL. PHP is a programming language that
commonly known as CSS and it is just as important plays a big part in the makeup of the WordPress
Tools of the trade that website builders know at least the basics. publishing platform. Typically, PHP is embedded
Building a website is much like building a house; a CSS adds style to the front end of a website and into an HTML page and produces dynamic results.
host of tools are needed to make sure that the job defines the layout, whatever it may be, style fonts, MySQL is a database application, which means it
gets done. There are a few essential techniques and borders, images, and create a background canvas stores information entered into a site. It is often
combined with PHP and a typical example of
the two in action are WordPress posts where the
content is stored in a MySQL database.
Getting all the essential technologies onto a page
is the work of a selection of tools. An HTML editor
is critical and one of the most popular software
Keeping it safe packages on the market is Dreamweaver. Part of
the Adobe Creative Suite, it offers a user-friendly
interface and an impressive set of tools that assist
Security is an often forgotten issue when it comes to any web designer with what they need. The
a website, and there are a few simple rules that need alternatives are explained elsewhere. An HTML
to be followed to ensure that a website’s security editor needs to be accompanied by an image-
is not breached. Passwords are the most popular editing package to make sure that a website is
form of securing access to a website, whether it’s beautiful while functional. The popular choice is
via an online login page, such as WordPress, or an Photoshop, which provides powerful tools that are
FTP package used for transferring files from a local perfectly capable of creating any web graphic in
computer to a server where a site is hosted. One the right format.
quick tip is not to use the password ‘password’! Beyond page building there is the web designer’s
As obvious as it may seem, the default password favourite web publishing platform: WordPress.
is often left and not changed. Try and choose a
username that is not too obvious and ensure that a
password uses upper and lower case characters and
numbers. If it’s hard to remember try not to write
down and leave it next to your computer.
If using a web publishing platform, ie WordPress,
some simple commonsense precautions are to
update to the latest version. In addition, update any
plug-ins and themes and also remove any inactive
themes and plug-ins. Other security measures are
more generic but just as important. Make sure that
any OS updates are installed and make sure that any Login screens provide the typical point of access, needing a
anti-virus and firewall software is kept up-to-date. username and password to gain entry
You can create great backgrounds for your website by creating
stunning graphics
CSS3 Click
Chart
provides
sample
code for Add a base
popular colour and
and create a
cutting- complementary
edge CSS colour palette
techniques for a website
1&1 Hosting (1and1.co.uk) offer several different hosting plans and
packages. Pick the one that suits your needs
Smartphones
and tablets are now
as much part of the web
browsing experience as the
desktop. With the adoption of mobile
devices comes a new set of resolutions and
rules for web designers. Smartphones typically
have a screen width of 320 pixels in portrait workflow of a designer but also adds to the
mode and 480 pixels in landscape mode. Tablets development cost for a company. The current
are a more diverse bunch, but as a typical solution is ‘responsive design’, which looks to
example, the iPad has a width of 768 pixels in cater for all screen resolutions and ultimately all
portrait and 1024 pixels in landscape. Desktops devices and desktops, in turn future-proofing
vary from 1024 pixels up to around 1900 pixels. any website design. Responsive design uses
The variation in sizes demonstrates the issue CSS3 media queries, which recognise the width
of designing for mobile and desktop. One of a device and then switches the content to the
option is to build a mobile-specific version of a appropriate version of the website to ensure the
TheWarface (www.warface.co.uk) website is a great example of
desktop website, but this not only adds to the best on-screen display. responsive design in action. Great on mobile and great on desktop
30 Code a link
Learn how to put different pages together
GREAT
CONTENT
Add the meat to your website
with our guide inside
SIDEBAR
Learn how you can not only
create but use a sidebar to its
full potential
T
he majority of web pages are made up of of data that you want to render as a paragraph of this system of marking up content is that it’s
one or more files that are downloaded to would be ‘marked up’ with a paragraph marker. easy to read – you don’t need any special
a computer, which in turn are interpreted software to either write or read HTML documents,
by a web browser and finally rendered out to Marking up as they’re just plain text. This makes it easy to
screen. At its simplest, a web page is a plain text Markers are referred to as tags, and they have create a functioning web page using nothing
file that contains special instructions about what less-than and greater-than symbols around them. more complex than a text editor.
kind of content is contained within. These This paragraph would be marked up with a <p>
instructions are written in HTML – the language tag at the start to denote a paragraph, and a What exactly is HyperText?
used on the world wide web. matching </p> tag at the end to signify the end Why is the language called HyperText Markup?
HTML, or HyperText Markup Language to give it of the paragraph. HTML offers many tags for Because the key thing that makes the World Wide
the full name, is the core building block of a web marking up content, and browsers are Web a web, rather than a series of disconnected
page. HTML is a markup-based, human-readable programmed to interpret these tags, formatting pockets of content, is the ability to link one
language that’s designed to be simple to write, the contents of each tag according to a set of document to another – these links are HyperText
and easy to understand. A markup language is preset rules. This allows the <strong> tag to because clicking on them takes you somewhere
one where bits of data are literally marked as render text in bold, and the <em> (for emphasis) else in the vast web of pages! As well as a basic
being of a particular type. So, for example, a piece tag to render in italics. One of the major benefits HTML (text) document, web pages can call in
What is HTML5?
HTML5 is the latest version of the HTML specification, which is managed by the World
Wide Web Consortium (W3C). This latest iteration of the standard introduces new features
and support for multimedia directly inside an HTML document. One of the key
considerations for the W3C is maintaining backwards compatibility, however, and HTML5
remains backwardly compatible with all web browsers and renderers.
The most exciting aspect of the HTML5 specification is the semantic approach to
marking up content. For the first time, web designers can mark up an article as such –
especially useful given the nature of blogs, news websites and the like.
which is easier for web designers” desktop computer is the CSS styles that have
been applied. The content, and often the
structure, of the page remains plain HTML
know it today, and led to an explosion in use content any way you like. This is both a benefit and there’s no need to learn special skills or
of the internet. HTML itself has been further and a potential issue as the flexibility to present additional languages to be able to create sites
developed over time, and we’re now up to its (and mark up) content in any way also means that that on these devices. That’s not to say that
latest version – version 5. you can quickly end up with a confusing mess! A you shouldn’t consider how your users are
movement to present information in a semantic accessing the web page and what
All new and improved: HTML5 fashion existed at the birth of the language, and information they might need!
You can’t fail to have noticed the talk of HTML5 in has seen a resurgence in recent years. Typically, a mobile-optimised website will
recent years. Even non-web-savvy users have The general idea is that content should be be presented in one of two ways: either it will
come across the term, largely thanks to Steve marked up according to its type and importance. be the full website presented to render nicely
Jobs and the iPhone. HTML5 is the latest iteration <h1> heading tags, for example, should only be on the smaller screen size that you find on
of the HTML language, and looks very much the used to mark up the most important piece of info phones and tablets, or it will be a special
same as the previous versions. New tags that on a page, <h2> for the second most important version of the website that doesn’t contain
provide greater semantic meaning to the content and so on. If you think about the analogy of a the same information as the full website. This
being marked up have been introduced, along book, the <h1> tag might be the book or chapter latter approach supposes that a mobile visitor
with native support for rich media such as audio name, <h2> would be a section header and so to your site is likely to be more goal-
and video. The ability to make a document on. By using this approach, the HTML describes orientated than a desktop visitor, and aims to
self-describing offers numerous benefits, but it’s the importance of each piece of info which helps present the key information quickly, such as
worth pointing out that when the term HTML5 search engines identify what your page is about, ‘how to find us’, or ‘our contact details’.
is used – especially in the press – it often refers to and more importantly special software, such as
a trilogy of technologies rather than just the screen readers that translate web pages into
HTML language itself. The press interpretation of audio for people with sight problems, can make
HTML5 includes both CSS3 and JavaScript in more sense of the document.
addition to the HTML5 language, and is often In the past, content has been marked up using
used to describe the experience of interactive, heading and paragraph tags, but content has
The <h1> tag is one of six different heading The <p> tag has to be the most common in use The <article> tag is brand new to HTML5.
tags (ranging from <h1> to <h6>). This signifies on the web. It marks up a piece of text as being a This handy tag enables you to mark a set of
the most important piece of information on your paragraph. Individual paragraphs can also be content as being part of one story. An article can
page, or in the section, and is akin to a chapter grouped into articles with another tag as you will contain many heading, paragraphs, images and
name or book title. soon see… other assets.
The <section> tag is also new to HTML5 and The <a> tag is perhaps the most important tag The <aside> tag is a great addition to the
allows you to mark up content into sections. of all. This anchor tag enables you to connect HTML5 specification. It allows you to mark up
Each section can contain a single item, or a different web pages together with a link. Without content as being not wholly related to the main
collection of related items. This tag is designed the <a> tag, there wouldn’t be a web so much as content of your page, section or article. This is
to allow you to mark up semantically, while still a collection of isolated pages that you’d need to typically used for sidebars and other
providing hooks for CSS. remember the addresses for. nonessential, but interesting, information.
The <header> tag allows you to mark up a The <img> tag allows you to call in images
section of your page, section or article as The <nav> tag simply marks up an area that’s into your page. It accepts a series of attributes
containing the masthead or header information responsible for the navigation on your page. that specify the location of the image on the
for that content. For an article, this would be a Typically it will contain many <a> tags, separated web, the width, height and some alternative text
heading and perhaps an image, while for a page by an unordered list (using the <ul> tag) and for screen readers or to be shown in the event
it might be your logo and page navigation. individual list items. the image can’t be found.
I
n this tutorial we’ll make an HTML5 layout for elements which help the browser interpret the with ‘</example>’. Note the ‘/’. Any thing within
a simple webpage. While initially HTML may layout of the page easier. <header> and <footer> those two elements will be considered its children;
look confusing, there’s a relatively small amount are two examples, and describe common top and they are contained within the element. This is
of code that you'll need to remember. There are a bottom elements of a page respectively. important to remember when you later use CSS and
few basic building blocks such as <div> which you When starting out in web design it’s important to then JavaScript. So open your text editor of choice
will find yourself using regularly, then others such as remember to ‘open’ and then ‘close’ tags correctly. – be it NotePad on Windows, TextEdit on Mac, or
<caption> which you will use much less often. Opening a tag looks like ‘<example>’ while closing something more high-end – and let's get started!
If you have made pages before in the past using
HTML4 then you should feel at home, just be
aware of the new tags. If you've not written any “There’s a relatively small amount of code
HTML before then good news, as it’s now easier
to understand! HTML5 has added in a lot of new that you'll need to remember”
A simple two-column page Div tag
A div is used to group content
The parts of the skeleton of an together, in this case we use it to
display our content and sidebar. Divs
elementary webpage can be nested within each other and
can have IDs and classes applied to
them so they can be identified
Header tag
The header differs from the head,
as it’s contained within the body
of the HTML page, meaning it
gets displayed in the browser. The
header usually contains company
insignia, navigation and possibly an
introductory image
Footer
The footer tag denotes an element
that usually goes at the bottom
of the content, and contains
items such as author, contact info,
telephone numbers etc
Code a link
Adding in links to other pages in your site and external sites is a key part of web design
W
hile links may seem like a simple element to add to a webpage, they are
the key building blocks of the entire internet. Imagine having to type a
different address into the browser for every single page you wanted to visit
on the web! Similar to pages within a book, separate webpages within a website help to
break up content by topic or purpose. Then, by adding in a navigation bar or something
similar to your site, it means that visitors will be able to quickly move to the content that
they are interested in.
Links are also one of the most important elements that Google and other search
engines use to find and index your site. The kind of content that you link out to, and the
kind of content contained within sites that link to your pages, are vital in informing the
search engine on how to categorise your site for its search results.
This tutorial will take you through adding in links leading to other pages in your
website, and how to link out to other people’s sites. Once you have added some links,
your site can start to function how it’s intended to, with visitors being able to view all the
content contained with ease.
<a> tag
The <a> tag is what denotes a link,
and is used on practically every
webpage on the internet to link to
other documents and sites
href
The 'href' part is where you enter in
the destination for the link. Usually
this will be somewhere else within
your site, but it can also be to
another page on the internet
RELATIVE PATHS
Relative paths or links, can only be used when linking to pages or files within
a site directory. A simple example is <a href="portfolio.html">Portfolio</a>.
This assumes that the page is in the same directory as the file that contains the
link. To link to a file in a different directory, the name of the location (typically
a folder) will need to be included, for example: <a href="portfolio/portfolio.
html">Portfolio</a>
L
ists are an effective way of presenting important information in a way
that’s quick and easy for your audience to read and digest. They are also
a good method for giving a brief overview or introduction of the content to
follow, helping your users find what it is they are looking for.
Coding up a list in HTML is quick and very straightforward, and once you’ve got
the hang of the basics you can start to apply your own styles using CSS to make
them really stand out from the crowd, which we’ll come to later.
There are two main types of lists in HTML: ordered and unordered. An ordered list
starts at one and then increases. This is useful when you need to prioritise certain
entries and give preference those that appear higher up. Alternatively, ordered lists
are essential if you want to display a step-by-step guide that's easy to follow.
An unordered list is simply bullet-pointed; this style is useful when you just need
to display a list where the order is irrelevant. By default, lists will be indented from
the surrounding content and a circular bullet point will be used.
This tutorial will show you how to add lists to your pages, both ordered and
unordered, and also how to create lists within lists. The only thing you need to bare
in mind is not to go overkill with lists, leaving your content boring and 'listless'!
Unordered list
An unordered list is simply a series
of items grouped together. By
default they will be indented and
each item will have a bullet point
next to it
Nested lists
Lists can be embedded within other
lists simply by opening and closing
a <ul> or <ol> within another list.
These are then indented further, and
show a white bullet point
DEFINITION LISTS
There is one other type of list in HTML – the definition list. It’s
Ordered list quite rarely used but allows an indented description to be
added to each list item. An example definition list would be:
An ordered list automatically
applies numbers of ascending <dl>
value to each item within it. This is <dt>Snowboard</dt>
useful when you need to prioritise <dd>- Great for freestyle tricks</dd>
content, for example <dt>Cross Country Skis</dt>
<dd>- Ideal for exploring on</dd>
</dl>
A
n HTML page is made up of a series of tags that tell the
web browser what to display and where. The main building
block of a page is a div tag, short for division. If you look at
a newspaper page, you will see that text is grouped together in
columns. Images with captions are also together with a margin
around them. A div in HTML is similar to this, and it’s usual to group
together content in a similar way. While HTML5 has added a few new
tags with more semantic names such as ‘header’ and ‘footer’, the main
body of most pages is still constructed using divs.
There is no limit on how many divs you have within a page
and most webpages you visit online will contain many, all
nested within each other. Divs can contain text,
images, video and audio, as well as other
HTML elements such as articles
and sections.
This tutorial will show you how to
make your first divs and then how to apply an
ID or class to them so when you’re ready you can apply
CSS styles, or use JavaScript on them. We’ll be using plenty of
them throughout the book!
Indenting divs
Once your pages get more complicated, they can feature
Properties of the div many divs all nested within each other. This can make it
hard to track where one opens and another closes. It’s
Divs, classes and IDs standard practice to indent the content of a div using the
tab button
Div classes
Classes are widely used in web
development to allow CSS styles to
be associated with elements within
your HTML page
IDs
IDs are used in a similar way to
classes, but there should only be NESTING DIVS
one element on a page with a
particular ID. IDs allow you to target Many webpages are made up of a few main elements such as a
specific elements using JavaScript header and footer, and then a main content div. Within a div it’s
for manipulation possible to have other divs. For example:
<div id=”content”>
<div class=”leftColumn”
</div>
Code highlighting
Most HTML editors offer code <div class=”rightColumn”
colour highlighting of some sort. </div>
This can help you when checking </div>
which divs have classes applied etc Doing this allows you to have a universal style to the ‘content’
div, and then apply different styles to the divs contained within.
H
TML and CSS essentially allow for a right with supplementary information or Facebook show you how to code up the HTML scaffolding
huge range of freedom when designing and Twitter feeds. This is then commonly rounded for a three-column layout using modern HTML5
your pages, but there are a few layout off with a site-wide footer containing copyright elements. Once you have mastered this, it can then
principles that have developed over the years information, the name of the site designer, site links be adapted into a two- or more-than-three-column
which it’s a good idea to follow. and sometimes a contact address. This tutorial will layout if you so wish.
If you have a quick look at some of your favourite
sites on the internet it’s quite likely that they will use
a column layout, akin to a newspaper. A common ”This tutorial will show you how to code up
layout for a site is to have the site or company logo
at the top of the page, then have a column down the HTML scaffolding for a three-column
the left for navigation or links, a main content
section in the centre, and then a sidebar on the layout using modern HTML5 elements”
09 The header
The top element to our page is usually referred
07 Adding comments 08 The container to as a ’header’ and contains the site title, logo,
Sometimes you may wish to add a note to a It’s quite common to wrap all the main content navigation, and sometimes adverts. To create
location within your page, perhaps as a reminder within the body in a ’container’ div. This can make a header we use the header tag, which is new
or to make it easier to see where certain elements styling and centring easier when you start to in HTML5. To open it enter <header> and then
start or finish. Comments are started using ’<!--’, write up your CSS. Add a container div within the to close, </header>. A page can have multiple
followed by the comment text, and then ended body with <div> and </div>, then give it an ID so headers, although they cannot be contained
with ’-->’. For example: <!-- Start header --> we can style it later: <div id=”container”> within each other.
13 Second column
The second column is usually the widest in the
centre, and normally houses the main page 15 The footer element
content. Add it to the page the same way as 14 Third column The footer is used to mark the bottom of the
before, but give it a different ID this time.
The third and final column is then added in page, and often contains a list of common links,
001 <div id=”col2”> </div> exactly the same way, with a unique ID: <div along with copyright and/or contact information.
Don’t be concerned if you can’t see any content id=”sidebar”></div>. If you wanted to place the To add a footer we simply use the HTML5 footer
within your browser – as without styling, divs name within each div to see the results in the tag – <footer> – and as always, close it off using
are essentially invisible and only the content browser and help you visualise the page layout, </footer>. Place this after your sidebar column in
contained is displayed. then you can: <div id=”sidebar”>Sidebar</div> the code.
17 Stopping Google
16 Metadata (optional)
If you know what content is going into the
indexing (optional) 18 The end result
pages and wish to improve search engine To stop Google and other search engines Save the file now, making sure to have the .html
optimisation, you can add meta information to indexing your page, you can add the following extension at the end. Open the file within a
the head. Meta information helps Google and code to your head: <meta name=”robots” browser to see the result. As there is no styling
other search engines to index and organise sites content=”noindex”>. This means the page will not applied yet, it won’t look particularly attractive
by content. The meta description tag is used to be shown in Google’s search results. This can be by any means, but you’ve created a basic web
give a short account of the page content: <meta useful on client login pages, or out-of-date pages page layout that’s now ready for CSS and content
name=“description” content=“Fishing in Dorset”> that you wish to archive. to be added.
Visit www.
responsinator.
com to see how
websites are
styled on
different devices
www.
unitedpixelworkers.
com (pictured here) is
an exceptionally
stylish website
An introduction to
CSS
If HTML provides the structure for a website, CSS provides the
form. This is the language that will make your site stand out
C
ascading Style Sheets, commonly by design. To fully understand what it’s capable
abbreviated to CSS, is a language used for of, we need to look a bit more at what CSS is, why
describing how HTML should be and how it came about, and examine how the
presented. CSS documents provide all the implementation of the language works across
format, colour, positioning and other different web browsers.
characteristics of a design that you will see on
virtually any webpage. The cascading bit which identifies the HTML elements the rule
Originally introduced alongside HTML4, the CSS is designed to use a priority scheme that should apply to. Within the rule, a series of
language was designed to separate the structure determines how styles should be applied to properties and values are defined so that the
of a document from the presentation, improving HTML elements. The cascading bit of the visual characteristics for an element are built up
the control of a design for web designers. CSS language name refers to how this scheme works. property by property. Let’s take a quick look at
also helped to improve accessibility of web pages, Broadly, styles are applied in chronological order, an example:
reduce HTML code complexity and crucially the but also according to specificity. If a style
amount of repetition of markup that had to be property is declared more than once for a 001 h1 {
created to describe how a page should look. particular element, the last chronological
002 font-family: arial, helvetica,
As well as these benefits, the separation of declaration will be used, unless the earlier
form and function allows different designs to be declaration was more specific about the elements sans-serif;
displayed to users according to their device, it should apply to than the latter. This sounds 003 font-weight: bold;
simply by providing a different style sheet. This really confusing, but in practice it allows you to 004 font-size: 18pt;
means that, for example, a mobile phone can apply a set of broad styles that provide basic
load the same webpage as a desktop browser, properties for the font that text should be 005 color: red;
but present the content within the page in a rendered in, for example, and use more specific 006 margin: 10px;
different manner. Similarly, CSS can be used to selectors to subsequently set the size, colour or 007 }
present page content one way on screen and a font weight. To help make sense of it all, let’s take
second when printed, or to provide direction to a look at what CSS looks like in code.
screen reader software over areas for emphasis. In the code above we’ve defined the rule using
Additionally, CSS is user-configurable, so while CSS syntax the h1 { } selector. This specifies that the style
the designer might specify that text should be Just like HTML, CSS is designed to be human- properties within should apply to all <h1> tags
shown in 18pt red Arial, the visitor to their site can readable in its raw form. English keywords are found on the page. Within the curly brackets we
load their own style sheet to show the text in used with a simple syntax to describe a list of define a series of properties, such as font-family,
12pt blue Times instead, should they wish to. As rules, style properties and style values. Each rule font-size etc, and the values we’d like to set for
you can see, CSS offers a great deal of flexibility in a style sheet is defined by means of a selector, each. As a result, every heading 1 on our page
Browser support
One of the biggest headaches over the past decade, at least for web
designers, has been the differences in the way browsers render CSS.
The original idea was that CSS would be rendered in a standard way,
regardless of what software a user had. Browsers that didn’t support
CSS would simply ignore it, but those that understood style sheets
would display content in a predictable, consistent manner. The issues
started almost as soon as CSS was introduced, however, with different
browser vendors implementing their own understanding of the
standards, leading to wildly different representations of a design
according to which browser a visitor to a website used.
The most well-known example of this was the box-model problem
where two browser vendors disagreed over whether padding should
be applied to an element in addition to the specified width, or as part
of the specified width. One method meant that an element set to be
200 pixels wide with 50 pixels of padding either side would render as
300px in total – 200 pixels of space for content, and 50 pixels padding
each side, while the other left the element width at 200 pixels overall,
leaving just 100 pixels for content. This particular disagreement lead to
Internet Explorer having special style sheets developed to work
around the ‘wrong’ implementation for more than ten years!
Microsoft has now officially retired IE6, although IE7 and 8 both
continue to support the old system, but as CSS3 properties have been
introduced the W3C designers are forced to specify the same
properties multiple times, targeting vendor-specific features.
CSS3 brings animations to the mix by allowing designers to set up automatic changes in property values, altering over time
font-family The font-family property is the colour The colour property sets the
method through which all the different fonts foreground colour of any element which has a
background The background property allows used on a web page are designated. In the past foreground. Most commonly this is text,
designers to assign a colour and background web designers were forced to stick to a small set although certain other elements also support
image to an element. As well as the image itself, of ‘web safe’ fonts, but in recent years great colour. If colour doesn’t work, most probably
the position of the image in the element and advances have been made in providing web- you actually should be using background-
how the image repeats are configurable. enabled fonts on demand through a style sheet. colour or just background for short.
margin The margin property defines the padding Similar to margin, padding also position The position property is used to
amount of space the selected element should provides white space to an element, but instead define which positioning system should be
be away from other elements in the document. of pushing other elements away, the white space used on an element in the page. Confusingly,
It works by pushing the other elements away exists within the selected element. If an element however, should you want to use the float
from it, providing ‘white space’ around the has a border, increasing the amount of padding system you need to use the float property to
element, and can be defined against each of the will push that border away from the content define which direction the element should
top, bottom, left and right sides. within the element. float to.
W
hen you’re designing a webpage, you A ’wrapper’ is a commonly used name for a In CSS we can define how everything between
have to remember that a browser piece of CSS code that is used with a div tag to the div tags – the page’s content – is displayed. It
window can be almost any shape size and position the content of a webpage. A can be centred on the page, positioned a certain
and size. Desktop computers have a wide range div tag is placed at the start of the page content number of pixels from the left, a border can be
of screen sizes, and mobile phone and tablets are just after the opening body tag and again just added, its width can be fixed or variable and so on.
used to browse the web too. Your nicely designed before the closing body tag, thereby enclosing or It is an essential component of any webpage and it’s
page could be ruined if you simply allow it to flow wrapping the content. quite straightforward.
into the browser window, regardless of the latter’s
size or shape. By creating a wrapper you can specify
the width of the webpage content and its position “You can specify the width of the
in the browser window. It is an essential part of the
design process. webpage content and its position”
Borders or borderless?
This page has borders, but they
are optional and leaving out these
parameters will remove them. It’s your
choice. Padding, just above, is used for
extra spacing, but it isn’t needed
BROWSER COMPATIBILITY
There are several web browsers, but unfortunately
they all display webpages in slightly different ways.
Compatibility between browsers is helped by adding this
as the first line of the HTML file: <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">. Find a
copy-and-pastable version at http://bit.ly/IxdBQ.
E
very webpage contains text and it is head section means that the same text styles are when you are creating a site with 100 pages it is a
frequently the main content. You should applied everywhere in your site. HTML font tags considerable time-saver.
therefore ensure that it looks good by have been replaced by CSS font-family definitions, Writing the CSS rules for the text is simple and
choosing the fonts and styles to fit your design old-fashioned <i> and <b> tags are no longer you can create a class that defines a text style and
and the image you want to portray. There might needed, and font-style and font-weight enable you then use it over and over again in the page. We only
only be a small amount of text if the main content to set the styles to normal, italic, bold and so on. It look at headings and body text here, but expanding
focuses on images, but even so, there will be titles, might seem like extra work for one webpage, but the CSS yourself should not present any problems.
links and captions. There's no getting away from
text on webpages.
You can add CSS code to a webpage to define “You can create a class that defines a text
how the text is displayed, but placing it in a
separate .css file and linking to it in the page's style and then use it over and over again”
Style the text Style other headings
Here you can see the style settings for the
h3 tag and the heading in use on the page.
As you make style changes, you can The font-family, font-size, font-weight and
see the effects on the page margin-bottom have all been set
Heading style
This is an h1 heading, the largest
that is available, so we have made
it big and bold. Choose your font
and font size carefully to get the
desired impact
Italic text
The p tag has already been set, so to
display italic text on the page we just
need to create an italictext class and set
the font-style to italic. All other settings
are inherited
CHOOSING A FONT
When you are designing a webpage, you can choose
any font on your computer, but be aware that if the Keep it simple
visitors to your website do not have the font, another will Although there are lots of CSS parameters that
be substituted and it may ruin your design. Safe fonts you can set, you don't always need to set them all.
include Georgia, Arial, Helvetica, Times New Roman, Arial This is a minimal definition for the text that sets
Black, Comic Sans MS, Tahoma, Trebuchet MS, Verdana, only what is needed
and Lucida Console.
A
lthough some web pages may require a like a circle or square. It is even possible to replace used HTML lists you will have noticed that they are
lot of text, it is generally best to keep it it with an image that's specially created to fit in indented, but with CSS you have finer control over
brief and to the point. People scan a page with your site’s design and colour scheme using the positioning using padding and margins. You
for interesting content and then move on if they list-style-image. You can change the font used to can either tighten up the layout or space it out – it’s
don’t spot anything straight away. Lists are therefore display lists so they match the body text. If you have your choice.
very useful for drawing the visitor’s attention to
some content and for presenting it in a way that can
be digested quickly. “With CSS you have finer control
The HTML <ol> and <ul> tags are used to create
ordered (numbered) and unordered (bullet) lists. over the list’s positioning using
They are useful if unexciting, but with CSS list-style-
type you can change the bullet to different shapes padding and margins”
05 Choose a background
04 Style the text Many HTML elements can have a background 06 Inside vs outside
Notice in the last step that the list text has a colour and it is applied to both the content and In the last step did you notice that the bullet blobs
different font to the body text. That’s because no padding areas, but not the border or margin. A are outside of the background colour? This is their
style is set for lists. We defined the font and size background-colour of #9E2103 has been set, but default position, but it’s possible to change this
for the body text in a previous tutorial and we can if you are not familiar with this notation, you can and make them appear in the background area. In
simply add ul to the p code so it uses the same use common names like red, yellow, blue and so this step, list-style-position is set to inside and this
font and size as the body text. on. This is less flexible, though. makes the list look more attractive.
W
ebsite navigation is an important topic them into the website’s navigation. Instead of the You can copy the code into your own web
and it is something that you need list running down the page, the list elements can pages and it will work fine. All you need to do is to
to put some thought into as you are be displayed across it instead. We can style the links change the link text to correspond to the pages
designing your website. At one time we would just like any other text and create a custom look for or sections on your own site, and style the text to
have used button images created in a paint or the navigation bar. The result looks nothing like its fit in with the fonts and colours that you use. It is
photo program and then used JavaScript to create original plain HTML layout and it really shows off the really quite straightforward once you see how it
a rollover effect when the mouse hovered over one. power of CSS. works for yourself.
But that’s yesterday’s technology and modern sites
use CSS instead.
A CSS navigation bar looks like a regular
unordered list in the HTML of the page, but using
“The result looks nothing like its plain HTML
CSS we can manipulate the list elements and turn layout and it shows off the power of CSS”
Create an ID
The navigation menu only appears once on the page, so
we use an ID instead of a class. This #navbar turns a regular
list into a site navigation menu at the top of the page
Vertical to horizontal
Using float:left a vertical list of items is
displayed as a horizontal list. It is the key
component of this navigation menu and
it would not work without it. However,
display:inline is an alternative
Block links
The spacing between the items in the navigation bar
is created by setting a specific width for each item.
Links are turned into rectangular blocks and the
width determines their size
STRETCH IT TO FIT
In the finished screen shot the navigation bar
stretches across the full width of the page. There
are several ways to achieve this; in this case we
have simply chosen a width for the list items that
exactly, or near enough, fit across the page.
If you have more navigation items you will need
to reduce the width or make the page wider.
A
webpage would be pretty dull without position it left and right, set the size and so on, but and so on. The latest web browsers that are up to
any images on it. Some images may appear those are dated. If you use CSS to format images speed with CSS version 3 can display advanced
on every page, such as a graphical website instead, there are many more options available image attributes like drop shadows that give the
logo or heading, while others may be specific to to you. For example, you can add a border, set its page a 3D look.
each page. You will need to create the images for thickness and its colour. The spacing around each Forget the old HTML way of doing things and
your site before you start. Remember to use them side of the image can be individually adjusted, text take advantage of CSS and its powerful features. Our
sparingly and keep the file size as small as possible can be wrapped around it on the left or the right tutorial will guide you through the process.
to ensure that your webpages load quickly. If you’re
having trouble, we will go into further detail later in
the book.
Images are inserted into webpages using the
“If you use CSS to format images, there are
HTML <img> tag, and there are attributes to many more options available to you”
Add a shadow
If you want to lift the image off the
page, add a shadow below it using
this command. Try different values
to see the effect they have. It only
works in new web browsers though
U
sing HTML and CSS to create and style a swap any column we need just by using CSS. Then
two-column website layout – one of the we will discuss CSS floats, why we use percentages ANATOMY OF A CSS RULE
most common layouts – is surprisingly and a few other tips along the way. When we write CSS, we use ‘selectors’. A selector is
straightforward and very flexible. Almost all the HTML tag we want to style. Then within the curly
braces we have the property and its value. So ‘float:’
websites today use some kind of column layout
with at least a sidebar and main content areas. So “Almost all websites is the property and ‘left’ is its value. Both together
‘float: left;’ is what is called the declaration. When we
it’s one of the basic skills to have when designing
websites, and once you understand these use a column put everything together (selector and declaration) it’s
what we call a CSS ‘rule’. Another quick thing is the
fundamentals you can move on to bigger and more
elaborate designs. layout with at least fact that all tags (<p>, <div>, etc) are boxes that we
call elements and are either block level or inline level.
Every element follows the normal flow and stacks on
In this tutorial, we are going to open up our
favourite text editor (we will be using Adobe a sidebar and main top of each other vertically. When we use floats, we
need to think of each element as a box that needs to
Dreamweaver, but the humble NotePad or TextEdit
is fine) and learn how we can shorten, lengthen and content areas” be positioned outside the normal document flow.
The header
We’ll float the header left and give
it a 100% width to make sure it
spans the full width of our wrapper
Main content
The main content will be floated
left as we want this to be
positioned far left of our page.
Then some margins will give us
some white space
03 The wrapper
With the ‘index.html’ file still open, lets add in a ‘wrapper’ div that will be 04 Header
used to centre all our content on the screen later on using CSS. What we Okay, the first real page section (element) we will add is the header. We
have done here is use an ID (<div id=”) instead of using a class because this are going to give it an ID (‘<div id=’ called ‘header’) and place this just
is going to be a main part of our page’s structure and will only be used the underneath our wrapper div. Then we have added in a title of our section
once throughout our code. within an ‘<h1>’ header tag so we can know what’s what.
08 CSS reset
Now open up your ‘styles.css’ file and what we are going to do first is add
what is called a ‘reset’. The reset uses the universal selector and this just
tells all browsers (including IE) to clear all default styles, such as padding,
margins, line-height etc. Doing this will give you a clean slate to work from.
001 /* reset */
002
07 The footer
003 * {
Now the footer speaks for itself and will be our last HTML section we will be
adding. So again let’s give it an ID name of ‘footer’ and add it in underneath 004 padding: 0;
the closing ‘main_content’ div. Then again place in a header tag using a 005 margin: 0;
‘<h3>’. You will also notice we have added in an HTML comment to every 006
end div tag (</div>) to give us a clear indication of where each section ends.
This will help you if your HTML mark-up gets very busy. 007 }
10 The header
Now, for the header section we are going to float it left and give it a width
of 100%, which will guarantee our header spans the whole width of our
09 Wrapper styles ‘#wrapper’. Then we push the header down 10px using margin. Here we
Now the reason for our wrapper is to ‘wrap’ everything within a containing have used what is called shorthand CSS, which enables us to only pick the
section (element) so we can centre it within the viewpoint of our screen. top margin. Now give the background a colour and then 100px height.
So here we have used margin to zero out the top and bottom margins and
001 #header {
allow CSS to automatically calculate the left and right space based on our
width. Our width will be 960px because that aligns up nicely with a screen 002 float: left;
resolution of 1080 x 760px (lowest common denominator). 003 background: #f1f1f1;
001 #wrapper { 004 margin: 10px 0 0 0;
002 width: 960px; 005 width: 100%;
003 margin: 0 auto; 006 height: 100px;
004 } 007 }
Create a header
Learn how to create a clean, simple and effective header for your website
H
aving clean and clear header for your this tutorial we will take a look at how we can create
website can be the difference between a a simple, clean and useful header for your site to LOGO POSITIONING
successful and user-friendly experience make your website easier to navigate. One of the most important things to remember is to
and a cluttered and disorganised website that no make a feature of your branding, and crucially, your
logo. It is considered best practice to position your
one will want to visit again. You don’t want a first-
time user coming to your site and not know how “You don’t want a logo in the top left-hand corner and make it link to
your home page (index.html). If it’s something you
your navigation works, or your company branding
and logo hidden under a load of useless graphics or user coming to consider to be common practice, then not putting
it there would frustrate the user. So when you
text – it doesn’t even really matter how effective the
rest of your layout is. your site not design and develop your header, you first need to
realise what the user would want or would expect
to be there. It’s also a good way of adding in more
Yes, this sort of thing has been known to happen
(more often that web designers would like to knowing how your important information such as phone numbers or
email addresses. The choice is yours, but be mindful of
admit), that is why so many designers are turning to
a relatively new role called user experience or ‘UX’. In navigation works” not making the header look cluttered.
The logo
The logo can be either a graphic
or just text. You will also notice we
have used the same font for both
the logo and navigation
The background
Creating a textured background will
always help stand your web page
out from the crowd – gone are the
days of white backgrounds with
nothing but text and images
08 The CSS
Now open up your ‘styles.css’ file and at the top put in our simple reset. The
reset does exactly that – resets every element to zero, which will clear all
the default styles that most browsers put on. Then, using the body tag we
can give our page a textured background using an image and leaving it to
repeat across the page. And then we set the ‘font-family’ and ‘size’.
001 * {
002 padding: 0;
003 margin: 0;
004 }
005
006 body {
07 Main content 007 background: url(‘imgs/bg.jpg’);
We will now finish off our HTML markup with some content underneath our 008 font-family: Verdana, Geneva, sans-serif;
header. Just underneath our closing header div ‘</div>’, let’s add in a div ID 009 font-size: 12px;
of ‘main_content’ and add in a welcome title using header tags ‘<h2>’ and 010 }
then some dummy text using ‘<p>’ tags.
10 The header
Now for our header we are going to float it left and give it a 100% width so it
09 The wrapper spans the full width of our wrapper div, then give it a height of 250px. Let’s
Now we are going to centre our header and content using the ‘wrapper’
also add in a red border so we can see the header more clearly and get a
div. What we are doing here is making sure we have no margin at the top
better visual idea of where we need our logo and navigation, which we will
or bottom and automatically find the difference on the left and right that is
add in over the next few steps – then once happy we will remove it.
in relation to our fixed width – which we set to 960px. 960 pixels is mostly
used because it fits nicely within the lowest common denominator of screen 001 #header {
resolutions (1080 x 760). 002 float: left;
001 #wrapper { 003 width: 100%;
002 margin: 0 auto; 004 height: 250px;
003 width: 960px; 005 border: 1px solid #f00;
004 } 006 }
11 The logo
Adding the logo is going to be very simple. All we are going to do is locate 12 The navigation
our logo that we have inside our ‘imgs’ folder and then make sure it doesn’t Now let’s style our navigation. We do this by floating the whole element
repeat. Then position it on the left by floating it left and then specify its right then positioning it 150px down and then pulling it over to the
height and width. A thing to remember here is that if you don’t specify its right using a negative margin of ‘-50px’. Never be worried about using
dimensions you will not see it on the webpage. negative margins as they work very well. Then we give the navigation a
001 #logo { width of 600px.
002 background: url(‘imgs/sc_logo.png’) no-repeat; 001 .navigation {
003 float: left; 002 float: right;
004 width: 200px; 003 margin: 150px -50px 0 0;
005 height: 200px; 004 width: 600px;
006 } 005 }
18 Google font-family
17 Apply the Google font Now let’s Ctrl/Cmd+C to copy the ‘font-family’ property and then open
Now the next step here is to click the ‘use’ grey button located at the very up the ‘styles.css’ file and locate the ‘.navigation li a’ rule (a CSS rule is
bottom right and scroll down the page slightly. What we have first is the everything within the curly brackets) and paste the new ‘font-family’
‘link’ tag line that will link straight to the Google font servers and will always underneath the ‘font-size’ property.
be available. That way you can guarantee everyone will be able to see your 001 .navigation li a {
chosen font. So click and drag over the link and press Ctrl/Cmd+C to copy
002
it to your clipboard. Then paste it into your ‘index.html’ file just underneath
our other CSS link within the ‘<head>’ tag. 003 float: left;
001 <!-- CSS --> 004 color: #333;
002 <link rel=”stylesheet” href=”styles.css”> 005 padding: 6px 20px;
003 <link href=’http://fonts.googleapis.com/css?family=Lobster’ 006 text-decoration: none;
rel=’stylesheet’ 007 border-right: 1px solid #333;
004 type=’text/css’> 008 font-size: 16px;
005 009 font-family: ‘Lobster’, cursive;
006 </head> 010 }
Create a sidebar
Learn how to create a clean navigation system for your website
A
sidebar is without doubt the area that Flickr section – very useful for any photography-
is most often created by web designers based sites. So open up your favourite text editor STICK TO THE RIGHT
because it’s the most needed. It can hold and let’s get started. If you spend some time surfing the internet in
all sorts of content: things such as extra navigation some detail, the chances are that you won’t see too
many websites with the sidebar fixed over to the
links, a search field and perhaps some small
thumbnail images that relate to your website – it “A sidebar can hold left side – it is far more likely to be over to the right.
Even though it is relatively easy to swap it over, you
can be anything.
So in this tutorial we’re going to create a simple all sorts of content: wouldn’t be doing anyone any favours if you thought
you would be clever and original by plonking it
page layout that has a functional navigation and a
nice and simple sidebar that includes some content extra navigation links, on the left – internet users are now accustomed
to seeing this section on the right-hand side of
their screens. If you’re struggling to add content
within. We’re going to include within the sidebar a
list of links for that extra navigation we mentioned a search field, even in the sidebar, then you can add a short summary
about you or your business or perhaps even a small
and a search bar above and also some thumbnail
images at the bottom to act as though we have a some small images” YouTube video about your site.
The width
A perfect sidebar A thin-looking sidebar wouldn’t
help anyone unless you have no
Your sidebar needs to be clean and crisp to intention of anything but small
keep your visitors engaged thumbnail images
Navigation
Having a list of links for an extra
navigation will allow you to add
in links that you may not have
had the room to fit in the main
navigation menu
The thumbnails
We added this feature because you
see it all the time. People who have
a blog can use a plug-in that allows
them to feature their Flickr photos
A
dding content to your website is either one) and also some text and an image. So open up
done dynamically using a content the index.html and styles.css files within your text THE RIGHT STUFF
management system (CMS) or by hand. editor and follow these simple steps. Adding the right amount of content to any website
Either way, you are going to have to learn how it’s is vital and can mean the difference of having a
styled and what options you have. For instance, will
you have just text or text with images? How about
“Your content successful, clean website to a cluttered and confusing
one. The layout needn’t be the main concern here
as you can have multiple columns throughout. But
a video that’s either embedded using YouTube’s, or
your own flash or HTML5 player? choices should be it’s the white space and the way that your sections
are aligned that will give your web page a better and
Of course your choices should be dependent
on what niche your website caters for and thus dependent on the more readable layout. We also used horizontal rules
to add separators to section out our content even
further. But there is no real need to use a horizontal
knowing who will be visiting your website. So in
this tutorial, we will add a few elements of content niche audience your rule; we can just as easily use an image here or in
some cases a bottom border. Just remember that if
where one will include a video (which you can grab
whatever video you want, you don’t have to use our website caters for” there’s no content, you won’t get many visitors.
04 Adding an image
Now we can add in an image within our welcome text. The idea here is to
have a small thumbnail image of something that relates to the website.
So place your image tag ‘<img src=’ above the welcome text just sitting
03 Welcome text underneath the header. Then we will use CSS later to float it to the right.
Now we need to add some ‘welcome’ text. This is normally a good way of
letting the user know what your website is all about from the off. Here we 001 <img src=”imgs/thumbnail.jpg” height=”100” width=”100”
will just wrap about three or four sentences within some ‘<p>’ tags. class=”main_thumb”>
I
n the past, the humble footer was not much
more than a slim strip of colour with nothing
readers don’t have to scroll back to the top or to the
sidebar if they want visit another page. “The footer has
more interesting than the copyright text
written within. But in many modern websites, we
have seen a huge improvement in footer designs
As crazy as it sounds (and this would have
sounded incredibly crazy no more than a few
years ago), the footer has really taken the modern
taken the web by
and the content held within them.
These days, they are a lot higher and contain all
web by storm and has now developed into an area
that needs good planning – like all parts of your
storm and has now
sorts of content, which can include contact forms,
newsletter sign-up fields, social media integration
website, it is important to offer the right amount
of content without confusing the user. So in this
developed into an
and much more. Ours for instance, in addition to a
newsletter sign-up field and generic About Us text,
tutorial we will build a simple footer and include
some useful content that you would most likely see
area that needs
features another set of links for navigation, so our in a modern layout. good planning”
SHORTHAND CSS
Over the course of this tutorial we
have used a lot of shorthand CSS.
The reason being is it’s quicker to
write and decreases your
style sheet's file size – even if it’s
only very small. The shorthand is
used for margin and padding, and
there is a lot more you can do with
it that we haven’t covered. So let’s
take a margin declaration for an
example. It works in a clockwise
direction, so ‘margin: 10px 20px
30px 40px’ would mean 10 pixels
top, 20 pixels right, 30 pixels
bottom and 40 pixels left. So top,
right, bottom, left. Then we can get
even more technical by only using
two values such as: ‘margin: 20px
30px’. Now this means 20 pixels top
and bottom, then 30 pixels right
and left. And lastly if we just use
one value such as: ‘margin: 20px’
would simply mean 20 pixels all
around to whatever element (div)
was specified.
“Getting a WordPress
blog up and running is SET UP
YOUR SITE
much simple than first- Get your WordPress blog up
and running
time users might think”
94
Edit
post
76
The new
4.0
Web Design for Beginners 75
WordPress
W
ordPress 4.0 includes a to save time with previews, while
selection of new browsing for new plugins has
features and security become a far better experience,
fixes to help bring your blog or allowing you to see small previews
website right up to date. Not only of the plugins.
have improvements been made to In the background, various
the theme customiser view and security fixes have been made,
media library interface to enhanced ensuring that your blog, your posts
media handling in the visual and any user data is protected
posting view and a brand new against online intruders.
interface for installing plugins, you’ll Remember to make sure your
also find changes to the TinyMCE UI blog is up to date, and this means
when creating a new post. It is now reviewing plugins regularly as well
even possible to select a language as making a backup before you
when you install WordPress 4.0 for upgrade. If you’ve been holding off
the first time. Enhancements to on some recent updates, you
managing images and videos helps shouldn’t miss WordPress 4.0!
Change view
Use the Plugins view menu
to switch between the
Featured, Popular and
Favourite plugins
Upload a plugin
If you’ve developed your
own plugin or have one
to upload, use the Upload
Plugin button to start
Search
To find plugins that aren’t
listed here, use the Search
box to search the WordPress
plugins repository to find it
Plugin details
Full details about the
plugin you’re considering
can be viewed by clicking
More Details
Add new
The new Add Plugins
screen summarises the
information you need about
each plugin
Tick it to activate it
To enable a control, place a tick in the
corresponding box. Removing the tick
will hide the control
TinyMCE editor
Maximise the space to compose your
posts by using this option to expand
the TinyMCE editor’s dimensions
Number of columns
Too many columns? Use the Number of
Columns option to restyle the layout
Click it to close it
Click the Screen Options button to close
the window, and carrying on blogging
Toggling tools
Even controls with their own tool for
closing can be toggled off and on
Tailor menus
These controls are tailored to your
WordPress Dashboard screen
Different screens
Different WordPress admin screens
feature a different set of options
W
ordPress has become synonymous earlier. In this tutorial we are focusing on the self- WordPress can be installed in five minutes, when
with the term blog, and with good hosting option, which relates to users who already you know what you are doing. However, for those
reason. The web publishing platform own a domain name and web space. not so well acquainted with the WordPress platform,
is free to download, easy to install and simple to The WordPress site extols the virtues of its the process is a little more in-depth. Here we look
use. Add into this already appealing mix the fact famous 'five-minute installation’ and undoubtedly at the basics, namely where to download the latest
that there are continual updates and development, version of WordPress and how to install.
“It’s free to download,
swathes of themes and literally thousands and
thousands of add-ons and it’s hard to see what’s
We also take a more in-depth look at setting
up a MySQL database and how to transfer files,
not to like.
easy to install and
WordPress itself comes in two distinct flavours:
ready for installation, via an FTP client. Finally, we
run through the installation process and take a
simple to use”
either hosted via www.wordpress.com or self-
hosted via www.wordpress.org, as we explained
peek at how to modify some of WordPress’s
essential settings.
Top toolbar
This toolbar is full of handy links,
including access to your WordPress
account, where you can change
your name, email address and lots
more besides
Domain name
and web space
To get a WordPress blog
online, a user needs their own
web space and a domain name
The first requirement of any WordPress installation
is web space. There are thousands of web hosting
companies that'll supply space for a small fee.
However, to determine which web hosting package
to choose, the user needs to decide how much web
10 It’s the dashboard 11 New password
space is required and the expected traffic. Typically, Now add a Blog Title, your email address, click the WordPress automatically displays a notice telling
users can get 200MB of web space and gigabytes of Allow… checkbox and press Install WordPress. the user that they are using the auto-generated
traffic for a very small fee. But if more space is likely Press Log In to skip to the log-in screen, enter password. Now add a new password under
to be needed, eg for a photo blog, go for more.
the details just given and hit Log In to view the About Yourself (under Users in the sidebar), enter
A small UK company that provides cheap and
WordPress Dashboard. again and then press Update Profile.
efficient hosting is Z-Host (www.z-host.co.uk). It
provides packages from as little as £15 a year (100MB
of web space and 10GB of monthly traffic), which is
perfect for first time bloggers. Alternatively, choose
1GB of web space and 40GB of monthly traffic for
£60 a year. At the other end of the scale, a popular
choice is web designer Media Temple (www.
mediatemple.net). This offers packages from $20 a
month (approx £15) but offers gigabytes of storage
and 1TB network transfer rates. Other reputable web
hosts to consider are Fasthosts (www.fasthosts.
co.uk), 1&1 (www.1and1.co.uk) and Heart Internet
(www.heartinternet.co.uk).
To host a WordPress blog at a desired URL, for
example mywebsite.co.uk, a domain name needs to
be purchased. Try www.123-reg.co.uk, which offers
.co.uk domain names from £2.99 and .com domain
names from £9.99 a year. Another well-respected 12 General Settings 13 Writing and reading
domain name supplier is Easily (www.easily.co.uk).
Click Settings to extend the menu and select The Writing settings includes the option to choose
If the prospect of finding web space and getting
a domain name seems like a lot of hard work, you General. This section allows users to change the the default category. This will be applied when a
could always go for the hosted option. Go to www. Blog title and tagline, as seen in the header. There post is not given a category. There’s also an option
wordpress.com, click Sign Up Now and all that’s is the option to change the original email address to set up remote publishing. This allows users to
needed is an email address. This gives a new user added at setup. post from a desktop without logging in.
a unique WordPress URL, for example myname.
wordpress.com, and hosts the account.
14 Media Settings
The media settings determine the size of images option set up here. Change the settings to the
Try the free ‘no hassle’ option at www.wordpress.com placed in a post. WordPress allows users to select desired size. This makes sure that when a specific
the original size of the image or a predefined option is selected the image will be a uniform size.
O
ne of WordPress’s many strengths is its of your site, such as comments and links. As with wish and position the most important elements
simplicity, and the Dashboard is an area most elements of WordPress, the Dashboard is within easy reach.
where this simplicity truly shines. Offering customisable so you can set it up exactly as you Over the following nine steps we will show
everything you need right from the get-go, you can you how to determine which modules are
quickly get on with the actual work of editing and
posting to your site without distraction. As well as a
“You can set your shown on your Dashboard, where they are placed
and how they are displayed. You will also learn how
side panel that offers navigation, the Dashboard is
made up of modules. These are small widgets that
dashboard up to save space on your Dashboard by expanding
and collapsing your modules, as well as the side
provide you with information from various portions exactly as you wish” panel itself.
G
etting a WordPress blog up and
running is much simpler than you
might think. Once you've completed
the initial installation process, getting a post
online takes a matter of minutes.
The foundation of any blog is its posts,
and getting these right is paramount to a
successful, informative and compelling blog.
So ensure you have carefully considered
every detail before you get going. It is worth
noting that the styling of a blog post is
predetermined to a certain extent by the
current theme. Nevertheless, the Posts
window provides enough ammunition to
ensure your posts are well presented and
neatly styled.
First things first: the title is perhaps the
most important element of any blog post, so
make sure it's relevant and appealing. Next is
the text; again make this engaging and style
it so it’s readable. Beyond the text, images
and video are worth considering to add
colour and interest. Finally, before publishing,
it’s time to add in tags and create categories
to make your posts more
search-friendly.
Learning how
to manage
your blog
Here we include a few more
tips and techniques you will
need to know
Getting posts on to a blog is the main priority for
many bloggers and the WordPress (2.7 onwards)
Dashboard provides a quick and easy answer.
QuickPress allows users to create and publish a
post directly from the Dashboard. This is a slimmed
down version of the standard Add New Post page
10 Preview post 11 Save Draft
and provides all the essentials without the need to The post is now beginning to take shape. Click If the post is in good shape, save a draft by
go beyond the opening page. Users can add a title, Preview in the Publish module, this will open pressing Save Draft. This will save the post and
text, insert images, video, audio etc and add tags. another window to display the selected post. reload the page, allowing the user to continue
Editing and updating posts is a simple but Keep the window open and refresh when more adding to the post. The draft of the post can be
essential task and a visit to Edit>Posts will reveal all has been added to the post. found via Posts>All Posts.
the posts in a blog. Each post is assigned a number
of quick access options that only appear when the
cursor is placed over the post title. The options
on offer are Edit, Quick Edit, Delete and View. Edit
takes a user to the standard post, allowing users to
edit as normal. Remember, when you’ve finished
editing a post, hit Update Post to save any changes.
The Quick Edit option works within the Edit Posts
window and allows users to neatly and quickly
change categories, tags, title, etc. The Delete and
View options do exactly what they suggest.
Beyond editing a post there are a few additions
that we have yet to mention. Links are a key
component of a website, and WordPress is no
different. The standard toolbar includes two link
options, Insert/edit link and Unlink. To add a link
select the desired text and press the Insert link
button (top row). In Link URL add the URL to link to 12 Upload an image 13 Insert options
(needs http:). By default, WordPress includes http://,
Post text is often accompanied by an image. To There are a whole host of image options. The
so if copying in a URL remember to check that
the http:// has not doubled up. Target allows the insert an image, place the cursor in the position name of the image is used as the title, this is the
user to choose if the link URL opens in the same where the image is set to appear. Click the Add text that will be seen in the browser when the
window or new window. There is the option to add Media icon, then Select Files, browse to the cursor is placed on the image. Caption text will
a title, and to add a class. This effectively styles the location of the image, select it and press Open. appear directly underneath the text.
link using a predetermined style.
17 Browser upload
WordPress allows users to add an image directly
from a web location. The first step is to get the
URL of the desired image. Once the URL has been
located, copy and paste into the 'Insert from URL'
field. The images will appear underneath.
W
ordPress is designed in such a
way that creating a new post for
your blog is as simple as typing
it in. You won’t, however, always get your
blog appearance or text just how you want
it on your first try. What's more, if you’ve got
a news-based site or content that's time-
sensitive, you might need to update a post
with new information as it becomes available.
You may even find you simply need to go
back and correct a typo.
Thankfully, this is not a challenging task.
A WordPress blog is a dynamic site where
nothing is ever fixed and final, and every word
and image can be tweaked and adjusted until
you are 100 per cent happy.
In this tutorial we will guide you through
the various ways in which you can edit your
posts, from that simple typo correction to
more advanced functions, such as batch
editing your posts to help keep your site
organised and easily searchable for your
visitors. We also detail how you can sort your
categories, so those readers who are only
interested in one topic can
easily get to what they want
to read.
Updating
RSS feeds
Keep people coming back to
your site and updated thanks
to RSS feeds
When you edit a post and click the Update button,
the changes will be instantly applied to your site, but
your avid readers will not be immediately aware of
the fact that you have changed the story. It won’t be
placed at the top of your front page, neither will your
RSS feed be updated with a new entry. Of course, if 10 Changing status 11 Make it stick
you are only correcting a typo or tweaking an image, After making any of these changes, you need to Quick Edit is extremely useful for making minor
this is exactly how you would want it to be, but if you make sure you click the Update button in order changes to single posts, but sometimes you will
have made a significant change to one of your posts
to apply them to the post. If you open another want to make similar changes to multiple posts,
then you need to be able to alert readers to your
changes so they can find out all the latest news on post before doing so then your post will not be for example, when you are cleaning up your
stories available on your blog. updated. If you want to undo any changes, click tags, to ensure consistency. Click the Posts option
The way to go about this is by adjusting the date the Cancel button. to view all the posts on your blog.
the blog entry was posted. If you change the date
to something later than your last entry then it will
automatically move the post back up to the top of
the front page (where it will stay until you get round
to posting again). In order to update your RSS feed,
you should change the date to something in the
future. Schedule a new posting date of, say, one
minute from now, then in a minute’s time the story
will be posted again (but not duplicated) and the
RSS feed will also be updated. Users who subscribe
to your feed will see the story back in their news
reading software, and the post will be marked as
‘Updated’ in order that they know they have already
seen the post before and should be on the lookout
for changes.
A final piece of good practice is to clearly mark
the edits you make to a post so that your readers
can find them easily. This especially applies if 12 Update your post 13 Bulk editing
you have more information to add to a news
story, or are making a change based on readers’
To insert an image into a post first, place the There are options associated with an image
comments. Rather than writing in the lines, add a cursor in the position. Click the Add Media icon, before it is inserted into a post. The name of the
new paragraph at the bottom of the post, marked the first in the line next to Upload/Insert. Click image is used as the title; the text seen in the
Update. If necessary, you could also add the word Select Files, browse to the location of the image, browser when the cursor is placed on the image.
(updated) to the post title as well. Your readers will select, press Open and it is uploaded. Caption text will appear under the text.
be grateful for this as it’ll save them searching for the
new content.
17 Adding tags
The most likely use for editing several posts at
one time will be to assign new tags to them.
Enter your choice of new tags in the box,
separating each one with a comma and space.
You cannot remove existing tags in this way.
I
t almost goes without saying that good only pages will drive people away, and that’s the last In this tutorial we will take a look at each of these
images are a crucial part of any blog – yours or thing that you want to happen. techniques, giving you and insight into how to get
anyone else’s. Even if your site is not particularly Adding images to posts is actually quite a simple the most from your blog. Once you have got going
visually oriented, you’re not running a photography process in WordPress, but the site does give you a with adding visual enhancements in this way, it will
business for example, a well-chosen image number of different ways of not only adding but be one of the most common tasks you will – or at
displayed on the front page of the blog is second also managing the images you’ve used. least, you should be – performing on your blog.
only to post titles in encouraging visitors to click
through to read your content.
Images can also be used to help pace the reader “Images can also be used to help pace
by breaking up longer posts, transforming large
swathes of text into more digestible chunks. If you longer posts by breaking up large swathes
want to drive traffic onto your blog and keep it
there, then you need to make it look good – text- of text into more digestible chunks”
Effective images
How well-placed pictures can improve your blog dramatically
Header
A vital part in any website design,
the header is often the first
thing viewers will see. If they see
something as eye-catching as this,
they’re sure to stay
Breaking it up
Dividing your text up with a few
cleverly placed pictures will increase
your site’s readability no end. Most
web users don’t want to read
endless blocks of text
How to resize
your images to
fit your post
Taking the time to prepare
your images can make your
blog look more professional
When working with images on your blog, it is vital
that you consider the importance of resizing those 10 Images from URLs 11 The gallery
images as a way of enhancing both the look and The other options for inserting images include The third image option is Gallery. What this does
usability of your site. Dragging the image handles, ‘from URL’. This requires you to enter the URL of is show all of the images associated with the post
as we showed in Step nine, will change the physical an image hosted on another site. You should use you are editing. If you uploaded multiple images
dimensions of an image as it is displayed on a
webpage, but will have no effect at all on its file size. externally hosted images very sparingly, since in Step three, they’ll all be listed here, ready for
If your site is image-heavy, and if you are working displaying the image on your site will use the you to edit and insert them into the post. It’s not
with photos especially, your original image files other site’s bandwidth. possible to batch edit all of your images.
might run into several megabytes apiece. Put a
handful into a single post and the size of the page –
and the associated bandwidth requirements – will
mount up. You might find that even with a fast
connection your site’s visitors won’t appreciate
having to load 10MB pages as a matter of course.
When resizing your images you also need to be
aware of the width of the main column in your blog
template in order that it fits in properly.
As a general rule, unless you need to provide
your site’s visitors with higher-res versions of your
images, you can resize them so that they are no
wider than that column. If you do need to provide
higher-res images then resize to around 1200-1800
pixels then use the File URL option as in Step five
and manually resize the inserted image so that it
fits into the column properly. When you do this the
image will be displayed neatly embedded in your
12 Create an image gallery 13 The Media Library
text, but clicking on the image will open it in a new If you want to insert a thumbnail image gallery The final option is the Media Library, where you
window, displaying the full high-res version. into your post, view the bottom half of the gallery can access every image you have uploaded to
Remember that high-res images can easily be screen. The Gallery Settings enable you to post your site. This is where you come when you need
acquired and used on other sites, so if you have any an entire group of images in one go. To manually to reuse images already posted. So long as you’ve
that are especially unique to you, it is a good idea to order them you need to enter a number in the given them sensible names they will be easily
watermark them, something you can do simply by
Order column, then just click Insert Gallery. searchable. Click Show to see the usual options.
adding your site’s logo in the corner of the image
in Photoshop. To the same end, if you use images
found on other sites always be sure to credit them
and to link to the page where you found it.
02 Once uploaded
Once you have finished uploading, a preview of
the image should appear in the pop-up dialog
box and you are free to insert the image into the
post as with any other image. WordPress should
take care of the rest, including resizing, cropping
and ensuring that the image is in the right places.
03 WordPress
year theme
changes
01 Use the Set Featured Up until the Twenty Ten
WordPress theme, once
Image link the post’s featured image
Once logged into your dashboard, you should had been uploaded and
see a Featured Image box on the right-hand saved, it could be found
side of the post page. Initially it will only on the post page. But from
include a link to “Set Featured Image”. Clicking the Twenty Eleven theme
the link will open up the usual WordPress up to Twenty Fifteen, it
image uploader where you will upload the is actually added to the
image as usual. header of that post.
C
reating posts in WordPress entails writing content will then play from within your WordPress requires just a web link. Once added to a post (as
content that is interesting and engaging. blog. You can embed content from services such as text, not as a hyperlink) the WordPress editor will
This may be a daunting prospect but you’re Vine, Tumblr and SoundCloud to name but a few. recognise it. From here it will embed the content
not just limited to text. WordPress includes the In earlier versions of WordPress embedding into your post. Often the embedded item will carry
facility to embed media within posts. This means content was a more technical task. It used to involve the look and feel of the source website and in some
you can place images, music, videos and more in a a little HTML coding to get working. The good news cases it will even include various interactive controls.
post to help bring your blog to life. is that for the most popular online services this is Embedded media can add a professional touch
Don’t worry if you don’t have any content of your no longer the case. WordPress has a white list of to a blog post with minimal effort. Just ensure it’s
own to begin with. You can embed content from services that it supports for automatic embedding. used in the right way. Overloading a post with
other online sources. Think of it as creating a web You can find it at https://codex.wordpress.org/ embedded media can be messy. It can also slow
link to something on another website. This linked Embeds. Embedding content from these services download times which could put off your audience.
Positioning a link
Preview your content When adding an embed link
You can get an idea of how your bear in mind where you would
added content will look by clicking like it to appear in your post. It
the ‘Preview’ button. This will will appear wherever you place it
open a new tab without losing within your normal text
your current post edit
Adjust colours
Code and preview SoundCloud provides some
As options are selected the simple colour options with
code box updates to reflect any regards to the playback button.
changes. Tick the ‘WordPress You can also click on the colour
Code’ option to convert it to grid to apply various shades
optimised code
Player preview
Much like the code preview
box the player preview section
updates as each option is
selected. This gives an idea of
how your embedded content
Toggling options will appear in your blog
By default the extra choices
regarding colours and
playback are not visible. You
can access them by clicking
‘More Options’
Automatic playback
This option determines whether
your embedded media player will
automatically play the chosen
song once it has finished loading
I
t is easy to type in a block of text, but it won’t look very
exciting to your visitors and it will be hard to read. We have
looked at breaking text up into paragraphs, alignment and
so on, so now let’s move on to more exciting things like bullet
points and numbered lists. A series of bullet points is a great
way to emphasise features, functions, items and important
things. Make them short and snappy and readers can quickly
scan them to get the information they need. Numbered lists
are useful too and you don’t even need to type in the numbers
because WordPress does it for you. All you need to do is type
the first one and click the toolbar button. You can then add as
many as you need.
There are other functions that are useful too, such as the
ability to insert special characters like copyright symbols into
your text, real fractions instead of using numbers and slashes,
Greek letters, the Euro currency symbol and a whole range of
others. Inserting these is simply a point-and-click process once
you get the hang of it. All these effects will brighten up dull
looking text and make your blog more interesting.
Custom characters
This icon displays a palette of
characters that are either hard to find
on the keyboard or are simply not
available. Just point and click on the
one you want to insert in the text
KEYBOARD
SHORTCUTS
If you let the mouse hover over the
icons in the formatting toolbar you
will see a tooltip. This is a brief
message that pops up beside the
mouse and it contains a useful tip or
information. Some formatting effects
have keyboard shortcuts and you can
create bullet points, for example, by
pressing Opt/Alt+Shift+U.
110
The science
of SEO
122
Google
Analytics
GOOGLE
SITEMAPS
A simple yet essential way to
get more visitors
THE SCIENCE OF
EXPERT INSIGHT
“Google has
laid down the
gauntlet to web
marketers through UNDERSTANDING
the introduction HUMMINGBIRD
of its recent
updates, stating an unequivocal The introduction of Hummingbird in 2013
commitment to its ultimate goal constituted the biggest overhaul of the Google
platform in over ten years. Hummingbird is
– ‘making the web a better place’. designed to enable Google to more effectively
Websites that conform to this goal deal with longer, conversational based searches,
while complying with Google’s such as those performed through a mobile
handset. It does this by attempting to interpret
best practices should expect to the meaning of a whole phrase or sentence
reap the benefits over the years rather than individual keywords. In a marketplace
to come” where one third of the UK population now own a
tablet and seven tenths own a smartphone,
designers should be ensuring that the websites
Will Nye they produce are responsive – Google’s preferred
SEO strategist, Found type of mobile implementation.
E
ven with the rise in awareness about SEO Great images can hold a visitor’s attention for a
over the last few years, it is still true that memorable experience but they may not convey
lots of great-looking websites being to the search engines what the site is all about,
created have poor SEO. However, if it is and therefore need to be backed up by decent
considered early enough in the design process, content. Try to ensure that all images that feature
this needn’t be the case at all. across key landing pages are optimised with the
Rather than hindering SEO, good design can relevant Alt text where possible, and consider
actually improve the chance of ranking well. If we how much text content you have on each page.
consider some of the metrics that matter the This doesn’t all have to be in paragraph form as
most, it’s the designer who is in control. After all, a headers, captions, lists and slider text all counts.
great-looking site is more likely to get increased Aim for a minimum of about 200 words.
page views, have a lower bounce rate and, most For image-heavy pages where space for text is
importantly, earn more links to its pages. limited, consider using Javascript to reveal extra
The earlier in the design process that you can text on click. It is quite a common technique for
start thinking about SEO the better, as the early large amounts of text to be hidden behind ‘lead
structural decisions can make a big difference in’ text, but always ensure the fallback is to display
and will be difficult to change later on. For all of the text if Javascript is disabled.
example, keeping your site architecture flat and, if To minimise the loading times of your pages,
possible, ensuring that no page is more than you should be designing with CSS and HTML in
three clicks away from the home page is still very mind. In order to do that, you must first know the
relevant when it comes to rankings. But more potential of what something as sweet as CSS3
importantly, it’s also very critical to user can bring to your designs. Box shadow, text
experience – a fundamental of good site design. shadow, border radius, gradients, animated
Successful web design strikes a balance between transition, animated transformation, the list goes
a visually pleasing website and one that gives the on. It is no longer necessary to rely on images
search engines what they need to rank well. After that increase the page load time for the sake of
all, why build a website if no one can find it? beauty – let the CSS and browser do the work.
The role of
web fonts
In the past it was common to see images
taking the place of the header tags
because a brand’s font was required,
forcing the web designer into making
SEO-unfriendly decisions. Designers are
now expected to create banner-like
elements of the page using HTML and
CSS with dynamic text that can be
crawled. These days sacrificing the H1,
H2, H3, H4… tags for images is the SEO
equivalent of committing design suicide.
Web fonts such as Google Fonts, Font
Deck and Typekit, among others, offer a
variety of options so there’s no excuse
not to have crawlable yet good-looking
copy. Images shouldn’t replace HTML
Buzzfeed has a completely unorthodox and unique
and CSS unless it’s a photo or logo. approach to its content topics, which is at the centre point of
their search strategy
Are you sure your content quality of search results. Depending on the level
of offense committed, a site can potentially be
Tips for producing content that people can’t easily navigate to. Allow people to Google updates online. By analysing your Google
easily navigate to your key content pages and Analytics you can mirror traffic drops to Google
Google loves: present the content in a way that will provide updates to see if they’re due to Penguin or Panda.
Write for people, not for search real value to the user.
engines: This has been
said many times by many See how Use keywords appropriately: Use
people, and that’s because
it is true. How can you Google views the phrases and keywords that your
audience uses. Don’t be tempted
engage an audience
with something that
your site to overuse certain keywords, but at
mentions your keyword
Use a text browser such as Lynx to the same time, don’t be too scared
see your site as a search engine to mention them at all. You will
every third word? Write spider would do. If features such as
what people would want Javascript, frames or Flash stop you find it very hard to rank for a term
from viewing your site in a text or phrase if you don’t even mention
to read rather than what browser, then the spiders
you think Google wants. may have trouble
these terms on your site.
crawling it.
02 Failed canonical
domain check 07 Keyword stuffing
When a domain fails a canonical check, this implies Ensuring that a fine balance of target keywords is
that the home page is accessible through more than incorporated into the body of a page is a challenging
one URL. For example, webdesignermag.co.uk/ feat for any copywriter. Too much and the page
index.php, webdesignermag.co.uk/home.php and appearing spammy is a risk, but too little and the
webdesignermag.co.uk all load the home page. search engine may have trouble understanding what
Having multiple URLs load identical content is a problem because inbound link equity to rank for. The solution is to use a good range of
can become divided and it diminishes the overall SEO site value. Some solutions to targeted synonyms presented in a well-written structure that will engage the reader.
this would be to either implement the correct canonical tags or have 301 redirects
pointing the duplicate pages to only one location.
08 Duplicate content
03 Slow loading times Having duplicate pages within a website is a
common mistake that usually occurs on larger sites or
Although broadband speeds in the UK are improving,
eCommerce sites with lots of product listings, resulting
Google announced in 2010 that loading times are
in detrimental consequences if not handled properly.
included in their algorithm, with slow loading times
Common instances of duplication can occur where
for desktops and mobiles still being a problem. Using
filters are applied to product listings or where several minor variations of a product
Google’s PageSpeed Insights tool, any page can
exist. A solution to this is to use a canonical tag to point the duplicated pages to the
be analysed – identifying reasons behind and solutions for slow speeds. Common
corresponding main pages – essentially having one page gaining all the SEO value.
solutions include eliminating render-blocking JavaScript and CSS above-the-fold,
leveraging browser caching, optimising images, enabling compression and minifying
JavaScript, CSS and HTML (which means removing any unnecessary spaces).
09 Links from
non-credible sources
04 No header tags Inbound links are considered the most important off-
Header tags such as <h1>, <h2> and <h3> give content site factor in determining natural ranking success, with
its structure and help the search engines understand the quality of the link source being at the forefront. The
which parts are important. Search engines use header most influential links come from authoritative websites
tags to prioritise a page’s content, so incorrect use can within the same industry, with the linking page containing content relevant to the
result in confusion. The solution is to ensure that the target page. Although acquiring links from quality sites is challenging, one link from
main <h1> tag is unique and accurately incorporates the topic of the page, including an authoritative site can have a more positive effect on rankings than a few hundred
relevant keywords. Likewise, any following subheadings should use <h2> and <h3> links from non-credible sources.
tags where applicable.
10 Generic internal
05 Missing Alt attribute anchor text links
Search engines cannot understand images, so it Anchor text is the clickable text of any link on a page.
is imperative to attach descriptive and relevant When a website is crawled, the search engine uses this
text in the form of an Alt attribute. This allows the when ascertaining the content and relevance of any
search engine to fully understand the image and associated page. Using generic anchor text such as ‘click
is an opportunity to add relevancy and keyword here’ when linking to internal pages is a missed SEO opportunity.
rich descriptions to the page. One common mistake is to be too vague with the The anchor text should include relevant keywords that the page wants
descriptions – for example, blue trainers can be further enhanced into blue and white, to rank for but over-optimising can also have a negative effect, so keep the
limited-edition Nike running trainers. balance right.
Sessions
Google has recently renamed
Visits to Sessions. Use this to
understand how many users
are coming to your site
Bounce Rate
Do they get
past the landing
page? Bounce
Rate is the
percentage of
users who only
view a single
page of your site
before leaving
Pages / Session
How interesting is your
site? Pages per session is an
average of how many pages
your users are visiting
Track
conversions
Unlock the full potential of GA by going
beyond tracking web stats. GA allows you
Conversions to set up goals and events to measure how
Conversions are goals measured which are set by the Average session duration well you meet your objectives.
How long do they stay? Average session duration gives Set up goals to track discrete actions
webmaster. An example may be landing on a Contact such as form fills and transactions or
page or making a purchase you the average time a user spends on your site set up events to measure interactions
that are independent of a page
load – such as video plays or
S
EO (search engine optimisation) is not trying to attract the same visitors. There is no The consideration of how internet search engines
a feature that you may be aware of guaranteed way to ensure lots of traffic, but to work and what people are looking for will ensure
when first setting up a new website, but not make use of SEO techniques is probably to that you are targeting your content to the right
understanding how it works can make the ensure that your new site takes a long time to get people at the right time and give you a better
biggest difference of all to ensuring that you off the ground, with the possibility that it will never chance of making your site a success within a
drive as much traffic to your site as possible. gain more than a handful of visitors. relatively short time period.
The quality of your website’s content must
always be paramount, of course; but no matter
how good the quality, you still need to make “Ensure that you are targeting your content
sure that your website stands out and competes
against the millions of other sites that are also to the right people at the right time”
Judging SEO success It’s not easy to judge how effective your SEO strategy is
We said in the final step of this tutorial that SEO should not be obsessed about, and the loyalists who enjoy your content, while the one-time or referrals have most likely
that the content is the most important factor, but you still need to understand how come from searching for specific information. To add complexity, even your loyal
your statistics show your success. We can break down your visitors into two broad readers will have likely come via search in the first place so they could still represent
categories: those who repeatedly visit your site and those who have recently visited. a good example of SEO working effectively for you. The best advice is to keep an eye
In general terms, you can analyse how many are from each group by checking your on your stats and to check for shifts in the numbers. Ideally, you want a loyal base
stats and seeing who has come direct to the site, who has been referred by another of readers who may spread the word, but with a healthy number of new readers
site and which readers have come via search engines. The direct visitors are likely continually dripping through.
N
o matter how much effort you put in to a all aspects of your site, from social networking need, but there are premium options available
website or how great your content is, you impact to the number of people visiting on mobile should you need specific features to take your
need to understand what your audience is devices, and more general statistics including visitor analysing further. In this tutorial we will teach you
looking at and what they are interested in to keep numbers and when they visit. how to set up Google Analytics for your site and
growing your site. The basic Google Analytics service is free and how to make the most of the service to understand
You can use web services that claim to includes all of the features most webmasters will and increase your traffic.
understand your traffic, but by far the most
recognised service is Google Analytics. It can show
you, in great detail, which parts of your site are “The basic service is free and includes all
successful and which parts require extra effort to
receive attention from the masses. You can monitor of the features most webmasters need”
Highly analytical Customisation
You can create custom reports and
Time counts
The average visit duration shows
Master the art of reading and understanding add widgets to your dashboard to how interested visitors are in your
your website's statistics make the analytics fit the way you content – the higher the number,
and your site work. The service is the better. Keep a close eye on this
highly flexible and very accurate metric because it is very important
Visits are a priority
The graph will quickly show you how
well your site is doing over a period
of time and at a glance let you know
if you are growing more popular or
losing appeal to the masses
A
Google Sitemap is important for a variety of reasons.
Firstly, it tells Google how your site is structured and
ensures that the search provider is aware of every page
present on your site. This provides for new sites with lots of
varied content, making sure they are properly structured in the
Google mechanism, not to mention the site itself. As a result,
the chances of search results coming your way are much more
favourable. In fact, a sitemap is more important for new sites
because Google is less likely to be aware of the extent of your
website's content if you are yet to establish external links from
other sites; this can spell a long road ahead towards gaining
recognition from the biggest search provider of all.
A sitemap offers a shortcut to Google recognition. While it
offers no guarantee of success, the process of uploading one is
quick and simple, so you have nothing to lose by following the
steps here. Once you have completed the process, you should
be able to leave it as is, although it can be beneficial to update
it from time-to-time. The most important factor, however, is to
ensure that you have uploaded one initially. Anything you can
do to make Google more aware of your site can only be a very
good thing.
HEADER
& FOOTER
Effective header and footer art can
make the difference
PHOTOSHOP
designing in the browser. But, maybe Photoshop’s bloated feature set is steadily becoming obsolete.
However, a new movement has started, bringing Photoshop
back into the web design fold and repurposing its powerful
it’s time we all just got along tools for brainstorming sketching and wireframing.
Many designers have criticised designing in the browser for
what Andy Budd (CEO at Clearleft) described as, a lack of “even
the most rudimentary tools, like the ability to draw lines or
irregular objects through direct manipulation”. The argument
here is, although HTML and CSS are capable of rendering
designed elements without the use of Photoshop, the lack
of freedom to directly manipulate designs can be risky for
creativity. Instead we should be using Photoshop to create
mood boards and sketches at the start of the design process,
allowing creative ideas to flow and develop without the
abstraction of a text editor and strict standards to stunt them.
This year, Photoshop is 25 years old and, with the release
of CC 2015, now in its 22nd iteration. Over that time, Adobe’s
software has seen radical changes, developing from an
image-editing application into a powerful design tool, with a
huge and dedicated user base. With competitors – including
Adobe’s own Illustrator and Bohemian Coding’s Sketch,
popping up – Photoshop has had to battle to stay relevant.
This has lead to a repositioning of Photoshop. It’s no longer
the tool used to create polished, finished site designs to be
sliced and rebuilt on the web. Instead, it’s found a place as a
prototyping tool, allowing designers to present clients with
ideas, palettes, styles and wireframes that can be easily edited
and don’t involve hours of development time.
In response, Adobe and third-party developers have
been building tools to bridge the gap between Photoshop
and CSS, making the transition from prototype to product
smoother. Here, we’ll take a look at some of the tools, plugins
and features that make Photoshop the perfect application for
getting your ideas down, before you even open a text editor.
Sketching in Photoshop
Designing in the browser can make it hard to quickly move
elements around and try out new ideas. If you’re struggling
with this, why not turn to Photoshop? You can use familiar
tools to mock up simple, visual layouts to explore ideas and
see if they work. These don’t have to look perfect and can be
made up of simple shapes – the idea is to just get a feel for
what works and what doesn’t.
Photoshop’s Vector Smart Objects are perfect for creating
simple layouts to explore site designs. Once you’ve created
something you’re happy with, you can try it in browser and
build out the details. This approach utilises the best of both
worlds, using Photoshop to experiment fluidly with designs
and HTML and CSS to implement the final product. This
method is especially useful if you’re having trouble with where
elements should go in responsive layouts – it also avoids
getting stuck staring at code, when a little bit of creative
freedom could give you the answer.
One of the many advantages of using Photoshop over alternative software is the huge number of
built-in and third-party tools, available to help you out when you most need it
From PS to CSS
O
nce you’ve finished with all of the in PhotoShop into CSS, which is just another
prototyping stages, it’s time to take your reason why lots of designers started avoiding the
designs to the browser. But what’s the Photoshop step completely.
best way to go about translating from Photoshop These days though, there’s a whole host of
to CSS? tools and plugins available to help you translate
Once you’ve done your sketches, created your your ideas from canvas to browser as smoothly
Style Tiles and developed your element collages, as possible. Some, that we’ll look at in a moment,
it’s time to take the visual elements you have directly convert your layer styles to CSS, while
established and translate them to web. In the past others simply aid in the transition. Layerstyles. your clipboard. When you paste it into your editor
this was a difficult enough operation. You would org, for example, is a totally web-based version with a little bit of HTML, you’ll have a button like
create a huge bitmap in Photoshop, slice it up of Photoshop’s layer styles dialogue that lets you the one you designed in app.
and reassemble it online. It could be painstaking mock up the style you want and then export the Unfortunately, this is a far from perfect solution;
and things often didn’t turn out as planned. Then result as CSS. the home brewed tool just isn’t up to scratch and
came CSS3 and implementing Photoshop style neglects to use RGBa values for low opacity –
effects in the browser, without the use of images, The in-house method and sometimes ignores effects altogether. It also
became a reality. As of version 13.1 (CS6 and above), Adobe has provides no formatting options before copying,
That being said, it can still be difficult to get the included a CSS export feature right inside the so everything has to be fixed later in the editor.
exact look you had achieved in PS sometimes, Photoshop package. Just select the layer that you Nevertheless, even with these bugs, it does
when you’re working with a whole different set want the CSS properties for, click on ‘Layer’ in provide you with a great base to start working
of tools and variables in a text editor. It can be the menu bar and hit ‘Copy CSS’. Photoshop will from, without having to manually input all of the
very time-consuming translating layer styles output a nice chunk of code and copy it straight to basics yourself.
“ There’s more emphasis on typography for PRO: More fluid workflow and working
the web than ever, these days” completely in vectors mean that the
process can be quicker and easier.
exporting assets
L
et’s not forget that Photoshop will always be
essential for some tasks, like creating icons,
banners and images. But when the code can’t
cut it, what are the best ways for you to get your
assets online?
Even with all these tools and tips for effectively
combining Photoshop and code, there will always
be jobs that CSS and HTML can’t handle. If you
need to create any kind of bitmap image or
SKETCH
bohemiancoding.com/sketch
element, Photoshop will always be the fallback.
Sketch is a beautiful, lightweight and very
You can continue creating designs in Photoshop
Slicy is a powerful tool for exporting elements, with built-in powerful design app. The Mac-only
as usual but remember that, although you’ll be
retina-scaling features – best of all, it’s free software began as a drawing package but
exporting assets in bitmap format, you should
was quickly adopted by web and UI
utilise the vector tools as much as possible so that vector designs. Cut&Slice me is a free plugin that
designers due to its flexibility and feature
revising designs isn’t a hassle. will export your assets from Photoshop and make
list. It allows for PNG and CSS asset exports
Slicing up designs with Adobe’s ‘Save for Web’ them ready for use on all kinds of devices.
and on-the-fly previews for all iOS devices.
option has always been long-winded. These days It also never hurts to have some extra tips on
there are plenty of options for getting your raster hand for best practice. Make sure you have a
PRO: Predetermined UI element styles
assets into the browser, quickly and efficiently. look at bjango.com/articles/actions – this list
make creating buttons and sliders easy.s
Slicy from Macrabbit (macrabbit.com/slicy) is an of Photoshop actions, put together by the good
app that exports layer groups as independent people at bjango, will save you countless hours
CON: It can be hard to get used to Sketch’s
files, giving you the freedom to move, hide and when creating and exporting images and artwork
tools and interface after years of Adobe.
overlap elements. It also offers retina scaling on from Photoshop.
B
ackground images are an essential part of the era. ‘Vintage’ suggests age, refinement, We’ll weather and age our design to help create a
designing a website, so being able to create sophistication and experience. time-worn look and save it in a format that will work
a tiled image – one that repeats without In this tutorial we’re going to create a classic on the web. If you don’t fancy using a sketched
seams – is especially important. After all you don’t fleur-de-lys in Photoshop. We’ll start from a sketch fleur-de-lys, we explore ways to use Photoshop
know how long your pages will be. and work this up into a fantastic vintage wallpaper custom shapes to create simple and easy-to-use
We can find inspiration all around us for repeat tile, which will repeat perfectly for use on a website. patterns that will suit your website.
patterns, whether it’s a bee’s honeycomb, parquet
flooring or some vintage wallpaper. While it’s true
to say that styles and fashions come and go, often “We find pattern inspiration all around us –
at an alarming rate, there are those that are always
fashionable – timeless designs that work whatever from honeycombs to parquet flooring”
18 Other properties
Your image will need to be in the same folder as
your style sheet. You can set the position of your
repeating image using the background-position
property, how it repeats using background-
repeat, and a fallback colour to be used using
16 Use your image 17 Import your image background-color.
Once you’ve successfully saved your image, it’s Adding a background image to your website 001 body {
time to use it on your website. To do this you’ll using CSS is very simple. First you define the 002 background-color: #ccc;
need to have a webpage lined up and ready to element you’d like to create the CSS rule for – 003 background-image: url(background.jpg);
go, with a CSS stylesheet and an element you’re this is achieved by naming the element either 004 background-repeat: repeat;
going to apply your repeating background to. through its tag name, class or ID. Next, add a rule
If you haven’t already got these in place, come for background-image and specify the image 005 background-position: top left;
back to this section later on! you’d like to use as a background. 006 }
H
ave you ever browsed the web and come Of course this can present a challenge, especially use in this tutorial will work with many different
across a website that has a really beautiful if you feel you’re lacking inspiration, artistic ability, types of subject matter, so follow the steps below
header? Do you wish you had something or both. Fortunately, you don’t really need either! and then apply the principles to your own project.
equally stunning sitting at the top of your website? Some basic Photoshop techniques can be used Once you’ve created your header, you can do the
Having a unique, memorable identity on the web to take a very simple concept and make it into same for the footer of your design too, creating an
can be the difference between a user remembering something really special. The same techniques we integrated, consistent design.
your site and the same user instantly forgetting it.
The most important rule on the web is to ensure
your site has great content that compels return “Some basic Photoshop techniques can be
visits, but, given the choice, most people would also
like their site to look nice. used to make something really special”
Using
Photoshop’s
brush engine
Using brushes in Photoshop,
you can achieve a wide
variety of effects
Photoshop comes with a variety of brushes
built in. Selecting the Brush tool opens up a
range of options in the toolbar, allowing you to 11 Copy and recolour
choose style, size and hardness. You might be 10 Give it a glow Let’s quickly create a second, smaller planet.
forgiven for thinking that this is the beginning It would be nice to have a light-distorting Make sure you have the planet layer selected,
and end of brushes in Photoshop, but there’s
atmosphere on the planet, so let’s add another then select Layer>Duplicate Layer. Select Edit>
so much more.
For starters, the set of brushes that appears outer glow to simulate this. Select Layer>Layer Transform>Scale and reduce the size. Finally,
by default is only one of many sets Adobe Style>Outer Glow. Choose a bright cyan as the choose Image>Adjustments>Hue/Saturation and
thoughtfully provides. To load other brush colour, and set the blending mode to Colour tick Colorize. Play with the settings to find a nice
sets, click on the flyout menu when selecting a Dodge. Play with the other settings to suit. result that suits.
brush style. You’ll see a whole bunch of brush
sets just waiting for you to activate. Choose
one you like the sound of and Photoshop will
ask you if you’d like to append or replace the
current brush set. Appending simply adds the
new brushes you’re loading to the existing set.
If you’d rather keep it clean, replace the set and
you’ll just have the set you last loaded.
In addition, you can download and load in
whole new brush sets from the web. A quick
internet search for ‘free Photoshop brushes’
yields thousands of results. Every kind of brush
you can imagine can be found, ranging from
simple shapes to entire illustrations in a brush.
To install, simply download the brush set of
your choice, then click Load Brushes from the 13 Bring the rainbow into
Brush flyout menu. 12 Create a rainbow your scene
Create a new document at 1024x1024px, 72dpi In the rainbow file, select Edit>Copy Merged
and transparent. Select the Gradient tool and, (shortcut: Shift+Ctrl/Cmd+C), then return to the
from the tool presets, choose Transparent main document. Select Edit>Paste (shortcut: Ctrl/
Rainbow. Draw a linear gradient top to bottom, Cmd+V). Add a layer mask to the rainbow layer,
covering the middle third of the canvas. Select and draw a black to white gradient onto the mask
Filter>Distort>Polar Coordinates. Ensure to hide the left-hand side of the rainbow. Position
‘Rectangular to polar’ is selected and click OK. the layer to the right of the canvas.
Planets
The planets were
created using
nothing more
sophisticated than
the Cloud filter and
a circular selection.
Shading helps to
create a sense of
mass, and an outer
glow layer style
ensures that the
planet fits into the
scene nicely
Fancy tentacles
of colour
The tentacles of
colour have been
created using
a stroked path,
with simulated
pressure. Each
colour is chosen
from the rainbow
to complement
and set off
against the other
elements nicely
146
Perfect
”Making your palette
site respond to
different devices
is more important
than ever”
156
Animate
text
SOCIAL MEDIA
BUTTONS
Use Facebook, Google+,
Pinterest & Twitter
THE PERCEPTION
OF COLOUR HOW DO TINT, TONE AND SHADE INFLUENCE THE USER
EXPERIENCE? FIND OUT HOW TO USE THE BEST COLOUR
PALETTE IN YOUR SITE DESIGNS TO ENGAGE YOUR AUDIENCE
GREEN BLACK
ENVIRONMENTAL, FRESH, HONEST SOPHISTICATED, POWERFUL, DEATHLY
It’s been found that people relate better In western culture, black has traditionally
to colours that resemble those that they been associated with despair, decay, death
experience naturally. Green represents the and mourning, but it also has strong links
earth, nature, growth and honesty. In China, with power and authority. Black is also used to
green is the symbol of health and prosperity. It’s convey messages of sophistication, luxury and
also widely recognised as the colour for envy. even elegance.
% of males that state green as their favourite colour: 14% % of males that state black as their favourite colour: 9%
% of females that state green as their favourite colour: 14% % of females that state black as their favourite colour: 6%
YELLOW WHITE
BOLD, DISCOUNT, OPTIMISTIC INNOCENT, PURE, CLEAN
Interestingly, while we generally tend to Technically not a colour, white is in fact the
associate yellow with bright, bold and fun, presence of all colour. We associate it with clean
some studies have found most people associate slates, freshness, new beginnings, positive
yellow (along with orange) with cheap and energy and life. It can turn confusion into clarity,
inexpensive attributes. They also ranked it as but too much white can also bring a sense of
one of their least favourite colours. empty isolation and coldness.
% of males that state yellow as their favourite colour: 1% % of males that state white as their favourite colour: 2%
% of females that state yellow as their favourite colour: 3% % of females that state white as their favourite colour: 1%
RED BLUE
PASSION, WARMTH, AGGRESSION COOL, CALM, RELIABLE
Red shares a similarity with black but has Through its association with uniform and
conflicting connotations. We consider red to royalty, blue also delivers a sense of trust and
be the colour of the heart, relating to love, authority. Many of the largest corporations (IBM,
emotion and safety, but on the flip side, red also Barclays, Facebook) use blue for this reason. But
symbolises warnings such as ‘danger’ and ‘stop’ using blue filters in film can create a cold and
and the display of rage. isolated feeling.
% of males that state red as their favourite colour: 7% % of males that state blue as their favourite colour: 57%
% of females that state red as their favourite colour: 9% % of females that state blue as their favourite colour: 35%
Source: Joe Hallock (2003), Colour Assignment.
Cultural differences
HSBC ran a TV advert a couple years back that the royals, or more specifically: the king. In
explained that red signifies good luck and Belgium, baby girls wear blue and baby boys
weddings in China, whereas white represents wear pink, which is unlike what we are used to
death and mourning. This contrasts with our here. If we think of fertility, freshness and
own country, where white is often the bridal springtime in the Western hemisphere, we
theme colour and death is represented at the think of the colour green. The opposite is true
other end of the spectrum by black. in South America though, where the dense
Cultural variations of colour connotations green rainforests make the locals think of
don’t stop there. Yellow in the UK draws up death. Green is forbidden altogether in parts
images of supermarket price reductions. of Indonesia; a ban rooted in local culture and
However, in Thailand yellow is the colour of a myth about the wrath of a sea goddess.
The easyJet brand uses a powerful orange Orange is now intrinsically linked to the brand
“
being green at 14 per cent.
Looking at how this breaks down into age,
blue appeared top of all ages surveyed, with
had a preference for brighter, longer-wave
colours (red, orange, yellow).
While not original,
people in their twenties, thirties, fourties and If we look at Facebook’s demographic, which blue statistically serves
fifties all choosing hues with shorter wave has roughly a 60 to 40 ratio leaning to a female a solid purpose thanks
”
lengths (blue, green, purple) compared to audience, and an average age of 40, finding a
younger audiences (those 19 and under) who colour popular among the typical user would to its ubiquity
Web Design for Beginners 149
Customise your site
N
avigation menus are vital to the success of any website. The bars) is quickly becoming known as something that ‘should’ be clicked on.
navigation menu on a website is like a road sign on a street or a level To help us develop this menu, we’re also going to be using Font Awesome,
directory in a shopping centre. You can’t decide on your destination which is an iconic font, and CSS toolkit, and we will be adding some vector
without knowing all of the options available to you, and reaching that icons to each menu button. So let’s get started on our expanding navigation
destination would be impossible without first knowing where you are. Just like menu by following these easy steps!
in real life, navigation in web design is very important and plays a major role in
a website’s usability, as well as in the user experience.
Nowadays you can see plenty of different types of navigation menus with
“Navigation plays a major role in
interesting, creative and unusual designs. In this tutorial, we will look at how
we can develop a simple and clean navigation menu. The menu will expand a website’s usability as well
horizontally and, when closed, will be tucked neatly away, with just the
popular Navicon icon showing. This icon (which is three horizontal or vertical as user experience”
With all the HTML completed, all we can see is a typical, boring and unordered list With the Font Awesome CSS imported, we can see what the icons look like with the text
We’ve now added the CSS reset and set the background colour to make sure the text stands out Everything is now hidden, but it saves space and is revealed when we click the Navicon
22 Final thoughts
The last step is to add a hover state to our button text, and our expanding horizontal menu is now complete You’ll more than likely see plenty of navigation
menus like this, especially now that responsive
003 float: left; webpages are now part of our design workflow.
it’s all in upper-case. Then we’re going to set the 004 } Using vector icons such as Font Awesome will
width to zero. 005 .menu.left.horizontal nav { really help make your navigation menus more
006 margin-left: -50px; easy and fun to develop.
001 .menu nav ul li a span { 007 }
002 font-family: 'Lato', sans-serif;
003 font-size: 16px;
004 text-transform: uppercase; 19 Home button
005 width: 0; At the moment the icon for our home button is
006 } hidden underneath the Navicon. So by adding
007 0 some margins we can push all of our buttons over
to the right slightly so the home icon will appear.
Another feature you will notice is that when you
17 Animate the buttons click on both the Navicon and the home icon, the The @keyframes at-rule
Now this is where things get a little more menu will close.
interesting. We are going to animate the buttons Throughout this tutorial we’ve made good use of
by using padding – this is so that when the 001 .menu.left.horizontal input#slide:checked ~ Font Awesome, a scalable vector icon font and CSS
buttons are hovered over, they will move to the nav { kit. So what are the benefits of using an icon font
right by 10px. Then we need to make sure that 002 margin-left: 60px; instead of images and sprites? The first and best
the active state is set and they are given a width 003 } benefit is that it is just a font. This means that you get
of 100px. 004 .menu.right.horizontal nav { all of the benefits of styling that you would get with
005 margin-right: -50px; regular text. So, for example, you can easily change
001 .menu nav ul li a:hover span { 006 } the colour and size of an icon with a little bit of CSS. It
002 width: 100px; 007 .menu.right.horizontal input#slide:checked ~ will also render as sharp as your device will allow it to,
003 padding: 0 10px; nav { so there’s no need to worry about creating
004 } 008 margin-right: 60px; Retina-ready graphics.
005 .menu nav ul li.active a span { 009 } The other benefit of using Icon Fonts is the
006 width: 100px; performance. Since all of the icons are included in
007 padding: 0 10px; one font file, it means that it is only one HTTP request
008 } 20 Menu colour to load. This can really give you quite a bit of
In the last few steps of this tutorial we are going page-load performance if you are using a number of
to add some colour to both our menu and the
18 Horizontal menu buttons. The first thing to do then is to add a
different icons.
Our main aim in this tutorial is to create a The best way of adding Font Awesome to your
nice light blue to our menu background. Then website is to use the CDN and add that to the head of
horizontal menu, so by targeting the horizontal we will give our icons a different shade of blue,
class we will be able to float the list items to the your HTML file.
which will be slightly darker than our main menu
left, which will fulfil that aim and make the whole background. 001<link href="//maxcdn.bootstrapcdn.
menu horizontal. Then, by adding a negative 50 com/font-awesome/4.2.0/css/font-awesome. min.
pixels to our menu, we can tighten things up a 001 .menu.blue label, css" rel="stylesheet">
little bit. 002 .menu.blue nav ul li a ul li i { The other way is to download the CSS file and link
003 background-color: #3498db; bg that in as you would with a normal CSS file – which is
001 .menu.horizontal nav ul li, 004 color: #2980b9; icons what we did for this tutorial.
002 .menu.horizontal nav ul li a span { 005 }
01 Inspiration
Create CSS animated Talk to me
O
ver the last few years a ‘less is more’ become a far more creative endeavour in web website, which features parallax delivery of
aesthetic has taken root in web design design than it has been in many years. Here we will content and a simple but striking landing area.
practice and presentation. At present, explore just one way of turning text into a piece of This landing area contains little more than the
the use of text rather than images to create initial design on your website. Talk PR logo to emphasise the brand, but it is
impact on a website is becoming more and more also made a significant design feature, with
widespread. The old slide shows are being replaced
with bold, stark fonts and plenty of white space. “Typography has an animated background that makes for an
engaging introduction to the site. The Talk
There has also been, however, the re-emergence of
the font as an image in its own right. become a far more PR text feature is created using an animated
GIF background image, which is a simple and
This technique is predominantly being used effective way to achieve the effect. However, in
as an artistic element rather than a simple means
to deliver language and communicate a specific
creative endeavour this tutorial we will create our own text with an
animated background via two distinct methods
textual message. For this reason, typography has in web design” using CSS3.
Simplicity
The animated background
text is a striking introduction
to Talk PR’s website and the
landing page’s simplicity is a
brilliant gateway to the site’s
many features
SIMPLE WORKS
Talk PR’s animated GIF
method for creating the
text background may Clear links Sliding grid links
seem too simple for those Take a look at the impressive list of It’s also worth taking a look
looking to use more modern clients for some smooth scrolling at the blog, from one of the
methods, but it works. It also links from each well-known client front page links. It is another
resizes smoothly within this logo. Some of them are given good example of grid image
responsive website, which colour upon rollover, which then layout for content links that
helps avoid browser issues. link to a page about the client slide into place
I
n addition to the recent trends in web design complete with CSS hover effects and animated company and a channel for all of their specialist
towards typo graphics, there has also been a captions. It’ll be easy for you to animate your orders. In effect, it serves as a shop front for
shift in the use of images. As broadband speeds webpage, making it more beautiful and interactive. making sales and building brand awareness.
increase and web delivery methods refine, it’s no The site features a large quantity of imagery, as
“There has also been
longer detrimental to the load-time of a website if
it‘s heavy with large images. This enables imagery
well as an initial full-width video background. It
is simple, well laid out and extremely evocative
a shift in the use
to be used as part of more interactive elements,
such as navigation links. CSS now provides a
of the workshop environment, making it an
authentic representation of the business and
of images in web
wealth of possibilities to animate, embellish and
enhance online imagery, and turn your images
into interactive elements. In this tutorial, we will
its products. Scroll down and you’ll find an
Instagram-based, gallery-style image grid with
the style of hover effect that we will be using as
design trends”
look at the process behind creating an image grid, the basis of this tutorial.
Progress video
This screenshot displays
the Instagram image grid,
but users can scroll to the
top to view the initial video
background, which shows
clips of the production
Coloured in
The Instagram image grid
elements are initially black
and white. Hovering on
them transforms each
element into a full-colour
image, with a fade-in caption
IMAGE USE
It doesn’t take much work at
all to use your images as the Varied effects Unique menu
basis for smooth, eye-catching,
The Where to Buy section, Instead of a more typical
interactive effects. As with the
which is located above the menu that slides in from the
Wood Shed Production site,
Instagram section, features a left and features text only,
try to see your images as more
different set of hover effects. Hover this one occupies half the
than just pictures to be placed
on each link to view a slide-in screen width and has an
in a window for display.
underline element image background
T
he problem with descriptive language JavaScript can be used to redefine the standard Despite the design focus being on the strike-through
is that the addition or omission of a <strike> tag to present an animated strike- effect, it’s important that the focus is on how the text is
single word, or even a comma, can give a through effect. The advantage of this approach interpreted in all circumstances. The primary consideration
is the wording used. Make sure to be critical of how the
completely different meaning to the message is how it can be applied to websites containing
meaning of the text can be interpreted with and without
being communicated. Creative design can use massive amounts of existing content. All that is the text struck through.
this flaw in language to emphasise the difference required is the addition of the CSS – no HTML Another important consideration when integrating
between one meaning and another. In our modifications whatsoever! this effect into your web content is the use of a fallback
example, we use the text ‘I am not invincible’ The approach used in this tutorial provides a feature. It could be a failure for the strike-through text
with animation to emphasise the omission of standard fallback for modern browsers that don’t not to appear on browsers that don’t support some CSS
features. So the original text would appear without the
‘not’, thereby changing the meaning of the support the animation effect. For older versions
strike-through effect. Imagine this: ‘XYZ premium brand,
sentence. This effect has been used to good of Internet Explorer that don’t support the delivering [average] quality since 1984’, but without the
advantage on the McClaren agency website to before selector, you might want to use the ‘if [average] struck through. So bare in mind contractually
emphasise the agency’s excellence. This tutorial IE’ HTML tags to reactivate the standard strike- obliging text, like the well-known UK catalogue chain who
shows how standard CSS without support from through effect. had to sell TVs for £1 due to a wording error on their site.
Strike colour
Unlike the standard strike-through
effect offered by HTML and CSS,
this line is a different colour to the
main text
Strategic wording
The wording is written to make full
use of the strike-through effect, and
to change the context on each read
Semantic meaning
Legacy content The <strike> tag provides
Using the standard <strike> context to the text, allowing
tag will allow the effect to be apps and search engines
compatible with all content to understand what is
without needing HTML changes happening
T
here are many ways in which you can We will be using PayPal for this tutorial. PayPal simple way of creating a cart which means people
sell items online. You could use eBay or is an accepted standard for online payment can shop and buy items from you.
Amazon Marketplace. You could sell direct transactions and people are familiar with it. It means All you have to do is create a button. You could
to companies that buy specific items. Or you could you have a solid name behind you and also the have just one, Add to Cart, or you could combine
go it alone and set up your own store via your higher likelihood that someone will be willing to that with a View Cart button. Whatever method,
personalised website. Maybe you want to be able buy. And, as luck would have it, PayPal offers a very your page will look inviting and professional.
to control the user experience or perhaps you
have just one item for sale and want to centre an
entire web offering around that specific product.
Whatever you want to do, it is easy to create a
“PayPal is an accepted standard for
shopping cart for your website. online payment transactions”
Preview
Rather handily, you are given a
preview of the button that your
buyer will see when he or she visits
your site. Edit the code to change
its appearance
More options
If you don’t like the button
you’re using, just create
another button via this link.
You can also keep the code
and use it as a template for a
similar one
I
n order to promote your website or the subject of your website, you
may consider producing an email newsletter. These are sent out to
subscribers, keeping them up-to-date with the latest additions to your
webpages. The idea is that it keeps driving traffic back to the site among
those who have already expressed an interest in it, allowing you to show
them that you are still up and running and that there's plenty of content
to keep visitors coming back for more.
In order to be effective, you will want to add a newsletter script to your
webpage. This will produce a form into which people can insert their
contact information and sign up for your regular updates. This is a great
way to capture marketing data for targeting interested individuals. Once
subscribed, they will automatically receive your newsletter every time you
produce one. It can also be a good idea to have an Unsubscribe
button somewhere on your website, maybe in the
About Us section, as subscribers are more likely
to try it out if they know they can leave.
The easiest way to set up a
newsletter script is via MailChimp.
Although the service can charge, if you
have fewer than 2,000 subscribers and don’t send
more than 12,000 emails each month, there is no charge at all.
You don’t need to input any payment details either to sign up, which is
a plus. MailChimp is easy to use and it is all done online with menus and
wizards, ensuring you will be up and running in next to no time.
Email address
The only required box – denoted
by an * – is the email field. This is
because you need to know where
the email with your newsletter is
going to be sent
CAMPAIGN BUILDER
MailChimp has a Campaign
Builder option that enables you
to create newsletters that can
then be sent out to the list of
your choice. As people subscribe
to your newsletter, they will be
added to the list and become a
recipient of it. All you have to do
is keep creating your newsletters.
These templates can be set up at
https://us5.admin.mailchimp.
com/templates.
O
ver the past few years the web has increasingly become a
true social platform. Networks such as Facebook and YouTube
now boast over a billion users each. For someone involved in
creating a website, this is a terrific opportunity. Social networks democratise
content sharing, so that if your website strikes a chord with users of these
networks, the networks themselves become a effective promotion platform.
There’s nothing to stop you from regularly posting a link to different
pages on your website and encouraging your friends and followers to share
your link, but this is really only scratching the surface of the power of social
networks. Instead of relying on you to post, it can be far more effective to
encourage visitors to your website to post to their wall or tweet in
response to your site.
In truth, anyone could post a link to your site
on their wall or stream as a matter of
course, and some of the most
dedicated social network
users might, but for the majority of
people there needs to be both a reminder
and an easy one-click way to post. Webmasters can
address this by creating social media buttons with recognisable
logos, which are designed to facilitate easy posting to the visitor’s wall,
adding to their channel or tweeting.
Standard buttons
Breaking it down All the common social networks are available, including
the likes of Twitter and Facebook, so you can choose
which networks to include and appeal to within your set
There are many different social of buttons. Here we’ve opted for just Facebook
networks available
Recognisable logos
Users of social networks recognize
the standard buttons for their
preferred network. This means that
you shouldn’t change the way a
Facebook Like buttons looks, unless
you feel it’s worth the risk that
visitors won’t recognize the button
for what it is
Extended functionality
Some services allow you to create
your own custom buttons to
perform additional actions on the
page, such as printing, converting to
PDF or other custom actions
T
witter is a great way to engage with your visitors, and can help to drive
traffic to your website. An ideal way to encourage visitors to tweet a link to
your pages is to include a tweet button in your design, but a shortened link
isn’t the most eye-catching, attention grabbing advert for your website. Fortunately,
there is a way you can enhance tweets that link to your website, whether it’s you
sending the tweet or one of your visitors. This is done with the help of Twitter cards.
What are Twitter cards? Twitter cards make it possible for you to attach additional
information to tweets when your website is linked within a tweet. These cards can
take a few different forms, and will show up slightly differently according to whether
you access the Twitter service through the main www.twitter.com website, or
through different Twitter apps.
There are six different card types you can choose from, each of which has a
different layout and, as Twitter puts it, consumption experience. The principal
options are the Summary Card, which provides a title, description, thumbnail image
and Twitter account link; the Large Image Summary Card, which is similar but adds
a large image in place of the thumbnail; the Photo card, which provides a single
image; and the Gallery Card, which offers space for a number of images. There are
also specialist cards for video and audio, apps and product listings.
In this tutorial we’ll show you how to create one of the basic card types, install
it on your website, and test the results with the Cards Validator service. Using this,
you can add other cards to your website. Depending on your website's layout and
content placement, take a call as to which card will look best on it.
Thumbnail image
Card Title
This title can either be the name
of your website, or better still the
name of the page or post itself. The
more specific you are, the more
likely you’ll grab attention
Card description
This description allows you to
convey the basic ideas behind the
content on your page. Make the
most of the limited character count.
Summarise to attract readers
Twitter Account
This section of the card can be set APPROVAL NEEDED
to point to your website’s official All cards need approval before use, so use the Validator to test
Twitter account, encouraging your cards and request this. The specialist Twitter Cards all
followers when a link is posted to require special approval, and some are still in development.
your site on Twitter Check with the official documentation at https://dev.Twitter.
com/docs/cards if you want to use one of these special types,
otherwise stick with the four basic types for your website.
Web design
glossary As with most specialisms, there are many
specific terms that relate to web design. We
look through some of the key terms to clear
up any confusion
Content management
system (CMS)
A CMS manages aspects of your site using
a backend tool. Popular examples include
WordPress. Commonly, you will be able to create
posts, add headlines, text and images within a
simple form in the admin area for your site that,
when published, appear online. The various
elements are usually separated so that content is
set aside from design.
Cookie
Cookies are useful for remembering what a
visitor did when they last landed on a webpage.
A cookie can hold all sorts of data including any
customised elements, ensuring they do not have
to tailor the site for their needs each time.
CSS
Cascading style sheets have superseded HTML
Content management systems such as WordPress remove the hassle of coding and ensure updating a site is easy tables, telling a web browser how its pages
Hosting
A website has to be stored on a computer. This
is referred to as a server. The server has to be
connected to the internet. Servers are owned
by host companies, hence hosting is the act of
providing the service.
HTML
Hypertext markup language enables you to
create webpages. It is an adaptable language
that is used to provide website content and
can incorporate elements of design. HTML5 is
the latest iteration and it adds new syntactical
features including <video> and <audio>.
Here you can see how this site shows a breadcrumb trail, letting you jump to football or sport very quickly
should look. The language specifies the layout can be copied and pasted into the relevant area
HTTP
and style of a site, giving information about the of your own page code. The site will then pull in Hypertext transfer protocol is most often used as
fonts, colour, typeface, border, alignment, width, content, be it a video, tweets, images and more. part of a URL. It sets out the rules of exchange on
height and much more. the web between the server and browser. HTTP
does this over a secure and encrypted connection
Favicon and it is used when sensitive information is being
Domain The 16x16 pixel icon which appears next to the sent online.
A website domain refers to the name of the site. address bar in the browser to identify the site.
For example imagine-publishing is the domain Hyperlink
for the publisher of this bookazine. The .co.uk Focal point Where text or an image can be clicked so that
suffix is the domain’s extension.
The area where the eye is naturally drawn is the user is sent to another page or website, this
called the focal point, so you need to make sure is referred to as a hyperlink. When hyperlinks
Dots per inch that if something is catching the attention more are carried within text, they will be shown in a
DPI refers to the resolution of an image. Typically than anything else, that it is the part you wish to different colour or underlined. The cursor will also
an image for the web will need to be 72dpi. This draw attention to. A focal point can be anything, change when a hyperlink is available on a section
is low when compared to print. The images in this but you want it to stand out. of your webpage.
bookazine, for example, are 300dpi.
Hyperlinks are familiar to web users. Often coloured
Font family or underlined, they point you to other areas of the
website or internet
Fonts refer to the characters that make up the
words on your webpage. A font family is a group
of typefaces which look similar, for example Arial
and Arial Black, Arial MT Std and so on.
Font weight
The thickness or thinness of a font.
Form
Shopping carts are key features of eCommerce websites and will be Rather than just have a link to an email address
identifiable to anyone who has bought items online
(<a href=”mailto:youremail@email.com>email</
a>), you can use a form. They are great for
eCommerce interactivity and for allowing people to fill in
Sites which allow the buying and selling of items details directly on the page. You can code them
online are examples of eCommerce. yourself or use third-party software to generate
a form which can then be embedded.
Embed code
Many sites such as YouTube, Facebook, Twitter
and so on allow you to feed their content into
your own site. This is done via embed code, which
iframe Metadata
An iframe is used when you want to display more Within the <head> of an HTML document, it is
than one webpage in a single page. You could, possible to write metatags. These are hidden
therefore, have two webpages. For example, from view so visitors cannot see them, but search
there could be a menu where clicking on a engines will find and make use of such metadata.
hyperlink will open a new webpage in a frame on
the same page while retaining the menu area. Liquid layout Navigation
A website with a liquid layout will alter depending Refers to the way people move around your
Image map on the physical size of the browser window. So webpages. Your navigation needs to be as simple
Coded in XHTML, an image map is a picture that if someone minimises their browser, the content as possible so that people do not become lost.
is broken down into different clickable areas, each will optimise to fit the window, whereas a non- Navigation is usually in the form of menus but it
of which send the user to different URLs. liquid layout will hide some of the content. The can also be via links on a page.
containers on the page have their widths defined
JPEG in percentage terms. Non-breaking space
A file format which reduces an image’s file size, In HTML, this refers to a white-space character.
therefore making pictures quicker to download Use it when a single white-space is needed such
when they are placed within a webpage. as when indenting a line. It is also referred to by
the indicator .
Keywords
Search engines are important because they
Outbound link
point people to your website. Search engine A hyperlink which sends people to another
optimisation is therefore crucial and keywords – website. Also called an external link.
the terms that people will use to search for your
page or content – are one element of that. A PDF
keyword used prominently on a page will ensure This is an example of a non-liquid layout where resizing the A portable document format file provides
better ranking. browser cuts into the page. A liquid layout readjusts to fit information in a layout that is fixed. PDFs can be
Plug-in
Some web content requires a plug-in – an extra
piece of software that expands the possibilities
of an existing app. For a browser, for instance,
you could have a Flash plug-in to be able to play
Flash video. Plug-ins are also available for content
management systems. An example of this is an
eCommerce plug-in for WordPress to allow users
to set up an online store and accept payments.
Podcast
Web design is not just about the visual. You
should be aiming for all sorts of content,
including audio. A podcast – which can also
Many websites make it simple to add dynamic content via embed code such as this on the YouTube site
be video – is a recording to which visitors can
subscribe or download.
Sitemap Traffic
Responsive Design If you have lots of content, a sitemap can be used When people come to your site for whatever
Reponsive Design has become a buzzword for to make sense of it. It is a list of all of the items reason, they will download data. The amount
websites. It basically means creating a website within your site, organised by their hierarchy or they transfer is called traffic, although this term
that can be used efficiently across all platforms. importance, depending on the type of site. is also used to describe the number of people
It ensures consistent user experience whether on visiting a site.
a PC, mobile device or tablet, irrespective of your Social media
screen and resolution size. It's soon becoming
mandatory for web designers to adhere to
Most people are a dab hand with social media WYSIWYG
nowadays. From Facebook to Blogger, Twitter 'What you see is what you get' refers to a
responsive design as their website can be viewed
to YouTube, there is a rich tapestry of content program that will publish a webpage on the
on any device.
provided by users. These elements can be internet that appears exactly as it did within the
inserted into a webpage. They help to drive
RSS people to your site too. The developer areas of
app. One good example of this is Apple’s intuitive
and easy-to-use iWeb. It basically means that you
Really simple syndication not only allows such sites often carry embed code and individual will see a webpage exactly as you published it.
websites to pull in content feeds from other sites, elements are also embeddable. This is a good starting point for beginners.
but it also allows web managers to give visitors
the option of subscribing to their feeds. A feed Template XHTML
will typically show you a website’s headlines and
Commonly associated with content management Standing for extensible hypertext markup
sometimes the first paragraph of text.
systems, templates (and themes) give websites a language, it refers to HTML which complies with
standardised and consistent look and feel, which
Script helps to ensure they appear more professional.
XML rules.
JavaScript is an example of a script, a code that
XML
is placed within an HTML page that produces Text editor Extensible markup language is a markup
interactive and dynamic elements. This could be
A fancy web design package is not needed if you language used to write other markup languages.
a drop-down menu or pop-ups.
know HTML. All you need is a simple text editor
program such as Notepad on the PC, saving the
SEO file with the extension .html.
Search engine optimisation is the act of
enhancing your website so that it is picked up by
the likes of Google and Bing. It’s a complicated
area but metadata, inbound and outbound
links and allowing RSS feeds to encourage your
content to be used within other sites helps.
Shopping cart
Online shops do not usually require you to buy
items individually. Most often you place them in
a basket or cart and then check out, paying for
them all at the same time. Having a captcha on a web form bars it from being overrun by The top of a webpage – the part that shows – is referred to as
automated bots that scour the web and randomly fill them in above the fold. You can scroll to see the rest
Enjoyed
this book?
Exclusive offer for new
Try
3 issues
for just
£5 *
* This offer entitles new UK direct debit subscribers to receive their first three issues for £5. After these issues, subscribers will then pay £25.15 every
six issues. Subscribers can cancel this subscription at any time. New subscriptions will start from the next available issue. Offer code ZGGZINE must be
quoted to receive this special subscriptions price. Direct debit guarantee available on request. This offer will expire 30 April 2017.
** This is an US subscription offer. The USA issue rate is based on an annual subscription price of £65 for 13 issues which is equivalent to $102 at the time
of writing compared with the newsstand price of $14.99 for 13 issues being $194.87. Your subscription will start from the next available issue. This offer
expires 30 April 2017.
About
the Uncover the secrets
mag of web design
Practical projects
Every issue is packed with step-by-step tutorials
for HTML5, CSS3, Photoshop and more
In-depth features
Discover the latest hot topics in the industry
Join the community
Get involved. Visit the website, submit a portfolio
and follow Web Designer on Twitter
subscribers to…
EVERYTHING
YOU NEED
TO BUILD ON
THE AWESOME
SKILLS IN THIS
BOOKAZINE
80 frosted
backgrounds
YOUR BONUS
RESOURCES
ON FILESILO WITH THIS
BOOKAZINE, FREE AND
EXCLUSIVE FOR WEB DESIGN
FOR BEGINNERS READERS,
YOU’LL FIND A WEALTH OF
RESOURCES, INCLUDING…
• All the files you need to complete the
tutorials in this bookazine
15 free fonts • Free fonts, including Cotton, Gameness,
Dacquoise and more
• Over 90 minutes of in-depth video tuition
Video tutorials to help you develop your skills, including
adding fullscreen images and multiple
transitions to your site
PACKED WITH BRILLIANT • A selection of 80 premium background
DIGITAL CONTENT, AVAILABLE images to spruce up your site
ANY TIME, ON DEMAND
filesilo.co.uk/bks-921
176 Web Design for Beginners
FILESILO – THE HOME OF PRO RESOURCES
Discover your free online assets
A rapidly growing library No more broken discs
Updated continually with cool resources Print subscribers get all the content
Lets you keep your downloads organised Digital magazine owners get all the content too!
Browse and access your content from anywhere Each issue’s content is free with your magazine
No more torn disc pages to ruin your magazines Secure online access to your free resources
facebook.com/ImagineBookazines
facebook.com/WebDesignerUK
178 Web Design for Beginners
Packed
with top
Web Design
tips
Everything you need
to know to get started
with web design
Free assets
t'POUT XBMMQBQFSTBOE)5.-UFNQMBUFT
t0WFSNJOVUFTPGWJEFPUVJUJPO
t'JMFTUPIFMQZPVGPMMPXUIFUVUPSJBMT