00:06This video will provide a summary of the main functions in JavaScript and the main tags in HTML.
00:14To do this, we create a new folder for Visual Studio on the desktop and type fan.html
00:20In the title of the web page we write tags or inputs in html
00:32In the body we write h1, h2 and h6 to headings of different levels
00:38These are the different levels of headings, so we write h1, name, close, and do the same up to h6.
01:03Let's go to the browser in Visual Studio and click on Show Preview and observe the different sizes or levels
01:10from the header
01:16The most common one we have is the P tag, which we use to define a paragraph, for example, it is written in this paragraph
01:22The text goes here and we close P
01:26The next tag is A, which we use to create links
01:30As an example, we have the A tag; here it's important to have an href, the same as the link.
01:35As an example, we have an address called example.
01:54We also have the `img` tag in HTML to add an image, which, with `scr`, is equal to the filename of
02:02the image and its extension
02:03They allow you to add an image; we close it and name the image.
02:07To define unordered lists, bulleted lists, ordered lists, numbers, and list items, we use the tags respectively
02:31ul, ol, li, so in the example we open ul and inside it we write li, or it can also be
02:38tr, to make a table, in our case it is li, within this tag we write as an example element 1,
02:44We also have the ol tag, and within it, it performs the same logic of creating a list with
02:50li
03:03The most common is the famous input field, which is used to create an input field, such as a text box, a
03:09button, etc.
03:11So in the example we have input type equal to text, and as a text box message to the user with
03:16Plashholder, we will put "enter your name"
03:47Thanks for watching the video
03:57The `from` tag defines a form for data entry; here we can write inputs, buttons, also in the form of
04:04user registration, such as names, passwords
04:07Address
04:36The famous DIT
04:37That allows a division or section in a document
04:40In the example we open DIT
04:42And within it we write a paragraph, it can be with P
04:53These are the main and most common HTML tags.
04:56Although there are more
04:58Now we're going to do the main functions in Javascript
05:01For this purpose, we created a file called fin.js
05:06We have console.log
05:08This allows us to print messages to the console
05:10Here in the example
05:12I don't print the classic Hello World
05:14But rather by taking advantage of learning in Chinese
05:16I write in Mandarin
05:17A corn
05:18Ja o ma
05:19How are you
05:39Continuing, we have alert, which displays an alert box with the specified message.
05:43Thus in the example we have an alert with a WEI message
05:47LAO XI
05:52The following function is prompt
05:54It displays a dialog box that prompts the user to enter information
05:58In the example, let name and the name is requested from the user
06:08We have the KEMFERM function
06:10It displays a dialog box with a confirmation button.
06:13The example shows a question to the user asking if they are sure about the action.
06:16With the WOU configuration message
06:19In DAI
06:19If it gives
06:20Will I wait for you, yes or no?
06:30We have the important functions to perform calculations
06:33These functions are traditional and arrow
06:35The first traditional one shows the addition action of A, B
06:39And that with LITERN shows the result
06:41The next arrow function
06:42This means the sum of A and B
06:45It implies A, plus B
06:52The setInterval function
06:54Executes a function at regular intervals
06:56In the example we have the SAI message
06:59CHIEN
07:00With an interval of 1000
07:14The setTimeout function
07:15Execute a function after a specific period of time
07:19In the example we call the function
07:21Between these we print the message to ConsolaO, AO, or
07:25With a time of 2000 milliseconds or 2 seconds
07:36The next function is ADDEVENTRISTENER
07:39That associates an event with an element
07:40And define the function that will be executed when the event occurs
07:44It is important for the use of variables with VAR in Javascript
07:47In the example we have the ID
07:49In HTML called MIBOTONIATDEVENTRISTENER
07:52That when you click
07:53It displays an alert called BUTTON CLICKED
07:57The so-called ArrayMap
07:59Or simply Array
08:00They are used to create a new array.
08:02With the results of calling a function
08:04For each element of the Array
08:06In the example with let numbers 1, 2, 3
08:09Call another function Array Duplicate
08:11That number implies a number and that multiplies by 2
08:13This is even numbers
08:15These were the most common and main functions in Javascript
08:24Everything is fine.
08:25If you found this video helpful, don't forget to subscribe!
Comentarios