So to fix the learn about the DOM, sometimes we read 30 pages about without understand so why we need? But we need. And think that DOM is in HTML but isn't used in the HTML but in the JavaScript. HTML is the write information and JavaScript is the script so you use if you want to something happens and not only show a text, what helped me understand the DOM, is that I had learn JS and without DOM the only thing we could use is a pop-up window that open and ask and answer or write something in the screen, but got an answer from the user only by the pop-up, so I only started to make the user write in the screen and not in the pop-up I had to started to learn the DOM, the DOM is that see all that have in your program like an element, also because is, and with the JS make a box receive a information and that we put in our script and make an interation with that information, so the DOM is to JS could acess your HTML content, when I was in School the right way to write a code for the internet is, first the HTML the information that you want to present, after the CSS the style that you want that your info will be present, we are making an apresetation, half of the show is the act, and the JavaScript is the script of a page that do something, maybe your page onload says the hours of the day or say the day and month, so the sequency is when I sutdied for the first time 1st you do - content, 2nd you do - style, 3rd - you do the dynamic. Also because you need a text or the empty spaces to paint and will animate the robot after give words for it and make it appear shine, really you need a text to stilize and if you don't have do the stilized content what you gonna script? When you script the script have to match the content (the DOOOOM), so is easier do the content and scripted after. We learn HTML till there we don't need DOM to learn and work with pure HTML, after we learn the CSS and till that moment we don't need the DOM, but when came the JavaScript we need the DOM, but DOM isn't JS but HTML, Document Object Model, so we gonna put the bridges in the HTML make the DOM to the page be interactive and dinamic, without the JS we put a button with the HTML but it doesn't work, we put a text-field and will not work, so if a button work was a script, even a stupid button have to have a script, so how to make the JS got the button that you put with HTML to make works? You gonna have to use the DOM, so the DOM exists with the sole purpose to serve the JS.
Strings that is something that of so simple will not make you don't code because you didn't understand what is, the only problem is give the importance that the subject don't have, then you will postergate your understand of the whole because of something that you don't need to undersstand to work with it, when we work with the HTML there don't have strings because the text is the sun of it, HTML even a programming language is, so text is the essence of the HTML so there the text isn't string, when we went to the CSS there isn't also a house of pray, so also there we don't have strings, there don't even have text only selectors, and rules and nothing of cheap-talk so lets continuos, so in the third house we find the place there have food and shelter and is the JS and there we have the strings, is like that the machine will work with your thoughts even don't being a thinking machine on his elementar inteligence the computer don't read but think and the string is how it read something that it doesn't read, and in the end understand and think, so this is a string how a machine with mathematical inteligence understand what it doesn't read, so the computer isn't that dumb, it read don't reading his language is boolean, is put 1 after 1 till came one billion and think that 0 is the night the opposite of day, because 'sun', 'heaven', 'yes', 'here' is 1 and 'there' and 'moon' and 'hell', 'no', 'wrong' is 0, even sum 1 plus 1 is put 1 after 1 it do that and you think that on his brain have --> +, the machine sheat you it doesn't show you that --> + and you think thanks to God have a --> + inside the computer. Rute Bezerra de Menezes Gondim
No comments:
Post a Comment