answersLogoWhite

0

Can style sheet will used in body tag of HTML or not?

Updated: 8/21/2019
User Avatar

Wiki User

8y ago

Best Answer

You have 3 kinds of styles. External style sheets are in a separate file and is referenced by a web page in the head area. An internal style sheet is put into the web page. It should be put into the head area. In answer to your question however, they will work if you put them into the body of the document, though you should always put them into the head area. The third kind of styles are inline styles, which are put directly into tags, so they are within the body. Inline styles are not regarded as style sheets, as they are individual styles just applying to the tag that they are in.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can style sheet will used in body tag of HTML or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is cascading style script?

CSS (Cascading Style Sheet) is a proramming language that is used with HTML to create the layout of a page.


Is CSS a scripting language?

No, HTML is a mark up language and css ( cascading style sheet) is a way of styling a web page eg, bgcolor, text color size and font ect, you can write the css in the HTML or make it separate and link the HTML to it


What are HTML stylesheets?

HTML is a markup language and not a style sheet. CSS is the styling code used to make an HTML page look the way you want it. CSS Tutorials might help you.


What are HTML style tags?

HTML style tag is used to define CSS in HTML. It is used to style the page according to the user demans.


How does a style sheet affect the look of a web page?

Stylesheets are used to format the HTML content. They separate the content from the presentation of the content.


What is a tag List 10 HTML tag?

There are various tags in HTML that can be used. 10 of them are: p, a, br, head, body, html, title, script, link, style.


What is uses of HTML?

HTML stands for Hypertext Markup Language. It is used to create the general look of a website, not the website interactions. The color, text, images and buttons are all designed inside HTML and CSS(Cascading Style Sheet).


What is the HTML tag used to define an internal style sheet?

If you are looking to use an internal style sheet, you are going to need to use the <style> tag. This tag has both an opening and a closing tag and in between the two tags is where you list all of the CSS rules and declarations that you are wanting to include. Internal style sheets are used when the rules you are creating are only needed on the page that you are adding the rules to. If you plan on using the rules on multiple pages, it would be better to use an external style sheet and embed the style sheet on each of the pages. An example of an internal style sheet would look like: <style type="text/css" media="all"> body { background-color: #FFFFFF; } p { text-color: #000000; text-weight: normal; } </style>


Compare two methods of accessing external CSS script?

Let following be HTML page: <HTML> <head> <link href='external_style.css' type='text/css' rel='stylesheet'> </head> <body> <p>Hello world</p> </body> </HTML> and following be external css script: p {text-decoration:underline} Here is HTML document, in the head section tag <link> is used. Tag link is used to get reference of external style sheet page named "external_style.css" using href property. Both css page and HTML page resides in same directory. the external css page cannot contain any tags like:<HTML> or <style> it can contain only style specification like: p {font-size : 8pt} H1 {text-decoration:underline} etc


What is the special formatting languages used to create webpages?

HTML, the HyperText Markup Language, defines web pages' content; CSS, Cascading Style Sheets, defines the web pages' presentation; and JavaScript, defines interactivity with the user, creating "Rich Internet Applications" (RIA).


How do you create a inline cascading style sheet in HTML file?

You don’t actually create a CSS within the HTML document. You use the style attribute to do so. Code used within a CSS is similar to, but slightly different when used inline. Here are two examples:1 – Create a style for the tag in CSS:P {color:blue}2 – Create style for the tag inline:


What is the HTML command used to display an image in background?

style="background-image: url('image.jpg')" Example: <body style="background-image: url('background.jpg')">