CSS Syntax
CSS Example
CSS declarations always ends with a semicolon, and declaration groups are surrounded by curly brackets:
p {color:red;text-align:center;}
To make the CSS more readable, you can put one declaration on each line, like this:
p
{
color:red;
text-align:center;
}
CSS Comments
Comments are used to explain your code, and may help you when you edit the source code at a later date. Comments are ignored by browsers.
A CSS comment begins with "/*", and ends with "*/", like this:
/*This is a comment*/
p
{
text-align:center;
/*This is another comment*/
color:black;
font-family:arial;
}
CSS Syntax
.
Categories
- ASP (4)
- HTML (4)
- JavaScript (4)
- PHP (4)
- Visual Basic (4)
- XML (5)
Popular Posts
-
The following console program is the Visual Basic version of the traditional "Hello, World!" program, which displays the string ...
-
change button color in visual basic Public Class Form1 Private Sub Button1_MouseMove(ByVal sender As Object, ByVal e As System.Windows...
-
XML Attribute Values Must be Quoted XML elements can have attributes in name/value pairs just like in HTML. In XML, the attribute values...
-
A message box when page opens (Javascript Code) You can bring a message box or a alert a window which tell something to user at the first ...