Introduction to HTML
HTML Code
|
<html> <body>
<h1>My Homepage</h1>
<p>This page is about me.</p>
</body> </html>
|
HTML Output
My Homepage
This page is about me.
|
Try it yourself |
What is HTML?HTML is a language for describing web pages.
-
HTML stands for Hyper Text Markup Language
- HTML is not a programming language, it is a markup language
- A markup language is a set of markup
tags
- The markup tags describe how text should be displayed
HTML Markup TagsHTML markup tags are usually called HTML tags
- HTML tags are keywords surrounded by angle 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 tag
Note: The start and end tags are also called the opening and closing
tags.
What is an HTML File?
- An HTML file is a text file with HTML tags
- An HTML file name must end with .htm or .html
- An HTML file can be created using a simple text editor
- An HTML file is often called an HTML document or a Web Page
When a browser displays a web page, it will not display the markup tags. The
browser uses the markup tags to understand the layout of the page.
An HTML Document
<html> <body>
<p>This is my first paragraph</p>
<p>This is my <b>second</b> paragraph</p>
</body> </html> |
Try it yourself Example ExplainedWhen a browser displays a web page, it will not display the markup tags. The text between the <html> and </html> tags describes a web page. The text between the <body> and </body> tags is displayed in the web
browser. The text between the <p> and </p> tags is displayed as
paragraphs. The text between the <b> and </b> tags is displayed in a bold font.
Writing HTMLIn this tutorial we use a plain text editor (like Notepad) to edit HTML. This
is a good way to learn HTML. However, professional web developers often prefer HTML editors like FrontPage or Dreamweaver, instead of writing plain text. In the next chapter of this tutorial, you will learn how to create a web site
on your own computer.
 |
|
|
|
Check your site for errors with one click. No more one-by-one page checks, DeepTrawl will find all the errors on your site in seconds.
DeepTrawl is incredibly easy to use, simply type the url of your site & hit go. You'll see all the errors in all your pages, including:
- Dead Links (404's etc.) |
- Missing Images |
- Spelling Mistakes (USA / UK / Canadian English) |
- Invalid xhtml (checked against w3c standards) |
- Common html Errors (missing meta-tags etc.) |
- User Defined Errors (out of date texts/html etc.) |
- Unwanted User Postings (profanity, spam) |
Fix any error easily using the integrated html editor. Download free trial now for PC & Mac.
More Info || Download Free Trial || Watch Demo Video
|
|
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|