When creating a web page with html, this is the basic structure. All highlighted are notes and are not necessary.
<html>
<body>
</body>
</html>
After this, you can add a heading and a paragraph.
<!DOCTYPE>
<html>
<body>
<h1>This is The Heading</h1>
<p>This is the paragraph</p>
</body>
</html>
Note that you end with a forward slash. You can add onto this by centering your heading and adding a pagebreak which separates the heading from the paragraph. You can make notes with //.
<!DOCTYPE>
<html>
<body>
<h1><center>This is The Heading</center></h1>
<hr> // This is the page break
<p>This is the paragraph</p>
</body>
</html>
No comments:
Post a Comment