HTML-색상표현

임재헌·2023년 3월 24일

HTML

목록 보기
4/22
<!DOCTYPE html>   
<html lang="ko"> 
<head>
       <title> 색상표현 </title> 
    </head>
    <body>
    <!--색상표현-->
    <!--font css만 사용
            ● [수의 체계]
               2진수 : 0 1
               8진수 : 0 1 2 3 4 5 6 7
              10진수 : 0 1 2 3 4 5 6 7 8 9 
              16진수 : 0 1 2 3 4 5 6 7 8 9 a b c d e f
       	font tag는 html에서 잘 쓰지 않음 -->
        
        <!--color name-->
        <font size="25pt" color="magenta">1</font>
        <font size="25pt" color="cyan">2</font>  <br>
        
        <!--16진수-->
        <font size="25pt" color="#FF0000">1</font>
        <font size="25pt" color="#0000FF">2</font><br>   
             
        <!--rgb-->
        <font size="25pt" color="rgb(255,0,0)">1</font>
        <font size="25pt" color="rgb(0,0,255)">2</font><br>
        
    </body>
</html>

0개의 댓글