How to add check mark tick box to a HTML form

This lesson is exclusive to members

Course contents
SECTION: 4
Project 2: Bike Repair Website 6:12:48
SECTION: 6
Project 4: Bootstrap Yogurt Website 3:35:39

Questions

You need to be a member to view comments.

Join today. Cancel any time.

Sign Up

Course info

128 lessons / 17 hours 5 projects Certificate of achievement

Overview

Hi there, my name is Daniel Scott and together we’re going to learn how to build professional responsive websites. which look good on mobiles, tablets and desktop screens.

We will build 4 sites together...
  • a simple but elegant restaurant website.
  • a bike repair website. 
  • a responsive portfolio website.
  • a Bootstrap website.  

We cover everything you need to build your first website. From creating your first page through to uploading your website to the internet. We’ll use the world’s most popular (and free) web design tool called Visual Studio Code.

There are exercise files you can download and then work along with me. At the end of each video I have a downloadable version of where we are in the process so that you can compare your project with mine. This will enable you to see easily where you might have a problem.

We will delve into all the good stuff such as how to create your very own mobile burger menu from scratch learning some basic JavaScript and jQuery. 

 You will...
  • Learn how to work with responsive images and icons. and stunning full screen background images and probably one too many gradients. 
  • Learn how to create forms and to choose great fonts for your website. 
  • Learn how to work with Bootstrap 4 to easily add carousels, cards and complex looking menus. 
  • Setup a domain name with hosting so that your website is live on the internet for others to see.  

There are fun class projects for you to work on which will enable you to practice what you learn. By the end of this course you’ll have a great understanding of important web design topics like HTML5, CSS3, Flex box, Responsive design and Bootstrap.   

If that all sounds a little too fancy - don’t worry, this course is aimed at people new to web design and who have never coded before. We’ll start right at the beginning and work our way through step by step. 

Who am I? 

I’m Dan, and I’ve been building websites for about 15 years now. I am award winning instructor, and have won a MAX Master award for the last 2 years in a row at the prestigious Adobe Max conference.

Time to upgrade yourself?
Sign up for the course and let’s learn how to build responsive websites.

Course duration 16 hours 42 mins
Daniel Scott

Daniel Scott

Founder of Bring Your Own Laptop & Chief Instructor

instructor

I discovered the world of design as an art student when I stumbled upon a lab full of green & blue iMac G3’s. My initial curiosity around using the computer to create ‘art’ developed into a full-blown passion, eventually leading me to become a digital designer and founder of Bring Your Own Laptop.

Sharing and teaching are a huge part of who I am. As a certified Adobe instructor, I've had the honor of winning multiple Adobe teaching awards at their annual MAX conference. I see Bring Your Own Laptop as the supportive community I wished for when I was first starting out and intimidated by design. Through teaching, I hope to bring others along for the ride and empower my students to bring their stories, labors of love, and art into the world.
True to my Kiwi roots, I've lived in many places, and currently, I reside in Ireland with my wife and kids.

Certificates

We’re awarding certificates for this course!

Check out the How to earn your certificate video for instructions on how to earn yours and click the available certificate levels below for more information.

Downloads & Exercise files

Download Exercise Files Download Completed Files

Transcript

Okay, it's time to make a Tick box, Check Mark box, Check box, whatever you want to call it. It's this thing, and the spoiler is, it's input Check box, but there are a few extra things to do for this one, like a value, and I'll show you how to that now in this video. 

We're going to put it underneath this here, which is our Text Area box, we're going to put in our Check box. Now we're wrapping everything up in this one, just so that they break on to their own line. If you're like jumping back into this video in the future, not doing the whole course, this wrapper doesn't really do anything except break up in its own line. 

What you're really looking for is an input called Check box, there he is there. We'll give it a name, so this one's going to be, "Would you like to sign up for my email subscription?" Just the name and ID, like all the rest we've done. Often it's really just the same. One that this needs, that's not pre-filled in there, is the value, because we're going to say-- at the moment this name is the question, right? Because you need to know whether it's being checked or not, and that's the value. 

So the value in this case is going to be, "Yes, sign me up." "Sign me up." So, when I get my email from my PHP, it's going to say, there's a name called 'email sign up', and it's going to have this value, "Yes, sign me up." Cool, let's check it. Let's have a little look, there's my little Check mark. There it goes. 

So a Check mark is one of those things that really needs a label. Some of these other ones, we're going to put in place holders, to help explain it. So we don't need a label, potentially, this one does. Now the label can go before or after. It's a bit strange having the label before it, in this case. So my label, and the big thing with a label, remember, the 'for' and the ID need to match. In my case, the name and ID are the same, sorry, I copied the wrong one, but as long as these two match up they will correspond. The label for this one is "Sign up for email newsletter." Let's have a little look. Now remember, this label doesn't have to be at the beginning. It can be just afterwards, as long as-- cut, afterwards. So as long as this 'for', this is the same as the ID for the actual thing. Tickety tick. 

Last thing you can do is you can pre-tick it. So yes, you're already signed up to my email newsletter. So it is in VS code, where is it? Yes, sign me up, input type, check box. Not the label, separate that out, make it look nice. So after this end, just write 'checked'. By default, it will be checked. Save it, let's have a little look, I'm going to refresh the page. Look at that, it's already checked. I turned it off, there you go. 

All right, that is it for Check marks. There's some design stuff I want to do, like lining things up, and font sizes, but don't worry, we'll do that in a future video coming up really soon. At the moment, on to Radio Buttons. See you in the next video.
  • Powered by Marvin
  • Terms of use
  • Privacy policy
  • © Bring your Own Laptop Ltd 2024