learning to code
Published: 2023-01-17 02:48:51

so today ill explain things that I learned. functions const and other things.
let's start with functions which are the main way to create things. think of it as an ingredient for a soup it contains a lot of info and is used to move things around. the function looks like this function example () {} or example =>(){} you need to call the function to make it work which is simply writing the name of it outside of the function lines. now let's move on to the next ones const, let, and var these are spices. const is used to cement value.  let it be used everywhere in the soup it means ya can taste it even when you don't want to so use it sparingly. const and let however need to be used outside the function if you want to use it multiple times. 
let is like const but is more sparing you can do everything you need.
It's time to talk about objects which is const 
ob = "hey there" or ["t", "h", "i", "s"]  objects are like shopping carts or spice with multiple ingredients mixed. for loops as it is used to loop, you can loop using for (let i = 0; I < i++){} make sure to use it in a function.
if and else these are fairly useful they are used to set conditions in a function if I have salt put it in the soup. else is used to set a condition if the first fails like if I have salt put it in the soup else I put spices in the soup. now else if is used when if fails to use that as a condition as an example if I have salt put it in the soup if else I put basil leaf if not else I put spices in the soup.  

well now that I cleared that let us move on to HTML one of my favorites. 
so HTML is pretty much the web page great right ya can use it to make many things like tic-tac-toe or make a search page even a store though you may need to file a few forms to get that to work out. the HTML is pretty simple to set up like this 
<!DOCTYPE html> 
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta HTTP-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
</body>
</html>
the first one doctype is as it looks the type of file on the system.
next is HTML lang which will format it to the set language.
the head is full of info as it should contain the meta which is the data needed to set the site like the eyes gathering info.
the body is filled with internal like ol, ul, and other things like h1 which is usually used to make titles or div which is used as a container great to make cells in tic tac toe. ol is used to list things in an ordered list.
ul is the same as ol with the difference it is unordered. li is used to list items usually used in ol or ul. the next ones are ones I did not use so I have no easy way to describe them uniquely. dt is used to define a term in a description list. dl Defines a description list. dd Describe the term in a description list. 
Now on to ccs or Cascading Style Sheets, this is used to organize or style the HTML one of the best things to make your HTML stylish. you can make almost anything with CSS since its used styles and layout web pages. As I wrote earlier
you can style things adjust the font change the displays adjust the height width borders tho with font - size you need to use pixels since it is in a computer we use pixels to adjust the size. 
now id and class id is this symbol (#) class is this symbol (.) usually they are  used to target things and change things 
example: #cellContainer{
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: 225px;
  margin: auto;
} .
now, this is an example of my cell container used to make a tic tac toe game for fun and to test my current skill with it.
well, that's all I can say for now I'm no author.
I will work to improve my writing and my skills in programming. This is all I have to write about I bid you goodbye.

``