? ???? HTML? ???? ?????? ??? ???? ?? ???? ??? ????. ??? ??? ?? ??? ?? ????? ??? ? ??? ??? ???. HTML?? ?? ??? ???? ?? ????. ?? ??? ???? ?? ??? ?????. ???? ??? ??? CSS(Cascading Style Sheet)? ???? HTML ??? ?????. ??? ? ???? ??? ??? ???. ????? ??? ???? ???? ???, ?, ?? ?? ???? ??? ?????.
HTML?? ???? ???? ??? ??????
???? ?? ?? ????? ?? ??? ??? ????. ??, Hex ?? ??? ???? ?????. RGB ? RGBA ?? ?(?? ? 0~1).
Html? body ?? ??? ?? Style ??? ???? Html ??? 16?? ??? ?? ?????. Hex? ??? ??? ?????. ??? ? ???? ???? ??? ????.
??:
<!DOCTYPE html> <title>My Sample</title> <html> <head> <title>HTML BG Color</title> </head> <body style="background-color:red;"> <h1> This page is a demo </h1> </body> </html>
?? ??:
???? ????? bgcolor ??? ???? < ?? bgcolor=' '>. HTML 5? ??? ?? ????? ?????.
??:
<h3 style="color: blue">Color Name</h3> <h3 style="color: #0000ff">Hexadecimal</h3> <h3 style="color: rgb (0,0,255)">RGB Value</h3>
HTML ???? ??? ???? ??? ??????
HTML ???? ??? ???? ?? ?? ????. Hex ??, HSL ?, ?? ??? ? ?? ??? ???? ??? ??? ??/??? ? ????. ??? ?? ? ???? ??? ???? ? ?? ?????.
1. ?? ??
?? ????? ??? ? ?? ?? ??? ???? ?? ?????. ??? ??? ???? ????, W3C? 16?? ?? ??(Black, Yellow, Red, Maroon, Grey, Lime, Green, Olive, Silver, Aqua, Blue, Navy, White, Purple, Fuchsia, Teal)? ??????
2. HSL
?? ?? ? ?? ?? ?. ??? 0~360?, ??? ??? 0~100%? ?????.
3. 16?? ??
??? ??? ???? 6?? 16?? ??? ?????. ??? ???? ?? ? ??? ???, ?? ? ??? ??, ??? ? ??? ??? ?? ???? ?? '#'? ????.
?? ???? ??? ??? ???? ??? ??? ?????.
??:
<head> <title>EDUCBA</title> <style type="text/css"> h1{ color:#97cae0; background-color: hsl(200, 50%, 20%); color: hsl(200, 20%, 90%); } h4{ color:rgb(0, 255, 0); background-color: hsl(130, 10%, 30%); color: hsl(280, 20%, 80%); } li{ color:rgba(12, 88, 120, 1); background-color: hsl(210, 36%, 50%); color: hsl(145, 45%, 81%); } </style> </head> <body> <h1>EDUCBA</h1> <h4>List of operating System</h4> <ul> <li> Windows</li> <li>MACINTOSH</li> <li>LINUX</li> <li>UBUNTU</li> </ul> </body> </html>
??:
HTML?? ??? ??? ? ?? ?? ????? ?? ??? ??? ??? ???? ???? ?? ??? ????.
- ??? ?? ??
- ?? CSS ??? ?? ???
- ??? ???
??>? ???? ??? ??? ???? ?? ???
HTML ??? ???? ??? ??? ???????.
1. HTML ??? ??? ??
?? ??? ??? HTML ??? ??? ??? ??? ?????. ????? ??? ? ?? 140?? ??? ??? ????.
?? ???