Slightly Simple HTML (Part 2)

+19

Welcome To Part 2!

The first blog seem well received, so I've decided to make another similar blog! However, this one will be a more complicated (don't worry, it's still understandable for the top 50% smartest idiots). In this next part, there will be more things you can add to your blogs and quizzes, like data tables, tooltips, better text styling, and more!

I recommend you read Part 1 before reading this blog, if you haven't already. Let's jump right into it!

Random code

HTML For Visuals

Add an Image

------------------------------

<img src="imageSrc"

------------------------------

To add an image, you have to use the <img> tag. Inside the imageLink box, you put the image's src (source code). To get the src:

Hover over any photo and double click.

From there, click 'Copy Image Adress'.

Finally, just triple click the URL to copy it, then paste into the 'imageLink' section. 

This feature is useful in several ways, especially in quizzes like these.

If you'd like to have the alt text, width, and height attributes, you can use this code:

------------------------------------------------------------------------------------

<img src="imageSrc" alt="example" width="###" height="###">

------------------------------------------------------------------------------------

This is quite self-explanatory. Width and height define the, well, width and height of your image. 'Alt' is the text that shows if the image could not be loaded for any reason.

Add a List

----------------------

<ul>

<li>insertTextHere</li>

</ul>

----------------------

Lists are very simple. They start with the <ul> tag (for bullet points) or <ol> (for numbered lists). All the list items are defined by the <li> tag, and end with the </li> tag.

 

Result

To-Do List
  • Get on JetPunk
  • Write blogs
  • Walk the pigeon
  • Eat
  • Go to bed

 

Add a Table

------------------------------

<table>

<tr>

    <th>insertTextHere</th>

</tr>
  <tr>
    <td>insertTextHere</td>

</tr>
  <tr>

<td>insertTextHere</td>

</tr>

</table>

------------------------------

If you ran this code, you'd notice that the text is arranged into neat columns, but there is no border (you have to style the table). Before that, here are what the above tags mean:

- <table> defines a table

- <tr> defines one row

- <th> defines a table header

- <td> defines a cell

To clarify, each cell you add between two <tr> tags is a new column. Closing the tag and adding a new <tr> creates a new row. Headers should be in the first row, and the <table> tag should enclose it all.

After you have all your data, you have to style the table.

-------------------------------------------------------------------------------------

<style>

table {font-family:examplefont; border-collapse: collapse;}

td, th {border: #px solid color; text-align: direction; padding: #px;}

</style>


<table>

<tr><th>insertDataHere</th><th>insertDataHere</th></tr>

<tr><td>insertDataHere</td><td>insertDataHere</td></tr>

<tr><td>insertDataHere</td><td>insertDataHere</td></tr>

</table>

-------------------------------------------------------------------------------------

Looks complicated, but not too much. The <style> tag indicates styles, and 'table' right after indicates that we're styling the table. Td and th represent the cell and header respectively. After comes the styling...all of it is in the next section!

Note: Border collapse isn't in the next section. Basically what it does is collapse the cell borders to make them look like one border instead of two, and makes the table look a lot nicer.

 

Finished Result

insertDataHereinsertDataHere
insertDataHereinsertDataHere
insertDataHereinsertDataHere

 

Using the Style Attribute

The style attribute is the most simple way to make your text look the way you want it to.

In Part 1, I did show you how to change the text color and pixel size of your text, however I've discovered a much easier way to do it. Here are a few useful things you can do:

Change Color

-----------------------------------------------------------------

<p style="color:colorname;">insertTextHere</p>

-----------------------------------------------------------------

Though not as specific down to the hex code, it's a more simple way to change the color, but still allows for good customization. In 'colorname', simply name your color and the text you've inserted will turn that color. You can find all the colors that work here.

If the color you've specified isn't on the list, then the text color will be black.

Change Font

---------------------------------------------------------------------------

<p style="font-family:examplefont;">insertTextHere</p>

---------------------------------------------------------------------------

To change the font, you use the 'font-family' property. After, add your font name, and your text will appear in that font. You can find some of the fonts you can use here.

Change Font Size

---------------------------------------------------------------------------

<p style="font-size:###%;">insertTextHere</p>

---------------------------------------------------------------------------

To change the fontsize using style, instead of entering pixels you enter a percentage. 100% is the normal size, and it will set to 100% if you enter an invalid number (you can only enter positive numbers).

Text Alignment

---------------------------------------------------------------------

<p style="text-align:direction;">insertTextHere</p>

---------------------------------------------------------------------

Insert left, center, or right and your text will align appropriately.

This does override the 'alignment' option on blogs.

Border and Padding

-------------------------------------------------------------------------------------------

<p style="border: #px solid color; padding: #px;">insertTextHere</p>

-------------------------------------------------------------------------------------------

Border

#px solid color;

Padding

padding: #px;

For the border, you have to enter the thickness (in pixels), type, and color. For the padding (the space between the text and border), you enter the pixel value.

The semicolon (;) separates the code. If you want the text to be in the 'verdana' font, green, and at 150% size, you'd add the respective code, separated by semicolons and surrounded by quotation marks, like this:

<p style="font-family:examplefont; color:green; font-size:150%;">insertTextHere</p>

Easy! Also, styling is used for more than text (think for data tables above).

Also, I should mention (well, McKenzieFam told me to mention) is that you can only italicize, underline, strikethrough, bold, and link in comments or message board posts. A little more freedom to maybe style a bit would be nice, but makes sense as it would be really easy to break (no, shatter) the page.

Practical Usage

Add a Tooltip

In case you don't know, a tooltip is that little box that appears when you hover over something.

------------------------------

<p title="exampleTooltip">insertTextHere</p>

------------------------------

This code will simply show the words in the 'insertTextHere' section. Once hovered over by the mouse, it'll show what you've entered in the 'exampleTooltip' section after a slight delay.

Useful ways to use tooltips

Hover over this text.

My name is KiloNova.

Join the SLMS today!

More Fun With Links

In part 1, I showed you how to do simple links using the <a> tag. Time to get more advanced!

Open Link in a New Tab

-------------------------------------------------------------------

<a href="link" target="_blank">insertTextHere</a>

-------------------------------------------------------------------

This is identical to the usual code. However, you add the 'target' attribute and make it equal '_blank'. Then you can add your text and link, and it will magically open in a new tab!

Link An Image

---------------------------------------------------------

<a href="link"><img src="imageSrc"></a>

---------------------------------------------------------

To link an image, you simply put the image tag in place of where the text would normally be. Then, you add your image src and URL. Done!

Link to mystery site:
logo-with-text.svg

Show Elements On Click

------------------------------------------------------------------------

<style>

summary {list-style: none;

</style>

<details>

<summary>insertTextHere</summary>insertTextHere

</details>

-----------------------------------------------------------------------

The first 'insertTextHere' is the text that you click for the hidden text to appear (with this code, it'll appear below). The second is the text that will appear (you can also put other elements in place of normal text, and style the visible text to make it look like a button!).

Result

Click for a surprise!Like the blog for a sticker!

Extra FUN!

The section you've been waiting for! Full of not the most useful (but pretty cool) HTML compatible with JetPunk.

Add a Textbox

------------------------------

<div contenteditable="true">insertTextHere</div>

------------------------------

Using this code, you can create a textbox that the user can edit (the box will only be edited for the user themselves, not everyone). The 'InsertTextHere' section is the text that will appear in the box initially.

Result:

Type here

Backwards Text

----------------------------------------------------

<bdo dir="rtl">insertTextHere</bdo>

----------------------------------------------------

Ok, completely useless. Cool party trick though, I guess.

Result:
Play KiloNova's quizzes

Outro

My skills (both blogging and coding) have greatly improved since the last blog, which is almost shameful in my opinion. If you have any recommendations for more HTML you'd like me to show, I'd be happy to make a third! I hope this is useful to you guys. Thanks for reading, and if you don't understand something, feel free to ask!

Note: While making this blog I realized you're not able to use the id attribute to scroll to a section, as well as Iframes (basically putting a webpage inside a webpage) and videos. Makes sense as they could probably be used the wrong way.

24 Comments
+1
Level 72
Jan 13, 2025
Thank you for the image html, I will be referring to this blog much to use it.

also... the mystery website lmao

+3
Level 61
Jan 13, 2025
Oopsies, must of been a slip of the mouse.
+1
Level 72
Jan 13, 2025
Quite a surprise I must say, didn't see it coming to be honest. And it ain't even a Rickroll lol
+1
Level 61
Jan 13, 2025
Get sporc-rolled! Haha
+1
Level 68
Jan 13, 2025
You little Orcsproller ahahahahaha
+1
Level 68
Jan 13, 2025
I recommend a thumbnail. Now, I'm off to actually read the blog
+1
Level 68
Jan 13, 2025
Wow, well written, and more up-to-date than the old iterations of this blog (from years ago).

I think I will be referring to this in the future

+1
Level 61
Jan 13, 2025
Who is 'him'?
+1
Level 68
Jan 13, 2025
*this
+1
Level 65
Jan 13, 2025
this blog making me remember html 🔥
+1
Level 61
Jan 14, 2025
I just got orcspeled😭😭
+2
Level 72
Jan 14, 2025
*Orcsprolled
+3
Level 61
Jan 14, 2025
*sporc-rolled
+3
Level 61
Jan 14, 2025
*sporc-rolled
+3
Level 81
Jan 14, 2025
Clicked on the mystery site link......ahhh my eyes, my eyes!!!
+2
Level 69
Jan 15, 2025
hey so that mystery website is actually a terrorist organization
+1
Level 72
Jan 15, 2025
I just laughed the hardest I've laughed in weeks thank you.
+1
Level 63
Jan 15, 2025
Of all the HTML blogs I've read, this is definitely one of the best ones. There's actually stuff here I've never heard of before! Also, it would be nice if this blog and the previous one were put in a series together.
+1
Level 61
Jan 15, 2025
Great! Will do :)
+1
Level 17
Apr 10, 2025
Type an answer redirected to another?
+1
Level 61
Apr 10, 2025
What do you mean by that?
+1
Level 62
Jun 15, 2025
I cant get the picture to work
+1
Level 61
Jun 15, 2025
Have you tried opening the image in a new tab and then copying the URL to use for the src?
+1
Level 52
Aug 24, 2025
I've done a blog about tables :)