For starters, all you need is a text editor and browser!
偶爾會有相容性的問題,不要只有一個瀏覽器
創資料夾跟檔案,結構如下:
myFirstWeb
├── images/ # For placing *.jpg
├── styles/ # For placing *.css
├── scripts/ # For placing *.js
└── index.html
在index.html中貼入以下code:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
140.112.24.249
(IPv4), 2001:0db8:86a3:08d3:1319:8a2e:0370:7344
(IPv6)HTML is a markup language that defines the structure of your content. HTML consists of a series of elements, which you can make it appear a certain way, or act a certain way.
index.html
<html>
— the root element<head>
— a container for things like keywords and a page description that you want to appear in search results<title>
— sets the title that appears on the browser tab<body>
— contains all the content you want to show <p>This is a single paragraph</p>
<ul>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ul>
<img src="images/cat.png" alt="A cute cat." />
<a href="https://ntuee.org/">NTUEE</a>
Try to use what you've learned from above and build a web page about yourself. It should contain