Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
can html have both javascript and css?
can anybody tell any example of it
a simple example will do just the structure
6 Answers
- NikLv 79 years agoFavorite Answer
HTML does not contain the other two languages CSS and JavaScript can be both stand alone or be included with HTML. In between the HTML head tags I have given CSS combined with HTML In between the body tags the JavaScript.
<html>
<head>
<style type="text/css">
body
{
background-color:#333;
}
</style>
</head>
<body>
<script type="text/javascript">
document.write("<p>testing</p>");
</script>
</body>
</html>
- eastlandLv 45 years ago
HTML is a markup language used to define the format of records on an internet site. XML is a markup language it extremely is often used to characterize records ( no longer something to point a thank you to reveal the counsel ). XML has a o.k. defined set of rules that prepare to all information, the words nicely formed and not nicely formed relate to if a particular document conforms to those rules. XHTML is an replace to HTML, HTML is very lax in this is correctness, while XHTML has a fastened set of rules as to the way it is going to be written. Javascript is a collection of instructions which will carry out projects in a internet browser, even however Javascript can replace the reveal this is best purpose is to technique counsel. Flash is a manner of showing animations, inculding video games. this is basically approximately like a video participant, yet with the flexibility of the consumer to work together with it. CSS is a collection of reveal attributes, i.e. fonts, colours, positions. This has no longer something to do with the content of the counsel it extremely is being displayed - basically a thank you to reveal the counsel.
- Anonymous9 years ago
Yes, JavaScript is the programming language.
CSS is often kept in a separate file with a link to it in the HTML code.
You can see JavaScript and CSS embedded or a link to it by looking at the HTML code which is accessible at any website you look at. In your web browser, View Source to see the HTML.
- 9 years ago
your Question is not clear,
we can use javascript and css inside HTML. there're many examples u can visit this website
Source(s): w3schools.com - How do you think about the answers? You can sign in to vote the answer.
- 9 years ago
yes ... you can use the both javascript and css codes inside of your html codes.
<header>----here put ur javascript and css codes---</header> is the best location for those codes.
All the best....
Source(s): http://www.w3schools.com/ - 9 years ago
YES
<html>
<head>
<title>html have both javascript and css</title>
<link src="" rel="stylesheet"/>
<style type="text/css">.....</style>
<script type="text/javascript">.....</script>
</head>
<body>.....</body>
</html>