Hello, Wikipedians!
It's Nana here. Today we are going to discuss about on how to make a HTML document.
- Launch a text editor.
- TIP: You can use Geany(cross-platform), Notepad2(Windows), Notepad++(Windows), SciTE(cross-platform).
- BEWARE: HTML documents should not be created in word processors.
- Type in the first line:
- TIP: The code
<!DOCTYPE HTML>
is not case-sensitive. You can type in:<!doctype html>
,<!Doctype Html>
, or<!DOCTYPE HTML>
.
<!DOCTYPE html>
- Type in the second line:
- BEWARE: Don't type in the or
<!---Character set and title content to go here--->
<!---Text, image, video (etc) content to go here-->
<head>
<!---Character set and title content to go here--->
</head>
<body>
<!---Text, image, video (etc) content to go here-->
</body>
- Within the <head> section, type in:
<source lang="html4strict">