Confident Web Design
eBook - ePub

Confident Web Design

How to Design and Create Websites and Futureproof Your Career

Kenny Wood

Condividi libro
  1. English
  2. ePUB (disponibile sull'app)
  3. Disponibile su iOS e Android
eBook - ePub

Confident Web Design

How to Design and Create Websites and Futureproof Your Career

Kenny Wood

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Do you need a website to support your freelance business or entrepreneurial venture? Or are you considering a career in web design? Maybe you're looking for your next career pivot, or you're simply seeking skills to give your CV that competitive edge? Wherever you are in your career, Confident Web Design can help. The ultimate beginner's guide to designing, building and publishing basic websites, this book features exclusive online exercises to help you practice your new skills in context. Covering the basics of HTML, CSS and JavaScript, as well as giving you a thorough grounding in the real-life application of these principles, this book provides helpful examples, explanations of technical terms, and clear, easy-to-understand language - meaning your first website is only a few chapters away.Taking you on a practical journey to publish a basic website from scratch, the book's structure is designed to break down each skill into manageable chunks. Wherever you are in your career, let Confident Web Design give you that cutting edge with vital programming and design skills.About the Confident series...
From coding and web design to data, digital content and cyber security, the Confident books are the perfect beginner's resource for enhancing your professional life, whatever your career path.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Confident Web Design è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Confident Web Design di Kenny Wood in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Business e Business Skills. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Editore
Kogan Page
Anno
2020
ISBN
9781789663464
Edizione
1
Argomento
Business
Part One

HTML

In this section we will be learning how to code using the HTML markup language. On this journey we will be building the HTML structure of our website and introducing the various tags that form the makeup of the HTML language and modern webpages. We will introduce best practices and ways of working that will enable you to write high-quality code that could be used in a production environment.
This journey through the use of HTML will see us tackling the anatomy of the tags that form the makeup of the HTML language, before looking at how we use these tags to render text, hyperlinks, images, tables, lists and forms. These elements form the basis of all webpages, and learning how to use them will empower you to be able to create an abundance of diverse and interesting structures for your website.
Each chapter will introduce new concepts that we will be putting into practice. Each concept will follow on from and build upon the previous one, so it is important that you carry out each activity before moving on to the next concept, in order to ensure that you are always working from the same codebase as the book. The chapters will expect you to follow the code examples, and write the same, or in some cases very similar, code in your text editor in order to put into practice what is being taught in each section. At the end of this HTML section, you will have the shell of your website built, ready to be styled using CSS in the subsequent section.
Some of the section exercises will require additional files, which can be downloaded from http://indigomelody.com/confident-web-design/files. This folder contains subfolders for each chapter, which will contain both the assets required for the exercise and an example of the desired outcome from the exercise. You should compare your code to that of the example after each section to ensure you have achieved the outcome of the activity.
02

HTML Part 1

What we will learn in this chapter

This chapter will cover the basics of understanding HTML, as well as tags, text, links, images, tables and lists.

HTML

HTML basics

Let’s first introduce HTML again in slightly more detail. We know already that HTML is the language responsible for explaining our content and webpage structure to the web browser for it to interpret and display to the end user; now let’s explore just how that works.
An HTML page is formed of many different HTML elements. Elements are represented by tags. A tag is a piece of code that we wrap around our content to describe what type of content it is; it is effectively a label for our content. We might use a tag to explain to the browser that our snippet of text is a header, or a paragraph, or even a bullet point list.
These tags are interpreted by the browser, but not displayed to the end user. They are simply used to tell the browser what the content is and therefore how to display it.

HTML tags

Let’s break down the anatomy of an HTML tag. HTML tags typically come in pairs: an opening tag and a closing tag. The first tag tells the browser where our element starts and the second tag tells it where our content ends. We call these tags the ‘opening tag’ and the ‘closing tag’, and they have slightly different syntaxes.
Table 2.1 HTML glossary
Skip table
HTML elements
The building blocks of an HTML page, it is an individual component of the HTML document, which usually houses some content of some form
Metadata
Metadata is data that describes other data
<tag>content</tag>
Let’s see some examples of how these tags are used in the wild, looking at two examples where we use tags to mark up text. We will explore this in more detail later in the chapter.
<h1>Header Text</h1>
<p>Paragraph Text</p>
You will notice how the opening tag is merely a word contained in angled brackets, while the ending tag is the same, but with a forward slash after the opening angled bracket. Tag pairs will always contain the same opening tag name as the closing tag name.
It is important to note that while most tags come in pairs, with an opening and a closing tag, sometimes tags can be just an opening tag, without the need for a closing tag. We will explore this concept later in this chapter.
Tags can also be nested within other tags; this is useful for when you want a piece of content to sit inside another piece of content. For example, you might want some text inside a box; in this case you would nest the text tag inside the tag for your box. Let’s see a syntax example below:
<tag>
<tag2>
content
</tag2>
</tag>
Tags can only ever be closed directly after the opening tag. Think of it like putting a box inside another box; you need to close the inside box before closing the outside box. These tags within tags are referred to as nested elements.
When nesting elements inside other elements, it is considered best practice to indent the nested element by one tab space. This improves readability and helps us to easily see the nesting structure, and thus deduce how the tags are nested. This helps to stop documents from becoming messy and confusing. Conveniently, Sublime Text has an inbuilt tool to auto nest our tags. When we create a new tag inside another tag, Sublime Text will automatically indent the tag for us. On top of this, we are able to highlight all of the text in a document, then head over to edit > line > reindent – this will then auto-indent the entire document. Look at how much easier the text in Figure 2.1 is to read now that we have auto-indented it.
2.1
An illustration shows an editor with a syntax.
Figure 2.1 details
The syntax reads as follows:
  1. Tag within angle brackets.
  2. Space and tag within angle brackets.
  3. Double space and tag within angle brackets.
  4. Double space content.
  5. Double space and back slash tag within in angle brackets.
  6. Space and back slash tag within angle brackets.
  7. Slash tag within angle brackets.
The first and the seventh line in the syntax has labels.
There are many different tags that can be used in our HTML document. Let’s use some now by starting our first webpage build.

Creating our website template

We will start by creating the foundation for our HTML document. Follow along with the steps below to put into practice what we are learning.
Each HTML document will start with the same tags, which simply describe your webpage as a whole to the browser. Start by installing and opening up your text editor of choice and creating a new file. Call it ‘index.html’. Inside this blank document, we will be constructing our very first webpage.
We’ll start by declaring the document type. This snippet of code is responsible for explaining to the browser what our document is and how to display it. The tag must appear only once in a document, and must appear at the very top of the page, before any other code is written.
The syntax of the code is as follows:
<!DOCTYPE html>
Nice and simple, right? This text simply tells the browser that this is an html document, and to treat it as such. This line of code isn’t actually an HTML tag, it is merely a declaration, an instruction to the web browser.
Once we have declared our file an HTML document, we can start writing our HTML code, so what b...

Indice dei contenuti