February 10, 2009

Tackle It Tuesday - HTML Checkboxes to "Check Off" and Strikethrough for "Cross-Outs"

I've had a few people reach out to me with HTML questions in the past. One common question has been "How do you cross words out in your posts?" You know, like this? Or how do you make a check box, like this?

To answer that question, while it's a simple answer, it isn't as easy as typing the response in a blog post or comment response how that works, because of the HTML involved, you can't just simply type the symbol needed to make it work, or else it'll attempt to create HTML coding from the use of that typed symbol, and will come out blank in response. So, because of that, I decided to tackle a tutorial for those of you who'd like to learn a little useful HTML.

Since I'm beginning a new bloggy carnival called "To-Do Tuesday", I figured it would be beneficial to some, who want to use the capability to "strikethrough" their lists or "cross them off", or if they'd like to get a little crazier and "check them off" their list, to teach those of you who would want to use those tools how to do them.

You could Google it til the cows come home, but sometimes it's better to have someone you know help you, who can answer questions should one arise. And Google doesn't talk back :)

So, first, how you can "cross off" items on your to-do list: By using the following code and editting your HTML, wrapping the phrase you wish to cross out by using the word "strike" before the word/phrase and "/strike" after it, use it with the proper symbols, as shown below (items in red would be whatever you wish to write, I'm using a To-Do list as an example):

<p>My To Do List:</p>
<strike>First Item Here</strike>
<strike>Second Item Here</strike>
Third Item Here

Which will look like this:
My To Do List:

First Item Here
Second Item Here
Third Item Here
See how I wrapped "First Item Here" separate from "Second Item Here"? You can choose to combine them, if you really wanted to, or, groups that are in a row with one command of "strike" and "/strike" but I like to be sure to cross one off at a time.

Now for those who are more skilled at HTML, or, who may want to use this checkbox instead, you can use the following to create checkboxes so that you may "check off" the items off of your list (items in red you would change to be what you'd like, of course):

<p>My To Do List:</p>
<input type="checkbox"/>First Item Here <br>
<input type="checkbox"/>Second Item Here <br>
<input type="checkbox"/>Third Item Here <br>

Which creates checkboxes, like this:
My To Do List:

First Item Here
Second Item Here
Third Item Here
This will allow you to check off, at that moment, the things you've completed, but it won't be permanent for your post. So if you closed your post out, it wouldn't stay checked. It would just be temporary for you. To keep them permanently checked, you would just change the code to read checked="yes" after type="checkbox", for each item you wish to have checked off, like this:

<p>My To Do List:</p>
<input type="checkbox" checked="yes"/> First Item Here <br>
<input type="checkbox"/>Second Item Here <br>
<input type="checkbox" checked="yes"/> Third Item Here <br>

Which will look like this:
My To Do List:

First Item Here
Second Item Here
Third Item Here
Now it's your turn! Practice here and try the above (delete all the code they have in the box once you get to that site and paste what we've worked on here) , by editing the items in red to reflect what you'd like your list to be.

What is it you'd like to use these codes for? A To-Do list? A meme? Perhaps a quiz for your readers? Let me know in the comments!

*EDITED TO ADD* new way to "check off" items - copy and paste this check off symbol!! √

For more tackles, visit 5 Minutes for Mom!

If you're just visiting, and like what you've read, why not subscribe to my blog and be sure to get more :)

9 comments:

TheOrganicSister said...

Strike I knew (and love) but thanx for sharing the checkbox, especially the checked checkbox. :)

~Tara

~Sandy~ said...

Oh this is great! Thanks so much for the details too :O) Love your blog!

FromThe Creek said...

That is a great tackle! Thanks for sharing your HTML knowledge with us...I for one could use all the help I can get!

Susie said...

Great tackle!! I have been looking for this for a while!! Thanks for that:-)

Mrs. H said...

Super advice! (I've also read to just use an "s" vs. the word "strike"?)

Diane said...

You have just made my Tackle It Tuesday!

Thanks so much for this post!

Happy TT!

Diane

mnkristy said...

Thanks so much!! How cool to know how to do that.

Red said...

hi there, new reader, thanks so much for the tutorial! It's great!

Amy said...

This is so great! I am so inept about the computer these days and I can comeback to this easy -- thanks!

 
ss_blog_claim=8f51020aaeffa66de35e2664977a2fdd
Web Analytics