Horje

How to Use CSS to style the <article> element:

The article element - Styled with CSS
index.html
Example: HTML
<style>
.all-browsers {
  margin: 0;
  padding: 5px;
  background-color: lightgray;
}

.all-browsers > h1, .browser {
  margin: 10px;
  padding: 5px;
}

.browser {
  background: white;
}

.browser > h2, p {
  margin: 4px;
  font-size: 90%;
}
</style>

Output should be:

How to Use CSS to style the <article> element:




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin