[웹사이트 만들기] HTML basics

orangepeel·2023년 3월 12일
0

HTML: HyperText Markup Language

HTML elements can be nested inside other elements. Their relationship becomes parent-child

Document starts with: <!DOCTYPE html> which indicates the version of your html

<body> contains all visible content
<h1> ~ <h6> heading and subheading tags
<div> dividers
<p> specifies text blocks
<span> specifies short part of text block
<strong> bold text, <em> italics
<a href=""> <a/> adds hyperlink
<br> line breaks
<ol> ordered list
<ul> unordered list
<li> list item
<img src=""></img> adds image
<video> adds video

테이블 만들기

<table> creates a table
<tr> adds rows to table
<td> adds data to the row
colspan, rowspan attributes allow spanning of column/row
<th> table heading items
scope attribute specifies the header as a row or column
<thead> table head
<tbody> table body
<tfoot> table footer

boilerplate

<!DOCTYPE html>
<html>
<head>
	<link href="./resources/css/index.css" type="text/css" rel="stylesheet">
  <title></title>
</head>
<body>
 
 
</body>
</html>

0개의 댓글