Use of +/~ sign in css

In css3 + or ~ sign is new attribute.
It is work to apply css attribute in just after upcoming HTML Elements.

For Example HTML file is:
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Here, Rad color apply last p tag.
you can also use ~ sign like, ul ~ p
ul + p {
ul ~ p {


Output is :


Popular posts from this blog

N Queen Problem using c and c++

Greedy Prim Algorithm using c/c++

m Coloring Problem using c or c++