Home >> HTML 5 >> What is Colors in HTML 5

What is Colors in HTML 5

Colors are used in websites to make it feelable and good looking. We can apply colors on tags, id, and class. For setting color in background we can use "background-color" and for changing color of text we can use "color".


<!Doctype Html>  
      <Title>HTML Colors</Title>  
      <h2 style="color:Red;">First Paragraph</h2>
      <p style="color:Green;">This is First Paragraph. </p>   
      <h3 style="color:blue;">Second Paragraph</h3>
      <p style="color:black;">This is Second paragraph. </p>


First Paragraph

This is First Paragraph.

Second Paragraph

This is Second paragraph.


Post Your Comment

Next Questions
What is CSS
What is Links
What is Images
What is Favicon
What is Tables
What is Table Borders
What is Table Sizes
What is Table Headers
What is Table Padding and Spacing
What is Table Colspan and Rowspan
What is Table Styling
What is Table Colgroup
How many type of Lists
What is Unordered Lists
What is Ordered Lists
What is Block and Inline Elements
What is HTML class Attribute
What is HTML id Attribute
What is HTML Iframes
What is HTML JavaScript
What is HTML File Paths
What is HTML Head Element
What is HTML Layout
What is HTML Responsive Website Design
What is HTML Forms

Copyright ©2022 coderraj.com. All Rights Reserved.