Confident Web Design
eBook - ePub

Confident Web Design

How to Design and Create Websites and Futureproof Your Career

Kenny Wood

Compartir libro
  1. English
  2. ePUB (apto para móviles)
  3. Disponible en iOS y Android
eBook - ePub

Confident Web Design

How to Design and Create Websites and Futureproof Your Career

Kenny Wood

Detalles del libro
Vista previa del libro
Índice
Citas

Información del 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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Confident Web Design un PDF/ePUB en línea?
Sí, puedes acceder a Confident Web Design de Kenny Wood en formato PDF o ePUB, así como a otros libros populares de Business y Business Skills. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Editorial
Kogan Page
Año
2020
ISBN
9781789663464
Edición
1
Categoría
Business
Categoría
Business Skills
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...

Índice