CHAPTERTWO
Be focused and you will archive alot. choose your ON CSS
Explore moreBe focused and you will archive alot. choose your ON CSS
Explore moreLorem ipsum dolor sit amet consectetur adipisicing elit. Hic odit rem dolorum molestiae fugit deserunt exercitationem recusandae, itaque ratione harum sit repellat dolor temporibus deleniti non voluptatem nostrum quas? Cumque veniam, molestias id natus pariatur dolores aut nemo iure facilis expedita, temporibus exercitationem ullam ex officiis reiciendis quaerat enim consequuntur.
Selectors define which HTML elements should be styled. Understanding selectors is crucial for writing effective CSS. Here are the main types:
the class selector here is .hello
the id selector here is #hello
the selector here is p
This selector targets all instances of a specific HTML tag.
<h1>This heading will be red</h1>
to selement the nelement above we will use the tag name which is "h1"
Example:
h1 {
color: red;
}
<!DOCTYPE html> <html> <head> <title>Title of thePage</title> <style> #special { font-weight: bold; } </style> </head> <body> <h1 id="special">This heading will be red</h1> </body> </html>
You can group multiple selectors with a comma, reducing duplicate code. in the example bellow * All <h1>, <h2>, and <p> elements will use the Arial font.
<!DOCTYPE html> <html> <head> <title>Title of thePage</title> <style> h1, h2, p { font-family: Arial, sans-serif; } </style> </head> <body> <h1>This is a heading</h1> <h2>This is a subheading</h2> <p>This paragraph remains unstyled</p> </body> </html>
This paragraph remains unstyled
vildash network team has had alot of impact on others but here are the vildash network team testimonies and expirience while working with the team
you can now connect and text other users from our database. you just neeed to click bellow to message them
WE HAVE CODE EDITORS FOR LANGUAGES LIKE C, C#, C++, HTML, CSS, javascript, JAVA VISUAL BASIC
We dont just teach you to code we teach you to code and build amazing systems.we are group of expert who wants to promote our field of studies