How To Draw The Laughing Emoji

Laughter is the best medicine—but how do you draw an emoji to express it? With HTML, you can express an emoji laugh with ease. It’s a cinch to create a literal laughing out loud emoji as well as a wide variety of hilarious cartoon faces that show amusement.
Rather than draw a sad face, wouldn’t it be more fun to dot your HTML page with a laughing emoji? It’s super simple! With a few lines of code, you can have a laughing emoji smiling back at you. Here’s the simple way to draw one.
First, you have to add the HTML element to your code. This is the tag for creating pictures—including emojis—in HTML. This creates a rectangular box in the space below it. By attaching the proper properties to it, you can make it display an image.
To show an image, you use the src property. In the middle of the tag type ‘src’ and set it equal to the name of the image file you’re displaying. The most common type of image file is JPEG and most browsers support it, so go ahead and use a JPEG file. For our smiley face, save the image file; we’ll call it ‘smile.jpg’.
So, our HTML element looks like this: . Now, this will get an image to show up, but you’ll need to use other attributes to modify it with width and height and set the source of the image, like this:

Next, we set these properties to make the emoji laugh. To do this, we add the ‘title’ attribute and give it a value of ‘LOL!’. This will make the emoji show up and display the title ‘LOL!’.
Your smiley face should look like this: .
Now that you’ve gotten a laugh emoji working in HTML, let’s work on getting some more emojis working on your webpage. But first, let’s look at the ways that humor works in HTML. By adjusting the size of your emojis, their colors, and the text they display, you can create an unlimited variety of funny cartoons, animals, and smiley faces.
There are two ways to adjust the size of your emojis. The first is to set the width and height attributes manually, as we did before with the tag. The second is to set a scale factor, which is a number between 0 and 1 that you multiply by the image’s width and height. A scale factor of 0.5 would make the image half its original size, while a scale factor of 1 would make the image its original size.
You can also set the color of your emojis to make them stand out more. You can do this with the ‘class’ attribute and a CSS class name. Make sure your CSS class names start with a letter or underscore to make sure they’re valid.
Finally, you can also set the text displayed by an emoji. To do this, use the ‘alt’ attribute. This needs to be a short phrase but can be whatever you like. This will show up in the hover text of the emoji, so pick something funny.
Now that you’ve gotten the basics of how to draw the laughing emoji in HTML down, let’s move on to some more advanced HTML features that you can use to create a wide variety of emojis on your webpage.
If you want to use an image from a source other than your own, like from a website or a service like Google Images, you can use the ‘srcset’ attribute. This lets you specify multiple sources for the same image so it can dynamically choose the best one for the device or browser it’s being viewed on. It is especially helpful when you’re dealing with devices with different screen sizes, like phones and tablets.
You can also add animations to make your emojis more dynamic and engaging. You can do this with the ‘animation’ attribute and a valid animation name. This will add a smooth transition of the image between states. For example, you could create a laughing emoji that changes size to look like it’s laughing harder and harder.
Finally, you can also use the ‘style’ attribute to add extra CSS to your HTML. This is a good way to make subtle changes to your emojis without having to create separate classes for them. For example, you could create an emoji that is slightly tilted or even put a funny hat on it.
At this point, you should have a good understanding of how to draw the laughing emoji in HTML. To sum it up, you’ll need the tag, the src attribute to set the image source, the width and height attributes to set the size, the ‘title’ attribute to display hover text, the ‘class’ attribute to set a color, the ‘alt’ attribute to set the alt text, the ‘srcset’ attribute to set multiple sources, the ‘animation’ attribute to animate the image, and the ‘style’ attribute to add extra CSS. With these tools, you’re ready to create a wide variety of hilarious cartoon faces that show amusement. So, go ahead and make the web a funnier place with HTML!

Julia is an artist and musician, who grew up in a small town in Ohio, where she played in local bands and painted murals in free time. She moved to NY City to study art at the prestigious Pratt Institute, and then relocated to LA to pursue a music career. Julia loves sharing the knowledge she gathered during the years with others.

Leave a Comment