HTML(3)

이은서·2024년 3월 29일

웹개발

목록 보기
5/5
post-thumbnail

Basic Structure of an HTML File

<!DOCTYPE html>
<html>
	<head>
    	<title>Home - My first website</title>
    </head>
	<body>
    	<h1>Hello!</h1>
        <a href="http://google.com">Google</a>
    </body>
</html>

<DOCTYPE html>

This tells the browser that this file is an HTML file, not a textfile. Again, we have to tell the browser what the content, "from here to here", is.

<html>

Whatever content that is inside the <html> tag becomes html code.

Two Parts of a Website

Websites are made up of two parts: the head and the body. On the <head>, we configure the website. We do invisible settings. On the <body>, we put the content: what the users will see.

We configure and do the settings of our page.
e.g.) title

<meta>

  • extra data
attributesabout
content
name

<body>

We put the content that the users will see.

0개의 댓글