1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Keith_Richards [23]
4 years ago
14

How do you embed a scriplet in an HTML document ​

Computers and Technology
1 answer:
harina [27]4 years ago
7 0

Answer:

Explanation:

hello

you put the scriptlet between the following tags <% ... %> in HTML document

hope this helps

You might be interested in
#Write a function called 'string_type' which accepts one #string argument and determines what type of string it is. # # - If the
deff fn [24]

Answer:

I am writing a Python program:

def string_type(string):

   if string=="":  //if the string is empty

       return "empty"

   elif string.count(".")>1:  #if the period sign occurs more than once in string

       if string.count("\n"):  #checks if the new line occurs in the string

           return "page"  #if both the above cases are true then its a page

       return "paragraph"  # if the period sign condition is true then its a para

   elif string.count(" ")>=1:  #if no of spaces in string occur more than once

       return "sentence"  #returns sentence

   elif len(string)==1:  # if length of the string is 1 this

       return "character"  #returns character

   else:  #if none of the above conditions is true then its a word

       return "word" #returns word

Explanation:

def string_type(string):  this is the definition of method string_type which takes a string as argument and determines whether the type of string is a word, paragraph, page, sentence or empty.

if string=="" this if condition checks if the string is empty. If this condition is true then the method returns "empty"

elif string.count(".")>1  This condition checks if the string type is a paragragh

string.count(".")>1   and if string.count("\n") both statements check if the string type is a page.

Here the count() method is used which is used to return the number of times a specified string or character appears in the given string.

Suppose the string is "Paragraphs need to have multiple sentences. It's true.\n However, two is enough. Yes, two sentences can make a paragraph."

The if condition first checks if count(".")>1 which means it counts the occurrence of period i.e. "." in the string. If the period occurs more than once this means it could be a page. But it could also be a paragraph so in order to determine the correct string type another if statement if string.count("\n") inside elif statement determines if the string is a page or not. This statement checks the number of times a new line appears in the string. So this distinguishes the string type paragraph from string type page.

elif string.count(" ")>=1: statement determines if the string is a sentence. For example if the string is "i love to eat apples." count() method counts the number of times " " space appears in the string. If the space appears more than once this means this cannot be a single word or a character and it has more than one words. So this means its a sentence.

  elif len(string)==1:  this else if condition checks the length of the string. If the length of the string is 1 this means the string only has a single character. Suppose string is "!" Then the len (string) = 1 as it only contains exclamation mark character. So the method returns "character" . If none of the above if and elif conditions evaluates to true then this means the string type is a word.

8 0
3 years ago
What are the answers for edhesive quiz 2? I can’t add more than 1 photo...
KatRina [158]

Answer:

i have no idea srry

Explanation:

hi

7 0
3 years ago
3k means about 3 thousand bytes. How would you express four trillion bytes?
Elanso [62]
Hello!

Four trillion bytsz will be expressed as "4T".

T stands for trillion.
8 0
3 years ago
What has prompted schools to add Internet activities in their academic integrity policies? a. New technological advancements c.
AysviL [449]

Answer:

A

Explanation:

Schools are trying to adjust to technology to help students.

6 0
3 years ago
Read 2 more answers
Compare and contrast a linked list and an array.
Ostrovityanka [42]

Answer:

Differences between arrays and linked list are as following:-

  1. Arrays store elements in contiguous memory location while the linked list does not store elements at contiguous memory location it connects nodes at different memory location.
  2. Array has index to directly access the elements there are no indexes in linked list to directly access the elements.
  3. Linked list contains Nodes which contains the data and the address of the next Node while the array contains only the data in the block.
  4. Traversal over the arrays is easy while the traversal over the linked list is difficult as compared to arrays.
4 0
3 years ago
Other questions:
  • #1. List examples of where it matters whether items are in order (sorted).
    10·1 answer
  • In object-oriented analysis, objects possess characteristics called _____.â
    14·1 answer
  • A (n) _____________ chart is represented by a circle divided into portions.
    8·1 answer
  • Which of the following statements is/are true by definition.
    5·1 answer
  • A technician has just finished installing a secondary OS on a workstation. After rebooting the computer, the technician receives
    13·1 answer
  • The InfoBar is located below the ribbon and on top of a message. It is used for which purposes? Check all that apply. showing th
    9·2 answers
  • How do I fix this stylesheet?
    14·1 answer
  • An articulated robot has a T-type wrist axis that can be rotated a total of 2 rotations (each rotation is a full 3600 ). It is d
    15·1 answer
  • A major retailer wants to enhance their customer experience and reduce losses
    6·1 answer
  • What is the full form of MPEG?<br> The full form for MPEG is ________.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!