Learn HTML! Let's learn how to program!

in #steemit8 years ago (edited)

Hello, my fiends! In my previous lesson, I talk about Internet and crucial technologies, you have to learn, to become a Web developer. If we look at our plan, first thing to learn is HTML, so let's begin!

<p dir="auto"><strong>HTML or Hyper Text Markup Language is programing language which defines a structure of your web page. It gives a meaning to your data and make your web application more <strong>Search engine friendly. Building blocks of HTML are <strong>tags. Different tags give different meaning to your data. To use tags, you just have to put your data/text inside them. <p dir="auto">Let's start making our first web page! <p dir="auto">First step is to open Sublime Text editor (<a href="https://www.sublimetext.com" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">download link) or an editor of your choice. Now, crate new file and call it index.html. It is important to put <strong>.html on the end so your computer could know you are making a web page. Next, go to bottom of your editor (if you are using Sublime) and change setting, where it says Plain Text, to HTML. In some editors, it will be changed automatically, when you save your file as index<strong>.html. <p dir="auto">Every HTML needs to be declared, to work perfectly. That is done by typing this on the first line of code. <p dir="auto"><code> <! DOCTYPE html >  <p dir="auto">HTML tags are build like this: <code>< name of tag > . This is opening tag. It mean that everything from that point will have meaning of that tag. To close it, you will need a closing tag: <code></ name of tag >. Know everything from this point will not be influenced by that tag. Example: <p dir="auto"><code>< p > This is a heading.  <p dir="auto"><code>This is paragraph. </ p > <p dir="auto">Both sentences will be seen as paragraph, because<code> < p > is tag for paragraphs. If you want Internet browser to see our first sentence as heading, we will need to use heading tag. There are six different heading tags. First one is <code>< h1 > and it is reserved for main heading. There are also <code>< h2 > < h3 > < h4 >... First tag will make your text the biggest and every other will be smaller, but still bigger that paragraph. Let's make our first sentence a heading. <p dir="auto"><code>< h1 > This is a heading. </ h1 > <p dir="auto"><code>< p > This is paragraph. </ p > <p dir="auto">Now, we have one heading (first sentence) and one paragraph (second sentence). If we put our sentence like this: <p dir="auto"><code>< p > < h1 > This is a heading. </ h1 > </ p > <p dir="auto">It will be heading and a paragraph, but when you start styling it, closer tag to text has a priority (it will be all clear when we start learning <strong>CSS). You can not put your tags like this: <p dir="auto"><code><del>< p > < h1 > This is a heading. </ p > </ h1 > <p dir="auto">Tags can contain one another, but can not be mixed like the example above. <p dir="auto">Every html page, must have one core tag, which is <code>< html > </ html >. Everything you want to put on that page, MUST be inside that tag!  <p dir="auto"><code>< html > tag must have two parts, head and body part. Both of them are tags. <p dir="auto">This is an example of proper structured html file: <p dir="auto"><code>< html > <p dir="auto"><code>< head > <p dir="auto"><code></ head > <p dir="auto"><code>< body > <p dir="auto"><code></ body > <p dir="auto"><code></ html > <p dir="auto">Important thing is, to know what to put inside head and what to put inside body tag. You will put in <strong>body tag, everything witch will be on your web page. All paragraph, headings, images, links... go to body tag. In <strong>head tag goes links to CSS and JavaScript files (we will learn more about this), links to online fonts and more Browser friendly informations, which are not visible to user, but very important (we will go trough them, but now is not the time).  <p dir="auto">Here is an example: <p dir="auto"><code>< head > <p dir="auto"><code>< title > My page </ title > <p dir="auto"><code></ head > <p dir="auto">This title will not be shown on the page, but in the tab of users browser. It is not an element of your page, but information about it. For things like that, we use head tag. <p dir="auto">I will not bother you with head tag anymore, for know.  <p dir="auto">I will give you some text formatting tags, so you could experiment with them. Just, put them all in body tag, put text inside them and open your html file with your browser, to se how they look. Here are text tags: <ul> <li><code>< b > - Bold text <li><code>< strong > - Important text <li><code>< i > - Italic text <li><code>< em > - Emphasized text <li><code>< mark > - Marked text <li><code>< small > - Small text <li><code>< del > - Deleted text <li><code>< ins > - Inserted text <li><code>< sub > - Subscript text <li><code>< sup > - Superscript text <p dir="auto">Let's talk about <strong>link tags. Before we start using link tags, we must know what are <strong>attributes. Attributes are subelements of the tags and are used to give necessary or additional informations. They are located in an opening tag, just between the name and symbol >. Link tag or <strong>a tag, uses attribute <strong>href, which value represents a url, where that link leads us. Let see an example: <p dir="auto"><code>< a href = "google.com" > my link </ a > <p dir="auto">Text, inside the tag a, will be blue text, where we can click and it will lead us to google.com. You can put whatever text, you want and whatever link you want. Image could be a link to. You just have to put image, aside a tag and whenever a user click on it, it will lead them to specified url. It is that simple.  <p dir="auto">I mentioned images, so next set is to lean image tag. It is important to know, that there are two kind of tags. There are <strong>container tags and <strong>self-closing tags. Container tags are all tags above. You need to open them, put text inside them and close them. Self-closing tags have only one part. Let see some example: <p dir="auto"><code></br> <p dir="auto">This tag will put everything after it, in a new line. <p dir="auto"><code>< p > This is </br> paragraph. </ p > <p dir="auto">If we put it after "is", the word "paragraph" will go into new line, like this: <p dir="auto"><code>This is <p dir="auto"><code>paragraph. <p dir="auto">Know when we understand what are self-closing tags, we can learn image tag. For images we use <strong>img tag and it is self-closing. Img tag needs an attribute <strong>src, which value represents a path to the image, like to put on our page.  <p dir="auto"><code>< img src = "here goes the url to image" > <p dir="auto">This will display a image on our page.  <p dir="auto"><code>< a href = "google.com" > < img src = "here goes the url to image" > </ a > <p dir="auto">Now, if we click on our picture, it will lead us to google.com.  <p dir="auto">There are two types of lists. Ordered and unordered lists. Both are container tags. For ordered we use <strong>ol and for unordered <strong>ul. Inside these tags, we put elements of our lists. These elements need to be waged with <strong>li. Example: <p dir="auto"><code>< ul > <p dir="auto"><code>< li > Element 1 </ li > <p dir="auto"><code>< li > Element 2 </ li > <p dir="auto"><code>< li > Element 3 </ li > <p dir="auto"><code></ ul > <p dir="auto">ul and ol will just say the type of list, but we need li's for lists elements. <p dir="auto">We will use lists in next lessons, so don't worry if everything is not clear. <p dir="auto">Now, how to make a <strong>table? <p dir="auto">it is simple, we use <strong>table tag! Inside a table tag, we but tags for rows and cells. For rows, we use <strong>tr tag. it depends, how many tr tags we put inside table tag, that many rows, our table will has. Now, inside tr tag, we put <strong>th or <strong>td tags, which represents the values of cells in that specific row. th is for first row, where every column is explained and td is for every other row. See the example and everything will be clear: <p dir="auto"><code>< table > <p dir="auto"><code>< tr > <p dir="auto"><code>< th > <p dir="auto"><code>Number <p dir="auto"><code></ th > <p dir="auto"><code>< th > <p dir="auto"><code>Name <p dir="auto"><code></ th > <p dir="auto"><code>< th > <p dir="auto"><code>City <p dir="auto"><code></ th > <p dir="auto"><code></ tr > <p dir="auto"><code>< tr > <p dir="auto"><code>< td > <p dir="auto"><code>1 <p dir="auto"><code></ td > <p dir="auto"><code>< td > <p dir="auto"><code>Philip <p dir="auto"><code></ td > <p dir="auto"><code>< td > <p dir="auto"><code>Belgrade <p dir="auto"><code></ td > <p dir="auto"><code></ tr > <p dir="auto"><code>< tr > <p dir="auto"><code>< td > <p dir="auto"><code>2 <p dir="auto"><code></ td > <p dir="auto"><code>< td > <p dir="auto"><code>Susan <p dir="auto"><code></ td > <p dir="auto"><code>< td > <p dir="auto"><code>New York <p dir="auto"><code></ td > <p dir="auto"><code></ tr > <p dir="auto"><code></ table > <p dir="auto">That is it for today. I hope that I help you my fiends. If you missed my first lesson <a href="https://steemit.com/steemit/@genijex/how-to-build-a-website-what-is-internet-learn-programming-now" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">here it is. In my next lesson, we will start with CSS more advanced HTML. Soon, we will be able to create beautiful web pages! Have a nice day and thanks for reading!!! <p dir="auto"><br /> <img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmfVsAJ4EBWhdxyk6AVkGg6diC6TRaQUnAWTiydi2ih78i/gen.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmfVsAJ4EBWhdxyk6AVkGg6diC6TRaQUnAWTiydi2ih78i/gen.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmfVsAJ4EBWhdxyk6AVkGg6diC6TRaQUnAWTiydi2ih78i/gen.png 2x" />
Sort:  

Great work @genijex, please make a list of your tutorial pages at the end of your future tutorials. Follow, upvote and resteem of course.

Thank you for your suggestions! :D

You're always welcome @genijex

Very well done @genijex, looking forward for your tutorials 😊

Thank you very much for your support! :D

Ah neat, good to see more programming content on here :) Keep it up :)

There will be a much more programing tutorials! Have a nice day! :)

Useful post! Thanks buddy!

Thank you for your support! :)

Thanks, learning something new :)

Thank you friend! :)

cool! Followed!

Thanks :)

Nice idea! I'd like to see what a command does,.. So how the outcome looks if I use this command... H1 for example.. I know what it does, but I don't know every command you mentioned.. Thank you, looking forward for more

Just, follow me and you will se very advanced HTML commands (tags)! We will create our own web page from scratch! :D

What is your steemit.chat? or can you join the discord server here, i am also @surpassinggoogle on there!

My username on steemit chat is @genijex. :)