HTML 5 Tutorial
HTML stands for Hypertext Markup Language. HTML 5 is the fifth version of HTML. It is not as different, but it does provide us with many new abilities.
There are three basic things to know while dealing with HTML 5:
Tag - <tittle>
A tag can be either one of these, starting or ending tag. This title tag is a starting tag.
</title> This tag is and ending tag because of the "/" before the name of the tag.
Element - <title>Example Document</tittle>
An element is the combination of two tags, the starting and ending tag.
Attribute - <h1 id="main">Main Section</h1>
An attribute adds information to an element.
These are the basic things to know about HTML 5.
Writing an article with HTML 5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example document</title>
</head>
<body>
<p> This is just an example to show you how this would look on your screen.</p>
</body>
</html>
That is how any document should be written.
<!DOCTYPE html> Documents should ALWAYS start with this tag.
<html lang="en"> This is the root element, it also helps with speech tools.
<head> It contains information about the document.
<meta charset="UTF-8"> This is the character encoding tag.
<title>Example document</title> Whatever is written in between the starting and ending title tags will be displayed in the browsers tab.
</head> It ends the "head" area of the document.
<body> It defines the body section displayed.
<p> This tag indicates a paragraph. Whatever is in between the starting and ending tag <p> will be displayed on the screen.
This kind of document should always be saved with a ".html" ending.
The tool used to write HTML 5 codes is called notepad-plus-plus, which can be downloaded at http://notepad-plus-plus.org/
Here is a screenshot of how it would look:
No comments:
Post a Comment