![]() ![]() ![]() So that's what this SRC is, right? It's just saying here's the picture I want you to put here. You can't just say please give me a picture, right? Asking the Internet for a picture probably is not going to end well, so you wanna define the picture yourself. Now in order for an image tag to work you have to tell the browser this is the picture I want you to use, right? If you want to maybe at the end of the class, we'll show you how but it's not intuitive. You're not gonna put something inside of the image or rather you can't. This is what this is, right? Okay, so down here, I have the IMG which is an image tag as you might imagine, an image tag is just like it's a tag that I'm gonna put a picture on the page, right and as you notice, it is a self closing tag, right? I'd recommend at least until you really understand about development, just putting it there, it's really just kind of an useful indicator to yourself. You'll see it quite often, you'll also see this, both of them are valid. Any more you actually don't even have to put that slash, this is actually valid as well and it's just a tag that just never closes. Again, it doesn't make any sense to put anything inside of there, right? You can't put a paragraph in here, you can't put a div in here, it's just a tag that exists by itself and so what they have done is they have just made this a self closing tag. So the input is this thing right here, right and you can type things in it, okay. So ignore the image for right now, okay? We're just gonna talk about the input up here. So, here I have two different self closing tags. > Brian Holt: You'll find that we have a lot of cat pictures in this workshop. > Brian Holt: I have an example right here. It means that this is a tag that is self contained, that needs no closing tag, it closes itself. So instead of being contrived and just doing input/input, they said let's just save four keystrokes and we'll have like a trailing slash at the end, right? So that's what this trailing slash right there means. You're not going to have a paragraph inside of your input. So you would never have anything inside of an input and the fact of the matter is you can't have anything inside those input. Those are input elements, it's something that the user can click on and then start typing into. You know when you're filling out a form and they have a little piece of something that you can fill out, it says enter your name, enter your last name, enter your address. ![]() > Male Student 1: Going back to the m and strong tags, I was just wondering, can you override that with CSS? There are some elements that doesn't really make sense on, because they're kind of like, they would never encompass something else. So if you notice for every div I have, there's a closing div, right, the slash div. That's what void tags or self closing tags mean. > Brian Holt: Void tags or self closing tags are essentially tags that do not need a closing tag. The Custom Post Type is 'professional'.Transcript from the "HTML Tags - Void Tags" Lesson Here is my function.php code to insert the form Once the form is submitted all fields are created except the tags. I am now changing it so I can upload info for a Custom Post Type. I created a front end form to upload a new post on a website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |