We are going to use the developer tools and the DOM function document.QuerySelectorAll(css_selector_string) to test some selectors and look at document structure.
a.What is the CSS selector that you would use to select all the <code> elements? How many are there?
b.What is the CSS selector that you would use to select all the <code> elements contained in <pre>elements? How many are there? Are there more or less than above. Why?
c.What is the CSS selector that you would use to select all the <figure> elements? How many are there?
d.What is the CSS selector that you would use to select all the <img> elements? How many are there? Is this different from the above? Why?
//a.
var code = document.QuerySelectorAll("code");
console.log("Total <code> elements: "+code.length);
//b.
var preCode = document.QuerySelectorAll("pre>code");
console.log("Total <code> elements in <pre> tag:
"+preCode.length);
console.log("Is code.length is > preCode.length");
console.log(code>preCode);
//c.
var figures = document.QuerySelectorAll("figure");
console.log("Total <figure> elements:
"+figures.length);
//d.
var img = document.QuerySelectorAll("img");
console.log("Total <img> elements: "+img.length);
console.log(img.length+">"+figures.length+"="+(img.length>figures.length));
We are going to use the developer tools and the DOM function document.QuerySelectorAll(css_selector_string) to test some...
Fake News This exercise is about modifying the content of a page in your web browser using Javascript. As we have said, Javascript has access to the current page via the Document Object Model or DOM. In your browser, the variable document represents the current document and your code can use it to read and write to the current page. In this exercise we will use the developer tools Javascript console to write Javascript to access parts of the main...
Please help as much as you can it’s pretty much just terms What is the main purpose of the python-requests module? What kinds of requests can it make, and what types of responses might be returned? Text? HTML? JSON? Images? What is JSON? How does it compare to CSV? Whern processed using the json.loads) method, what Python data structure does the imported JSON get imported as. What is an HTML Document Object Model (DOM) and how does that relate to...
WEB230 - JavaScript 1 Assignment 6a Use Events and DOM manipulation to create a playable Tic Tac Toe game. Do the following using JavaScript. Do not modify the HTML file. When you see this symbol: save and refresh the browser (this should happen automatically if you are using Brackets with Live Preview), then check your code to make sure it is working before you proceed. 1. Create two variables called "playerX" and "playero". Set them to the DOM element with...
1.Use Chemdraw to construct the alpha-ketoamide inhibitor and place it in a word document. одо alpha-ketoamide inhibitor 2. Cirele, Color Code, use letters, numbers or arrows ete, to identify by name as many functional groups as you can in the alpha-ketoamide inhibitor. Variations in the functional group count. For example a l' and 2 "alcohol, if present, would represent two functional groups. 3. Identify the parts of this molecule that are reflected in its name. 4. Mark all of the...
2. A) We require you to describe how you would use project management tools to develop and implement a project plan. Discuss at least 3 tools from below: Activity (What is to be done?) Objective (Why will we do it?) Resources (Where will it be done?) Procedures (How will it be done?) Responsible person (Who will do it?) When? Budget Acquire additional resources – delivery van. To provide a delivery service and provide brand recognition Purchase a new van for...
IN EXCELL We are now going to use Excel to test a hypothesis based on one given sample. We would like to know if the average cholesterol level of patients in intensive care is equal to 200 and for that reason we collect cholesterol level of 20 random people from various intensive care units. I Cholesterol level 154,168,134,201,208,220,225,228,201,207,168,211,203,254,268,198,298,135,154,189 We put our data in column A. In Cells A3-A22 we type our data and in cell Al we type Cholesterol. First...
Stochastic Population Growth Model Next, we are going to monitor the population growth of an asexually reproducing single-celled organism, centinia lincolni (pennies). This Centina population has a mortality rate of 50% per year, but all individuals that survive the year divide to produce an additional individual. The very most basic growth model of a closed population is: N+ N-deaths births Rewritten to use rates instead of individuals, this equation becomes: N+ -N,S+N.BS where S is the probability of survival (0.5)...
1. Write code for a function that receives two parameters (a,and b) by value and two more parameters (c and d) by reference. All parameters are double. The function works by assigning c to (a/b) and assigning d to (a*b). The function has no return value. From main, use scanf to get two numbers, then call the function, and then display both outcome values to the output in a printf statement. 2. After part 1 is completed, write code to...
Practice Computing Hypothesis Test with a Computer In this worksheet we are going to focus on hypothesis test with the aid of a computer.Provided below are the basic steps of calculating a hypothesis test. You want to start by determining whether you are interested in working with a mean or a proportion. Then identify each of the parts listed below In order to use the formulas for a hypothesis test we first need to confirm that the sample size requirements...
c++ can use if else, loop,function ,array,file i.o. Can not use swtich, global variables etc.. Please do all parts. previously I post 3 time for part1 ,2 and 3 but I can't make it into one complete program code. I even try to post a questions ask and post the 3 parts of code for experts to put it together. But experts said it's not enough information. please help... Thank you ! Program Objectives: Allow students to create arrays Allow...