html, css?

김병엽·2024년 7월 4일

html이란 무엇인가?

<!DOCTYPE html> // declaration defines that this document is an HTML5 document
<html> // is the root element of an HTML page
<head> // contains meta information about the HTML page
<title>Page Title</title> // specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
</head>
<body> // defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

css란 무엇인가?

  • 마크업 언어가 실제 표시되는 방법을 기술하는 스타일 언어
p {
    font-size: 110%;
    font-family: garamond, sans-serif;
}
h2 {
    color: red;
    background: white;
}
.highlight {
    color: red;
    background: yellow;
    font-weight: bold;
}
#test_id {
    color: blue;
    background: white;
}

참고자료

https://ko.wikipedia.org/wiki/HTML
https://ko.wikipedia.org/wiki/CSS

profile
선한 영향력을 줄 수 있는 개발자가 되자, 되고싶다.

0개의 댓글