What Exactly Is a Stray Bullet? Learn the Basics and Stay Safe Now

Date:

Share post:

Today, I bumped into a weird problem when I was coding. It’s about something called “stray bullet”. I’d never heard of it before, so I did some digging and tried to figure it out myself.

What Exactly Is a Stray Bullet? Learn the Basics and Stay Safe Now

What I Did to Understand It

First, I googled “what is a stray bullet”. I got some confusing explanations, mostly about databases and stuff. It’s kinda like, you got some unordered list (you know, the ones with bullet points), and somehow one bullet point just…goes off on its own. Doesn’t belong to any list item. That’s what I understood, anyway.

So, I opened up my code editor and started a new HTML file. I wanted to see this stray bullet thing in action. I just created a simple unordered list:

  • Item 1
  • Item 2
  • Item 3

Everything looked normal. No stray bullets there. I figured maybe it happens when you mess with the styling. I added some CSS, trying to remove the bullet points:

At first thought, there is noway to make a stray bullet.

I make a new html to test, then wrote

What Exactly Is a Stray Bullet? Learn the Basics and Stay Safe Now

<!DOCTYPE html>

<html>

<body>

<ul>

<li>test1</li>

What Exactly Is a Stray Bullet? Learn the Basics and Stay Safe Now

<li>test2</li>

</ul>

</body>

</html>

Then I saved it,I opened this file in *,wow, I successfully made a stray bullet!

What Exactly Is a Stray Bullet? Learn the Basics and Stay Safe Now

My “Aha!” Moment

I realized that I was wrong.I can make a stray bullet when add a bullet point before <ul>.

It’s a simple * when I copy code from somewhere,I should pay more attention to aviod this mistake.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related articles

Want to know Spains most famous woman? See the top names here!

Okay so I stumbled across this question about Spain’s most famous women while scrolling through stuff this morning....

35 and single female mindset: Change your thinking to be happier

Last Thursday night I was doomscrolling through Instagram again, feeling like absolute crap watching engagement ring ads and...

Best French Streams Alternatives to Watch Free Movies Online

Alright so here’s what went down today. My usual go-to for catching flicks kinda went belly up this...

moreshoe casual shoes stylish designs for daily outfits

My Casual Shoe Styling Experiment Today Alright, so lately I’ve been kinda tired of my same old sneakers or...