3. Write code that will produce the following image: (Javascript/html)
(a)
*
**
***
****
*****
(b)
*
***
*****
*******
*********
(This one is supposed to be in a pyramid shape-it just doesn't show up on this website)
|
<!DOCTYPE html> <p id="stars"></p> <script> </body> |
|
<!DOCTYPE html> <p id="stars"></p> <script> document.getElementById("stars").innerHTML = result; </body> |
3. Write code that will produce the following image: (Javascript/html) (a) * ** *** **** *****...
Write a JavaScript program that changes the HTML code that prints "Hello World" to have it say "Good Night World" . Hint: innerHTML
Write a calculator program using JavaScript in HTML in the same HTML file. (There will only be 1 HTML file containing everything that you use for this program.) *************JavaScript Functions should be written in the HTML <head> .............. </head> tag, **************** (Please be mindful of the formatting of the text of your program. Meaning that do not copy paste everything in a single line. Add clear comments for a better understanding of your program) as follows Assignment: create a form...
write an html file and a JavaScript file to show the due date of a book checked out from a library. The html file should contain necessary elements to work with the JavaScript file described as follow. The JavaScript file needs to meet the following requirements: 1. It needs to have an object called “book” that have attributes called name, title, author and price. The values of these attributes are then written to the html file using JavaScript statements. 2....
Write a two page paper (size 12, times new roman font) on how HTML, CSS, JavaScript and Java come together to form a website.
Re-Write this code In Javascript without using the .slice method. Make sure there is still a loop to show the first 5 objects in the array. function getData() { axios.get('https://jsonplaceholder.typicode.com/photos').then(resp => { //resp.data.slice(1, 5).forEach(element => { resp.data.slice(1,2).forEach(element => { $("#tasks").html($("#tasks").html() + ` <div> <img src="${element.url}" height="300" alt="${element.title}" /> <p>${element.title}</p> </div> `) }); }); }// JavaScript Document
This is my code so far: <!DOCTYPE html> <html> <head> <title>JavaScript is fun</title> <meta charset="utf-8" /> </head> <body> <script type ="text/javascript"> //declare a variable and store text in it var x = "JavaScript is fun"; //write the variable 5 times document.write(x + x + x + x + x); //store 5 as string in variable x x = "5"; //store 3 as string in variable y var y = "3"; //write the value x + y to the document document.write("<br>");...
Write the JavaScript code to reference all of the unordered list items that are contained in the aside element on an HTML page and assign them to the variable named listItems.
Produce a web application using Javascript that contains each of the following elements. The application doesn't need to be picture-perfect -- rather, use this as your opportunity to show off the skills you've acquired in the last several weeks. Think of simple applications that you may find useful -- a sign up form, a checklist, etc. Your project can be submitted in one of two ways: a zipped file consisting of an HTML5 doc, JS document, and other assets a...
1. Write the HTML code to create a fragment identifier at the beginning of a web page designated by the word “top”. 2. Write the HTML code to create a hyperlink to the named fragment designated by “top”. 3. Write the HTML code to assign the header element to the appropriate ARIA landmark role, as shown in the slides. 4. Write the HTML code to associate a web page with an external style sheet named myprint.css to configure a printout....
code a website in html about vacational about atleast 3 vacational spots. the requirements are as follows Home page and at least 5 content pages A single external CSS file controlling styles across the site (internal and embedded styles may also be used when appropriate) Consistent "look and feel" throughout the site (logo, color scheme, layout, navigation) Consistent navigation throughout the site Use at least three images in addition to the logo (images should have alternate text) Include at least...