Fandom

Wikianswers

Welcome! Enter your question below. Please use words like "Who, What, Where, When, Why, How, etc..." in your question. Nothing to ask? Click here for a random, un-answered question.

What is the basic structure of HTML?

1,031,617questions on
Wikianswers
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

HTML is structured with tags like a tree. All tags have a corresponding end tag. Some HTML documents begin with a document type definition, or DOCTYPE, although that is not required. After the DOCTYPE, if there is one, comes the <html> tag. After that, most documents have a <head> tag and and a closing tag for it. The space between these is the head. Information that doesn't fit in the body, such as the title, goes there. After the head is the body, surrounded by the <body> tags. The content goes in the body. Finally, after the body comes the end tag for the <html> tag. An end tag looks like its corresponding start tag, except there is a backslash after the less than sign.

A template for an HTML document is as follows.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
 
</head>
<body>
 
</body>
</html>

Also on Fandom

Random Wiki