-->

9 April 2015

Learn Html with me | Learn how to build your own website #2

Hey guys guess who's back. Back again... Yep
So today I'm going to introduce you to Elements and Tags. This is pretty simple to begin with however as this series goes on you'll have to add more to the simple stuff. If you get what I mean.
Anyways Lets get started.
 
Elements and Tags
Tags are labels you use to mark up the beginning and end of an element. All tags begin with a less than sign < and end with a greater than sign >.
There are two types of tags you have to know. Opening and closing tags.
An opening tag looks like this <html>
A closing tag looks like this </html>
 
You label content by putting it between opening and closing tags. The only difference between a opening and closing tag is that a closing tag has a / before the element and a opening tag doesn't. You'll understand more in the example below.
 
<h5> A closing tag has a slash before the element </h5>

Will look like..
A closing tag has a slash before the element
(The element h4 is just size and look of the text- I will explain more about this later on).
There is one more thing that you need to know at this stage. Some elements open and close in the same tag. These are called empty elements and are not connected to a specific passage in the text. ie: <br/> is a line break. (New line).
 
That was pretty easy wasn't it? Stay tuned for the next part in the series tomorrow.
 

No comments:

Post a Comment

Thank you so much for the comments! I love hearing for you!