HTML Drupal Tutorial 3: How to Embed Images

This is the third in a series of tutorials I’ll be writing on using the Drupal HTML text editor to format web content.

The first tutorial covered:

  • Visual vs. text editors
  • Making paragraphs
  • Bolding text
  • Italicizing text
  • Underlining text

The second tutorial covered:

  • Creating headers
  • Paragraph alignment
  • Creating hyperlinks
  • Making numbered and bulleted lists

In this tutorial, I’ll cover how to embed images in your Drupal content.

Why Visuals?

I’ve already talked about ways to improve your post’s written content visually, but the most impactful way to captivate readers is to include images or videos in your content. Sites like Buzzfeed have capitalized on the trend of incorporating visually stimulating material to increase readership and ad revenue. Since this trend isn’t going away any time soon, it’s wise to start incorporating it into your site’s content, too.

Getting Started

image 1

Image by Mat Lucas •

Embedding pictures using Drupal is super simple, requiring only one caret (instead of the usual opening and closing carets). Take a look at the image below:

image 2

To embed your desired image, first replace the “URL” in the image with the link to the image you want to embed. For example, if I want to embed the image found at this URL  (h/t Matthew DiVito), my caret element will look like this:

image 3

Including Alternate Text

You should also include alternate text in your caret element. This text will appear if the image doesn’t load for some reason.

image 4

You’ll end up with something that looks like this:

image 5

Playing with Size

HTML also lets you play around with the size of the images you use. You can alter the height and width attributes of the image in two ways:

  1. using specific pixels; or
  2. specifying percentages

If you want to play around with the image’s size using pixels, your HTML caret will look like this:

image 6

For percentages, your HTML caret will look virtually the same, but instead of using the “px” suffix, you’ll use the “%” symbol:

image 7

Playing around with your image’s aspect ratio using HTML carets won’t automatically resize the image itself — only how it displays on your page. Since larger images can increase page load time, it’s worthwhile to resize the actual image instead of only altering its height and width attributes in HTML.

Giving Credit

If you didn’t buy the image you’re using or didn’t create it yourself, remember to give credit to the person who created it. It’s good manners, good Internet etiquette, and the proper thing to do.

What would the Dowager Countess do?

What would the Dowager Countess do?

Check back soon for the fourth HTML Drupal tutorial in this series, where I’ll cover how to use different font typefaces in your posts.

You may also like


  • CpkiwMalay August 21, 2017  

    Attempting to find the perfect gift for a 21 year old these days, the impact individuals celebrity culture has brought the latest market for the perfect coming-of-age present. Trends come and go, certainly, but what you may hold bought as 21st birthday gifts a generation ago almost certainly would not be welcomed these days. And I blame Katie Price. Just let me say. If you’ve paid focus to handbags collections recently, you’ve noticed that bows have created a comeback. I’ve seen bows done poorly. This particular bows done beautifully. Although it’s front and center, the bow seems subtle compared into the lush color and beautiful shape. As you’d expect, the Versace 360 Handbag is built from the finest supple nappa leather featuring a full satin stomach lining. And while I’m an excellent fan of hobos usually, this shape is absolutely stunning. High-quality piece jogs my memory of a smart evening gown and its simplicity equals sophisitication.Mulberry Bags Is Needed Women In Daily Life The designer handbag between the one in the most internationally recognized items by women right now. The label with the designers name along the new intricate and innovative designs is exactly what the women desire. It’s the designer bag that gives an outfit that overall finishing feeling. The fashion week kept in New York present creations from designers on a year by year basis. At the latest one everything from accessories to clothing was displayed. However, amongst all of the items have been shown, ensure thing that grabbed a persons vision of most women was the designer handbag, in its numerous colours and innovative designs. Had been many different totes, handbags and clutches, displayed in innovative methods. It was about 50 rice that 1st coach outlet store established. The first stores success prompted many more store emptiness. At this point, you locate a coach outlet store in most major countries including The japanese. Coach outlet stores are traded as a public company. Their main office is tucked within New York City. .

  • GuvidSmult September 2, 2017  

    Керамзитобетонные блоки

    Один из наиболее перспективных стройматериалов сегодня – это керамзитобетонные блоки (ещё их называют керамзитные блоки), которым удалось полностью преобразовать стандартные понятия о строительстве и материаловедении. Этот лёгкий Керамзитобетонные блоки пористый материал обладает высочайшими прочностными характеристиками, при этом совмещая в себе достоинства древесины и натурального камня.


    Характеристики керамзитобетонных блоков в плане экономичности использования и скорости возведения стройобъектов из них превосходят большинство современных стройматериалов. Удобные для проведения монтажа форма и крупные размеры Керамзитобетонные блоки керамзитных блоков заметно сокращают сроки постройки сооружений различных категорий, ощутимо минимизируют бюджет перепланировки или нового строительства.

Leave a comment

B2B Content Marketing: A How-To Guide

Please provide your business email and we will send you this ebook.