Introduction to HTML
What is HTML?
HTML is a language for describing web pages.
HTML stands for Hyper Text MarkupLanguageHTML is not a programming language, it is amarkup languageA markup language is a set of markup tagsHTML uses markup tags to describe web pages
HTML Example
<html>
<body>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
</html>
HTML Tags
HTML markup tags are usually called HTML tags
HTML tags are keywords surrounded byangle brackets like <html>HTML tags normally come in pairs like <b> and </b>The first tag in a pair is the start tag, the second tag is the end tagStart and end tags are also called opening tags and closing tags.
HTML Documents - Web Pages
HTML documents describe web pagesHTML documents contain HTML tags and plain textHTML documents are also called web pages
The purpose of a web browsers (like Internet Explorer) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page:
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph</p>
</body>
</html>
Example Explained
The text between <html> and </html> describes the web pageThe text between <body> and </body> is the visible page contentThe text between <h1> and </h1> is displayed as a headingThe text between <p> and </p> is displayed as a paragraph
0 comments Blogger 0 Facebook
Post a Comment