logo

Extra Block Types (EBT) - New Layout Builder experienceā—

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

ā—Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

CSS Tutorial

16/04/2025, by Ivan

So, you've read a book on HTML and now you're taking the next step toward creating your own beautiful website by learning CSS. Why do you need CSS? If you've read my *First Steps in HTML*, you probably noticed how concise that guide is. I intentionally skipped many tags and attributes related to styling: italic, bold, color, shape, emphasis. I did this assuming that you won't need them.

CSS Tutorial - Lesson 1 - Including CSS Styles

16/04/2025, by Ivan

I won’t explain why CSS is needed. If you’ve opened this tutorial, it means you want to learn it. I’ll just say that CSS has powerful capabilities that allow you to build layouts of any complexity. In turn, using CSS means you'll need to stop using various HTML tag attributes like size, color, bgcolor, align, and others, which will only ā€œinterfereā€ with CSS.

CSS Tutorial - Lesson 2 - Getting Started with CSS. CSS properties background, color.

16/04/2025, by Ivan

Hello, everyone. In the previous lesson, I created two files: an HTML file and a CSS file. Here's their code:

index.html:

<html>
 <head>
  <title>CSS Tutorial</title>
  <link type="text/css" rel="stylesheet" media="all" href="style.css" />
 </head>
 <body>
  <p>Learn CSS with drupalbook.org</p>
  <p>2nd line: Learn CSS with drupalbook.org</p>
 </body>
</html>

style.css:

CSS Tutorial - Lesson 3 - Properties background-color, font-style, font-weight, text-align, text-decoration, text-transform.

16/04/2025, by Ivan

Over time, many HTML tags have been created, but with the widespread adoption of CSS, some of them should be avoided—such as <font>, <b>, <i>, and <center>. We’ll look at other ā€œdeprecatedā€ tags later. These CSS properties will help you reduce unnecessary code in your HTML and move styling into CSS files.

In the previous lesson, we explored how to add CSS properties and choose colors. In this lesson, we’ll look at some common formatting features that you may have seen in HTML before—but now we’ll do it the proper way using CSS.

CSS Tutorial - Lesson 4 - The display property. Difference between div and span.

16/04/2025, by Ivan

In previous lessons, we connected CSS via a file and wrote a bit of CSS code to see how it works. In this lesson, we’ll explore an important property: display. The display property determines how an HTML element is rendered in the document—whether it will be displayed inline like text or as a block that has its own width and height. Let's start with the basics: how tags are displayed by default. For example, a <div> is displayed as a block, while a <span> is inline like text. Let's begin with how text is displayed.

Javascript Lessons (textbook, self-study guide)

16/04/2025, by Ivan

JavaScript is one of the most popular programming languages in the world. While it may be losing some of its dominance over time, many developers still prioritize learning it.
You will need JavaScript to later study jQuery, which is itself a JavaScript framework. So before diving into jQuery, it's important to understand the basics of JavaScript.
JavaScript code is embedded directly into an HTML page using the <script></script> tags:

Javascript Lesson 1 Variables and Operations on Them

16/04/2025, by Ivan

I won't beat around the bush describing every variable type and operation—we don't need that. Our main goal is to grasp the basic syntax of JavaScript, then move on to learning jQuery, and from there you’ll be able to expand your JavaScript knowledge on your own. If you're more interested in studying JavaScript in-depth and don't care for working with this amazing framework, you should probably find a more comprehensive JavaScript textbook. But if you want to build sites in Drupal and learn jQuery afterward, then we're on the same path. So let's get started.