Git can be understood like a time machine in your machine, since you create the first version of an project it will save every modification you make (as long as you type the commands to do so). Letting you go back in time in time to every single point you save a modification, so, if you made a mistake or erased everything, there is no need to worry, you just go back and restore the latest version. Git will also let you work on many different devices creating clones or copies, as long as you have it installed, and connection to the internet. So it can also be seen as a file manager.
Git itself is a program like a game or whatsapp. With its own cloud on the internet.
Once installed git, we will communicate with it in the “git dash”. Git command will be typed here just like:
We will need only three things to create a clone of our project, open the folder to save the files, the git clone (link) command, and a link to the project route. These link will be in our gitlab profile (website), just click on the blue button (code) and select the “https” link. Paste it on the git clone (link) command and press enter.
The way of telling the websites what to do is with the HTML language, it works with "tags" which divides the information depending on the type of tag, Most of the time these tags have a specific structure, An opener tag and a closer tag. Each tag can or have to cantain more tags.
Some of the more commons tags are:
This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph This is a paragraph
This a column name (td), inside a tr inside a thead tags. |
This is another column name (td) |
And this is th last one (td) |
This an element (td), inside a tr inside a tbody tags, corresponding to the first name. | This is another element, corresponding to the second column, in the same row | And this is the last one |
This is an element (td) contained in the second (tr), contained in thead tags, corresponding to the first column. | This is another element corresponding to the second row, second column. | And this is the las one. |
br | Makes a line jump on the website text, you have to put it exactly where you want the line jump. and the way of writing it is the same as the hr tag, just the opening one. |
At the end of these phrase will be a br tag
and the text continuous here, even though in the code is the same line.
Now we know HTML is the way of organizing and showing information trough a website, This language works with specifics tags, with specifics names, each tag can have others tags inside, some other are just a part of the tag and with this the bases to create your first web site are done.
How ever that's not all, just knowing what we know now is not enough to create something like the pages we go through every day, with the colors, animations, sections, buttons, and those kind of details. To get closer to something like that we must know that there are specific properties we can add to our tags.
These properties can be, a name, a class, a color, a size, a with, a height, a font size, a reference, a instruction, some borders, and even a language. Among many other specifications.
This might sound confusing but actually is the complete apposite, because this instructions do as the name says so, most of the time. In this part I will be showing and explaining some of the most common, and used in this page, specifications.
This specifications will always be written
id="name"
As you can see "id" gives a name to a tag, this name is specific and unique, that means you can not repeat the name again in the code. That allows you to make a reference to that specific element of the code, or give it special esthetic modifications
class="name"
This one creates (as the name says) a class, is almost the same as id, because it also gives a name to the tags, the difference is that you do can put the same class to different tags in the code, even of they are not consecutive. That allows you to, for example, give the same esthetic modifications to the section
href="location of the reference"
href the command to call to the code a link, a document, a part f the code, another code, etc (except for images, they have it's own tag). This property usually goes inside the "a" tag, these is like the hidden and
target="specific command"
Target tells the website what to do when clicking on a linked text (a tag). The default option of the tag is to open the link in the same tab. However targets gives many other options, the most common is _bank which opens the link on a new tab, leaving the original page open.
src="location of the element"
Let you call a image to insert it on the website, it can be a link fro the internet or a local direction. The link just by pasting it between the "", and te direction works with /the name of the carpet/other name , and on until you reach the desire file. In case you need to go back in folders you can write .../name/name and so on. This usually goes on the img tag.
download
This one as the name says it will download the linked image, file, etc, instead of opening it.
height="number of he value + the units"
wight="number of the value + the units"
These specifications (as the name says it) are to change the height and wight of some element in the website, the value has to be written numerically (1, 30, 150) and the unit can depend on what you want, it can be mm, cm, px (pixels), % (percentage), in, etc.
NOTE, % means the element will occupy, the assigned percentage of the total space in the screen.
If you specify both scales, in case of images, the image will be deformed to the desired scale, how ever, if you write just one scale, the other one will automatically adjust to keep the image proportion and the specified scale.
color="name, rgb, hex"
As the name says it, this will apply a color to the desire section. This tag works with 3 possible ways of indicating the color, the name it self, the rgb code or the hexadecimal code.
NOTE, this last colored section can be easily replaced by css code. CSS code is a complementary HTML language that allows you specially give the website a esthetic view, as it is another language you have to create a new CSS file, which you will call to your HTML code to introduce the styles. And with help of the "tags" you can call them to modify their esthetics. The calling can be with general tags (head, body, div, h1, p, table, etc) and it will modify EVERY tag with the name you write, if you want to modify specifics sections, yu can use the class or id subtags.
Resuming what's up in the page, HTML is the most common and basic way of telling a computer how to organize and show information trough the internet. Now HTML just shows the information in it's pure way, white background, black letters, images, links, etc. Everything on the left side of the page and element above other element. that's a little boring, that's why there CSS, this is another website language that makes easy to give the information color, figures, positions, borders, and almost anything to make your website look nice. Now, as I said a few letters away, you need a HTML base to put the information you wan't to show, the way of doing it is by "tags", a starting tag for calling all the important information you will be using on the website like the language, the CSS style sheet, the title of the website, the general size of the website and many other things. Once you declare those important things (on the head tag) you can go ahead with the general information. (body tag) It is important to mention that the order in which you write the code will be the same order the information will be shown on the website. With that said, if you want a navbar, that's the first "tag" yu have to write and set it up, if right above it you want the main title to appear, that's the second tag you have to write, and so on. With the basis things we have seen here you can make a lot of things with the information, is just matter of logic, and knowing how it works. Fo example, you can make an image to be hyperlinked to another part of your website, and stuff like that. And of course there is a tag to write all the small letters (literally). This is just the creating part, the publishing and licensing part is another thing to other day.
Some valuable learning: Now I understand why many people use templates to create a nice web site, I decided I wanted to make it look bellyfull by myself and type Everything but that takes a lot of time and is very, extremely tedious so I started considering the idea of using a template. Number 2: every