In the following html code the paragraph (p) element color is not changing with color property of css , *
but if i replace p with div element it is working properly..
enter code here
How To Install Node.js and npm Tool in Ubuntu 14.04
How To Install Node.js and npm Tool in Ubuntu 14.04
<div>
<h2>
Introduction:
</h2>
<p style="color:red;">
<h3>Node.js</h3>
Nodejs is an open source , cross platform , JavaScript runtime environment which is based on <a href="http://ift.tt/Ryil0T"> Chrome's V8 JavaScript engine</a>.
<br>
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient.<br><br>
It is used to develop scalable, real-time , network and server-side applications written in javascript and we can run that applications within Node.js runtime environment on Mac OS X ,Windows ,Linux ,solaris and BSD.<br><br>
Node.js provides an event-driven architecture and a non-blocking I/O API designed to optimize an application's throughput and scalability for real-time web applications. It uses Google V8 JavaScript engine to execute code, and a large percentage of the basic modules are written in JavaScript. Node.js contains a built-in library to allow applications to act as a web server without software such as Apache HTTP Server, Nginx or IIS.<br><br>
Node.js can be combined with a browser, a document database (such as MongoDB or CouchDB) and JSON for a unified JavaScript development stack.<br><br>
According to wikipedia,
Node.js is used by IBM, Microsoft, Yahoo!, Walmart, LinkedIn, Rakuten, PayPal and GoDaddy .
</p>
<p>
<h3>npm</h3>
npm is the pre-installed package manager for the Node.js server platform. It is used to install Node.js programs from the npm registry, organizing the installation and management of third-party Node.js programs.
</p>
</div>
**
after replacing the first p element in above code with div element
why color property is not working in p element but worked in div element (in above code)?
Aucun commentaire:
Enregistrer un commentaire