Added Explanation. (#23748)
* Added Explanation. * corrected title syntax
This commit is contained in:
@ -1,28 +1,23 @@
|
|||||||
---
|
---
|
||||||
title: Basic HTML
|
title: Basic HTML
|
||||||
---
|
---
|
||||||
|
|
||||||
## Basic HTML
|
## Basic HTML
|
||||||
|
|
||||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/html/tutorials/basic-html/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
## Basic Page Structure:
|
||||||
|
|
||||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
|
||||||
|
|
||||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
|
||||||
Structure of a basic HTML file:
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
#### More Information:
|
|
||||||
<!-- Please add any articles you think might be helpful to read before writing the article -->
|
|
||||||
|
|
||||||
|
## Explanation:
|
||||||
|
The `<!DOCTYPE html>` is to tell the browser you want the page to be rendered using HTML5.
|
||||||
|
|
||||||
|
The `<head></head>` is were you want to put things that help the browser and search engines such as `<title></title>` and `<meta>`.
|
||||||
|
|
||||||
|
The `<body></body>` is were the tags that will display on the page are such as `<h1></h1>` or `<p></p>`.
|
||||||
|
Reference in New Issue
Block a user