answersLogoWhite

0


Best Answer

you can put your script into a function.

A function contains code that will be executed by an event or by a call to the function.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where are scripts placed in an HTML document?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How can the browser recognize the line of code in an HTML document as belonging to a script?

There are a number of ways that help the browser recognise scripts. Scripts can be inside script tags. They can be in events associated with controls, like having an onClick event in a button. Scripts can be in external files that are linked into a html page. Whatever way it is done, if the web designer does it correctly, the browser will recognise and run the scripts.


Do you have to open a new HTML document to edit a hyperlink?

No, we can edit the hyperlink in the same document. <a> tag can be placed after or before any tag.


What are the last two tags of an HTML document?

The last two tags of an HTML document are the and tags. These tags mark the end of the body and the entire HTML document, respectively. Here's a breakdown of the structure: HTML Use code with caution. Learn more The tag indicates the end of the body content, which is where the visible elements of the web page are placed. It tells the browser that the structural elements of the page have been defined. The tag marks the end of the entire HTML document. It signals to the browser that it has reached the final element of the document and can start rendering the page. Together, these two tags enclose all the HTML content and provide a clear structure for the web page.


What is HTML-only?

All websites use HTML, but some sites use HTML in conjunction with one or more other coding languages like Javascript or CSS. HTML-only means it uses just the basic coding.


How are webpages using scripts implemented in a browser?

Usually, the scripts are implemented using JavaScript, and the HTML "SCRIPT" tag. More often on professional pages, though external scripts are used.

Related questions

What is the 'head' HTML tag for?

The <head> tag in an HTML document is used to hold data that describes the rest of the document. For instance, the title of the document that shows up in search engines and the users browser is placed in the HEAD section. The HEAD also contains things like styles, which describe what the document should look like in the browser, and scripts, which effect the function of the page.


How can the browser recognize the line of code in an HTML document as belonging to a script?

There are a number of ways that help the browser recognise scripts. Scripts can be inside script tags. They can be in events associated with controls, like having an onClick event in a button. Scripts can be in external files that are linked into a html page. Whatever way it is done, if the web designer does it correctly, the browser will recognise and run the scripts.


Do you have to open a new HTML document to edit a hyperlink?

No, we can edit the hyperlink in the same document. <a> tag can be placed after or before any tag.


What is HTML scripts?

HTML is a markup language, not a scripting language. There is no such thing as an HTML script.


What are the elements of an HTML document?

The elements of an HTML document are:HEADTITLEBODY


How do you use HTML to remove HTML you already have?

I don't think you can use HTML to remove HTML, you can hide HTML commands with <!-- TEXT OR SCRITPS HERE --> Any scripts between the <!-- AND --> wont show up on the HTML document. using those are good for leaving reminds like where a form starts and stops or to place something there that you might use later.


Where do scripts on my computer come from?

Scripts are coming from server.In the HTML code we include all scripts paths.so at the time of downloading the page all these scripts download and store in the cache.


What is HTML-only?

All websites use HTML, but some sites use HTML in conjunction with one or more other coding languages like Javascript or CSS. HTML-only means it uses just the basic coding.


What are the last two tags of an HTML document?

The last two tags of an HTML document are the and tags. These tags mark the end of the body and the entire HTML document, respectively. Here's a breakdown of the structure: HTML Use code with caution. Learn more The tag indicates the end of the body content, which is where the visible elements of the web page are placed. It tells the browser that the structural elements of the page have been defined. The tag marks the end of the entire HTML document. It signals to the browser that it has reached the final element of the document and can start rendering the page. Together, these two tags enclose all the HTML content and provide a clear structure for the web page.


Which type of style sheet is placed directly on the HTML tag?

an inline style sheet is directly placed inside of an HTML document using the <style></style> tags, but CSS styles can be placed on almost any HTML tag. To specify an HTML tag in your selector, just write out the tag without a leading qualifier (. for class, # for id) so you would have something like span{ //css rules here }


How do you open HTML document?

click on html link


Where can one download a blank HTML document for free?

You can download a blank HTML document for free online from the W3Schools website. Once on the page, click on "HTML" in the left navigation menu and then copy and paste the code from the box into a text document and name it with the .html file extension to save the blank HTML document.