The class Attribute The class attribute is often used to point to a class name in a style sheet. It can also be used by a JavaScript to access and manipulate elements with the specific name. In the following example we have three <div> elements with a class attribute with the value of ".classes". All of the three <div> elements will be styled equally according to the .classes style definition in the head section: You can manipulate your and design by the classes. Example: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> html classes and IDs </title> <style type="text/css"> .classes{ background-color: green; color: ghostwhite; border: 2px 4px 3px 2px; margin: 20px; padding: 20px; font-family: arial,; } </style> </head> <body...
Hi! here we will teach you how to website work and how we make a website by using HTML,CSS,JAVASCRIPT, jquery & PHP