{"id":4862,"date":"2024-03-26T04:00:28","date_gmt":"2024-03-26T04:00:28","guid":{"rendered":"https:\/\/assignment.essayshark.com\/blog\/?p=4862"},"modified":"2024-04-23T07:41:06","modified_gmt":"2024-04-23T07:41:06","slug":"how-to-make-a-website-using-html-css-and-javascript","status":"publish","type":"post","link":"https:\/\/assignmentshark.com\/blog\/how-to-make-a-website-using-html-css-and-javascript\/","title":{"rendered":"How to Make a Website Using HTML CSS and JavaScript"},"content":{"rendered":"<p>To learn how to make a simple html page, we need some text editor, for example, Windows Notepad. But it is more convenient to use a special editor like Sublime Text that has syntax highlighting. And to view html page use any Internet browser. Simply open it by double-clicking.<!--more--><\/p>\n<p>So, let\u2019s create the first page. Create a new folder, call it Test. This folder will contain the files of the site. Now, in the test folder, create a file called index.html.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4864 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-1.png\" alt=\"how-to-make-a-website-using-html-css-javascript-1\" width=\"500\" height=\"175\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-1.png 592w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-1-300x105.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>This file will contain html tags that will describe the basic structure of the site. That is what we will then open in a browser to view the resulting html page. Open the index.html file in a text editor.<\/p>\n<p>Indicate the type of document using the tag <span class=\"code\">&lt;DOCTYPE!&gt;<\/span>, In this case, we use html5, so you can write just <span class=\"code\">&lt;DOCTYPE\u00a0html!&gt;<\/span> . Next, be sure there is an opening tag <span class=\"code\">&lt;html&gt;<\/span>, which tells the computer that now he will have to deal with html code. The closing tag <span class=\"code\">&lt;\/ html&gt;<\/span> will be at the end, indicating that the html code is completed. The next tag &#8211; <span class=\"code\">&lt;head&gt;<\/span> <span class=\"code\">&lt;\/head&gt;<\/span>, which in this case will have a page title that appears in the header of the browser, and in other cases, it will have a meta description, keywords, path to the css scripts and so on. d. Usually, &lt;head&gt;tag is connected with files and scripts needed for the operation of the site. As mentioned above, in the <span class=\"code\">&lt;head&gt;<\/span> tag let\u2019s write the page title like this: <span class=\"code\">&lt;title&gt; Title &lt;\/ title&gt;<\/span>. Title is written inside the <span class=\"code\">&lt;title&gt;<\/span> tag. Let&#8217;s sit back and see what we have at the moment:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4866 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-2.png\" alt=\"how-to-make-a-website-using-html-css-javascript-2\" width=\"500\" height=\"236\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-2.png 500w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-2-300x142.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Save the file and open it in a browser. There\u2019s nothing interesting there, but if we take a closer look, we can see that the title of the page is in the header of the browser.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4888 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-3.png\" alt=\"how-to-make-a-website-using-html-css-javascript-3\" width=\"600\" height=\"353\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-3.png 774w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-3-300x176.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-3-768x451.png 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Let us turn to the visible part of the page. It starts with the tag <span class=\"code\">&lt;body&gt;<\/span>, which is closed after the apparent of the end of page. This is often just before the closing <span class=\"code\">&lt;\/ html&gt;<\/span>, here\u2019s an example:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4896 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-4.png\" alt=\"how-to-make-a-website-using-html-css-javascript-4\" width=\"286\" height=\"262\" \/><\/a><\/p>\n<p>The <span class=\"code\">&lt;body&gt;<\/span> tag contains the body of the site, it displays all the visible elements such as header, content, footer and much more. We proceed to the layout of the site. Now we will use the <span class=\"code\">&lt;div&gt;<\/span> tags, that allow us to distinguis blocks and sections in html page structure. Operating with <span class=\"code\">&lt;div&gt;<\/span> tags, you can assign them with an id, which will allows better orientation in the structure of the page, and the use of cascading style sheets in future. Id tag has the following syntax: <span class=\"code\">&lt;div id = &#8216;name&#8217;&gt;<\/span> and a closing tag like this: <span class=\"code\">&lt;\/ div&gt;<\/span>.<\/p>\n<p>Our page has the simplest structure: header, content block, and footer. The header is usually placed at the top of the site and has such elements like name, logo, company address, etc. Content block displays various information; footer is the lowest part of the site, there can be a simple picture, current date or any other information. So let\u2019s add a new<br \/>\n<span class=\"code\">&lt;div&gt;<\/span> tags to the <strong>index.html<\/strong> file:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4900 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-5.png\" alt=\"how-to-make-a-website-using-html-css-javascript-5\" width=\"482\" height=\"380\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-5.png 482w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-5-300x237.png 300w\" sizes=\"auto, (max-width: 482px) 100vw, 482px\" \/><\/a><\/p>\n<p>Save the <strong>index.html<\/strong> file and look at the result:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4902 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-6.png\" alt=\"how-to-make-a-website-using-html-css-javascript-6\" width=\"432\" height=\"240\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-6.png 432w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-6-300x167.png 300w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/a><\/p>\n<p>Now let\u2019s consider the use of Cascading Style Sheets, abbreviated CSS. The main purpose is to separate the external css page design and its structure, so css will be included as a separate file.<\/p>\n<p>Create a new file called <strong>style.css<\/strong> in the Test folder.<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4904 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-7.png\" alt=\"how-to-make-a-website-using-html-css-javascript-7\" width=\"600\" height=\"121\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-7.png 828w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-7-300x61.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-7-768x155.png 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Connection of the css-file occurs in the section <span class=\"code\">&lt;head&gt; &lt;\/ head&gt;<\/span>. Just write the following between the <span class=\"code\">&lt;head&gt; tags: &lt;link rel=&#8221;stylesheet&#8221; href=&#8221;style.css&#8221;&gt;<\/span>:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4908 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-8.png\" alt=\"how-to-make-a-website-using-html-css-javascript-8\" width=\"500\" height=\"399\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-8.png 524w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-8-300x239.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>And let\u2019s fill the style.css file with styles:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4910 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-9.png\" alt=\"how-to-make-a-website-using-html-css-javascript-9\" width=\"492\" height=\"667\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-9.png 492w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-9-221x300.png 221w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/a><\/p>\n<p>CSS syntax is simple \u2013 the first is the html-tag name for which the style is described, and then directly the visual style in the braces, always with a semicolon at the end of each property. Global tags such as body, html should be written without any signs, if we describe an item that was recorded as &lt;div id = &#8216;&#8230;&#8217;&gt;, it will be the octothorpe (#) at the beginning, if &lt;div class = &#8216;.. . &#8216;&gt; it should be a point (.).<\/p>\n<p>Save the style.css file, refresh the page in the browser, and if everything was done correctly, you will see the following:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4912 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-10-1024x417.png\" alt=\"how-to-make-a-website-using-html-css-javascript-10\" width=\"600\" height=\"244\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-10-1024x417.png 1024w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-10-300x122.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-10-768x313.png 768w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-10.png 1875w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Of course, the page looks very simple, and its structure is primitive, but it may already be a page of a site as it has everything you need for this.<\/p>\n<p>Now, let\u2019s make a gallery based on javascript. Create a gallery.html file in the Test folder and add the link to the gallery to the Content block:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4916 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-11.png\" alt=\"how-to-make-a-website-using-html-css-javascript-11\" width=\"461\" height=\"491\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-11.png 461w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-11-282x300.png 282w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4918 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-12.png\" alt=\"how-to-make-a-website-using-html-css-javascript-12\" width=\"554\" height=\"406\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-12.png 554w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-12-300x220.png 300w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/a><\/p>\n<p>Now let\u2019s fill the gallery html with such code:<\/p>\n<p>[code language=&#8221;html&#8221;]<br \/>\n&lt;!DOCTYPE html&gt;<br \/>\n&lt;html&gt;<br \/>\n&lt;head&gt;<\/p>\n<p>&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<\/p>\n<p>&lt;title&gt;Gallery&lt;\/title&gt;<br \/>\n&lt;style type=&quot;text\/css&quot;&gt;<\/p>\n<p>&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;body&gt;<\/p>\n<p>\t&lt;div onMouseOver=&quot;btn_show()&quot; onMouseOut=&quot;btn_noshow()&quot; class=&quot;wrapper&quot;&gt;<\/p>\n<p>\t\t\t&lt;script type=&quot;text\/javascript&quot;&gt;  <\/p>\n<p>\t\t\t\t\t\t\/\/array with links to images<br \/>\n\t\t\t\tvar imageArray = [<\/p>\n<p>\t\t\t\t\t&quot;1.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;2.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;3.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;4.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;5.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;6.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;7.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;8.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;9.jpg&quot;,<br \/>\n\t\t\t\t\t&quot;10.jpg&quot;,<br \/>\n\t\t\t\t];<\/p>\n<p>\t\t\t\twindow.number = &#8216;0&#8217;;<\/p>\n<p>\t\t\t\t\t\t\t\/\/amount of pictures = length of the array<br \/>\n\t\t\t\tvar imageCount = imageArray.length;<\/p>\n<p>\t\t\t\tfunction image(num){<\/p>\n<p>\t\t\t\t\t\t\/\/if the next pic is chosen<br \/>\n\t\t\t\t\tif(num == 1){<\/p>\n<p>\t\t\t\t\t\t\t\/\/if it&#8217;s the last picture the counter won&#8217;t be increased<br \/>\n\t\t\t\t\t\tif(number &lt; imageCount &#8211; 1){<\/p>\n<p>\t\t\t\t\t\t\tnumber++;<\/p>\n<p>\t\t\t\t\t\t\tdocument.getElementById(&#8216;images&#8217;).src = imageArray[number];<br \/>\n\t\t\t\t\t\t\tdocument.getElementById(&#8216;num_img&#8217;).innerHTML= number + 1 + &#8216;\/&#8217; + imageCount;<br \/>\n\t\t\t\t\t\t}<br \/>\n\t\t\t\t\t}<br \/>\n\t\t\t\t\telse{  \/\/if the previous pic is chosen<\/p>\n<p>\t\t\t\t\t\t\t\t\/\/if it&#8217;s the first picture the counter &quot;number&quot; won&#8217;t be increased<br \/>\n\t\t\t\t\t\tif(number &gt; 0){<\/p>\n<p>\t\t\t\t\t\t\tnumber&#8211;;<br \/>\n\t\t\t\t\t\t\tdocument.getElementById(&#8216;images&#8217;).src = imageArray[number];<br \/>\n\t\t\t\t\t\t\tdocument.getElementById(&#8216;num_img&#8217;).innerHTML= number + 1 + &#8216;\/&#8217; + imageCount;<br \/>\n\t\t\t\t\t\t}<br \/>\n\t\t\t\t\t}<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\t\t\t\/\/function for showing the buttons<br \/>\n\t\t\t\tfunction btn_show(){<\/p>\n<p>\t\t\t\t\tif(number != 0) document.getElementById(&#8216;left&#8217;).style.display=&#8217;block&#8217;;<br \/>\n\t\t\t\t\tif(number != imageCount &#8211; 1) document.getElementById(&#8216;right&#8217;).style.display=&#8217;block&#8217;;<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\t\t\t\/\/dunction that stops the showing of the buttons<br \/>\n\t\t\t\tfunction btn_noshow(){<\/p>\n<p>\t\t\t\t\tdocument.getElementById(&#8216;left&#8217;).style.display=&#8217;none&#8217;;<br \/>\n\t\t\t\t\tdocument.getElementById(&#8216;right&#8217;).style.display=&#8217;none&#8217;;<br \/>\n\t\t\t\t}<\/p>\n<p>\t\t\t\t\t\/\/output images<br \/>\n\t\t\t\tdocument.write(&#8216;&lt;img id=&quot;images&quot; src=&quot;&#8217; + imageArray[0] + &#8216;&quot;&gt;&#8217;);<br \/>\n\t\t\t&lt;\/script&gt;<\/p>\n<p>\t\t\t\t\t\t&lt;!&#8211; left button &#8211;&gt;<br \/>\n\t\t&lt;div id=&quot;left&quot; onclick=&quot;image(0)&quot; class=&quot;left_right&quot;&gt;&lt;img src=&quot;left.png&quot;&gt;&lt;\/div&gt;<\/p>\n<p>\t\t\t\t\t\t&lt;!&#8211; right button &#8211;&gt;<br \/>\n\t\t&lt;div id=&quot;right&quot; onclick=&quot;image(1)&quot; class=&quot;left_right&quot; style=&quot;margin-left: 534px; position: absolute; display: none;&quot;&gt;&lt;img src=&quot;right.png&quot;&gt;&lt;\/div&gt;<\/p>\n<p>\t&lt;\/div&gt;<\/p>\n<p>\t&lt;center&gt;&lt;p style=&quot;font-size: 18px;color: #333;font-weight: bold;&quot; id=&quot;num_img&quot;&gt;&lt;\/p&gt;&lt;\/center&gt;<\/p>\n<p>\t&lt;center&gt;&lt;span class=&quot;myButton&quot; onclick=&quot;image(0)&quot;&gt;Back&lt;\/span&gt; &lt;span class=&quot;myButton&quot;  onclick=&quot;image(1)&quot;&gt;Next&lt;\/span&gt;&lt;\/center&gt;<\/p>\n<p>&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/p>\n<p>[\/code]<\/p>\n<p>And add such code to style.css<\/p>\n<p>[code language=&#8221;css&#8221;]<br \/>\n.myButton {<br \/>\n-moz-box-shadow:inset 0px 1px 0px 0px #54a3f7;<br \/>\n-webkit-box-shadow:inset 0px 1px 0px 0px #54a3f7;<br \/>\nbox-shadow:inset 0px 1px 0px 0px #54a3f7;<br \/>\nbackground:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #007dc1), color-stop(1, #0061a7));<br \/>\nbackground:-moz-linear-gradient(top, #007dc1 5%, #0061a7 100%);<br \/>\nbackground:-webkit-linear-gradient(top, #007dc1 5%, #0061a7 100%);<br \/>\nbackground:-o-linear-gradient(top, #007dc1 5%, #0061a7 100%);<br \/>\nbackground:-ms-linear-gradient(top, #007dc1 5%, #0061a7 100%);<br \/>\nbackground:linear-gradient(to bottom, #007dc1 5%, #0061a7 100%);<br \/>\nfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=&#8217;#007dc1&#8242;, endColorstr=&#8217;#0061a7&#8242;,GradientType=0);<br \/>\nbackground-color:#007dc1;<br \/>\n-moz-border-radius:3px;<br \/>\n-webkit-border-radius:3px;<br \/>\nborder-radius:3px;<br \/>\nborder:1px solid #124d77;<br \/>\ndisplay:inline-block;<br \/>\ncursor:pointer;<br \/>\ncolor:#ffffff;<br \/>\nfont-family:arial;<br \/>\nfont-size:13px;<br \/>\npadding:6px 24px;<br \/>\ntext-decoration:none;<br \/>\ntext-shadow:0px 1px 0px #154682;<br \/>\n}<\/p>\n<p>.myButton:hover {<br \/>\n\tbackground:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0061a7), color-stop(1, #007dc1));<br \/>\n\tbackground:-moz-linear-gradient(top, #0061a7 5%, #007dc1 100%);<br \/>\n\tbackground:-webkit-linear-gradient(top, #0061a7 5%, #007dc1 100%);<br \/>\n\tbackground:-o-linear-gradient(top, #0061a7 5%, #007dc1 100%);<br \/>\n\tbackground:-ms-linear-gradient(top, #0061a7 5%, #007dc1 100%);<br \/>\n\tbackground:linear-gradient(to bottom, #0061a7 5%, #007dc1 100%);<br \/>\n\tfilter:progid:DXImageTransform.Microsoft.gradient(startColorstr=&#8217;#0061a7&#8242;, endColorstr=&#8217;#007dc1&#8242;,GradientType=0);<br \/>\n\tbackground-color:#0061a7;<br \/>\n}<\/p>\n<p>.myButton:active {<br \/>\n\tposition:relative;<br \/>\n\ttop:1px;<br \/>\n}<\/p>\n<p>.wrapper{<br \/>\n\twidth: 640px;<br \/>\n\theight: 480px;<br \/>\n\tmargin: 10px auto;<br \/>\n\t}<\/p>\n<p>.left_right{<br \/>\n\tposition: absolute;<br \/>\n\tdisplay: none;<br \/>\n\tcursor: pointer;<br \/>\n\tmargin: -288px 0 0 10px;<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>Now try to follow the gallery link:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4928 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-13.png\" alt=\"how-to-make-a-website-using-html-css-javascript-13\" width=\"162\" height=\"167\" \/><\/a><\/p>\n<p>Here\u2019s what you should see:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4934 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-14-1024x561.png\" alt=\"how-to-make-a-website-using-html-css-javascript-14\" width=\"600\" height=\"329\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-14-1024x561.png 1024w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-14-300x164.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-14-768x421.png 768w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/10\/How-to-make-a-website-using-html-css-javascript-14.png 1875w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The customer can click buttons to flip the image. Now let\u2019s take a closer look at the code:<\/p>\n<p>imageArray \u2013 array that contains links to images. To add, remove, reorder, and so on and so forth, it is sufficient to change the array.<\/p>\n<p>number \u2013 a variable that is responsible for the number of the current image.<\/p>\n<p>image (num) \u2013 function that takes a numeric parameter, and is responsible for flipping images (left, right), that is:<\/p>\n<p>image (1) &#8211; display the next picture due to increment (increase by one) variable number<\/p>\n<p>If you pass any other parameter other than 1, the previous picture will appear.<\/p>\n<p>btn_show &#8211; function that shows the arrow when you hover over an image &#8211; an event onMouseOver.<\/p>\n<p>btn_noshow &#8211; function that stops the display of pictures and called event onMouseOut, when we remove the mouse from the picture area.<\/p>\n<p>Also, in two (2) aforementioned functions, before the screening of the arrows, the number of the current image is checked, in order to skip the left arrow key if it\u2019s the first image and skip the right arrow, if it is the last picture.<\/p>\n<p>There are also comments in the provided code so you can easily change some specifications of the presented gallery.<\/p>\n<p>The archive with this simple website is attached to the tutorial. Thank you for the attention!<\/p>\n<h2>JavaScript Assignments Help<\/h2>\n<blockquote><p><em>For every student, we offer sample on how to make a website using HTML CSS and JavaScript. A main idea of our example will help students to deal with their own assignments. Consider getting <a href=\"https:\/\/assignmentshark.com\/\" target=\"_blank\" rel=\"noopener\">help with assignments<\/a> from AssignmentShark.com if you don&#8217;t know what to do with your homework. <\/em><\/p>\n<p><em>Our experts are ready to offer <a href=\"https:\/\/assignmentshark.com\/javascript-homework-help.html\" target=\"_blank\" rel=\"noopener\">JavaScript online help<\/a> you with different disciplines. Use our help if you are a busy student and don&#8217;t have time to handle your homework. Place an order on our site and include your requirements with a deadline. We are available 24\/7 for your convenience. Leave your assignment problems to us and we will do everything to satisfy your academic needs.<\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>To learn how to make a simple html page, we need some text editor, for example, Windows Notepad. But it is more convenient to use a special editor like Sublime Text that has syntax highlighting. And to view html page use any Internet browser. Simply open it by double-clicking.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53,35],"tags":[],"class_list":["post-4862","post","type-post","status-publish","format-standard","hentry","category-it","category-samples"],"_links":{"self":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/4862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/comments?post=4862"}],"version-history":[{"count":40,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/4862\/revisions"}],"predecessor-version":[{"id":13247,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/4862\/revisions\/13247"}],"wp:attachment":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/media?parent=4862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/categories?post=4862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/tags?post=4862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}