What is HTML?
• HTML stands for Hyper Text Markup Language.
• HTML is basically used for creating a web pages.
• HTML is a subset of SGML(standard General Markup Language). it is used to define the layout and attributes of a World Wide Web document as well as to create links between web pages.
• This is basically a scripting languages available for creating web pages.
• HTML elements tells the browser how to display the content.
• HTML Basics
• As we know HTML stands for Hypertext markup Language. Hypertext is simply a piece of text that works as link.
• Markup Language is language of writing layout information within documents.
Basically an HTML document is a plain text file. It contains rich text. The rich text means text with tags.
• Any HTML program can be written in simple Notepad or edit plus. The extension of the program should be either html or htm.
• This program can be opened in some web browser we can use any browser like as Google chrome, Mozilla Firefox, or Internet explorer.
• After running .html or .htm we can view the corresponding web page.
Let us create our first web page using HTML.
• Program consists of some string enclosed with in angular brackets. such string are called tags.
• The <!DOCTYPE html> declaration defines that this document is an (html5) HTML5 document. All HTML documents must start with a document type declaration
• The <html> indicates the start of html program and </html> denotes the end of html program it is the root element of html page
• In the head part of the html program we have added a <title> tag which sets the title to our web pages as "My First Web Page".
<head>
<title>My First Web Page</title>
</head>
• The <body> of the HTML program will help us to create a look and feel of the web page.In above given html program is easy in which web page contains the two tags one is heading ans another is paragraph. And one more thing whatever we write inside body tag same will be displayed in the browser.
• <h1> heading defines the large heading .
• <p> defines a paragraph.
<body>
<h1>This Is My First Heading</h1>
<p>This Is My first paragraph.</p>
</body>
• HTML is not a case sensitive language.
HTML headings
• There are header tags which help to display the text as some header. The header tag is denoted by the h1, h2 and so on up to h6. Following Html program along with its output is itself self explanatory.
HTML Program
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>My First Web Page</title>
5 </head>
6 <body>
7 <h1>This Is My First Heading</h1>
8 <p>This Is My first paragraph.</p>
9 </body>
10 </html>
• HTML stands for Hyper Text Markup Language.
• HTML is basically used for creating a web pages.
• HTML is a subset of SGML(standard General Markup Language). it is used to define the layout and attributes of a World Wide Web document as well as to create links between web pages.
• This is basically a scripting languages available for creating web pages.
• HTML elements tells the browser how to display the content.
• HTML Basics
• As we know HTML stands for Hypertext markup Language. Hypertext is simply a piece of text that works as link.
• Markup Language is language of writing layout information within documents.
Basically an HTML document is a plain text file. It contains rich text. The rich text means text with tags.
• Any HTML program can be written in simple Notepad or edit plus. The extension of the program should be either html or htm.
• This program can be opened in some web browser we can use any browser like as Google chrome, Mozilla Firefox, or Internet explorer.
• After running .html or .htm we can view the corresponding web page.
Let us create our first web page using HTML.
_______________________________________________________________________________
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>This Is My First Heading</h1>
<p>This Is My first paragraph.</p>
</body>
</html>
_____________________________________________________________
Explained• Program consists of some string enclosed with in angular brackets. such string are called tags.
• The <!DOCTYPE html> declaration defines that this document is an (html5) HTML5 document. All HTML documents must start with a document type declaration
• The <html> indicates the start of html program and </html> denotes the end of html program it is the root element of html page
• In the head part of the html program we have added a <title> tag which sets the title to our web pages as "My First Web Page".
<head>
<title>My First Web Page</title>
</head>
• The <body> of the HTML program will help us to create a look and feel of the web page.In above given html program is easy in which web page contains the two tags one is heading ans another is paragraph. And one more thing whatever we write inside body tag same will be displayed in the browser.
• <h1> heading defines the large heading .
• <p> defines a paragraph.
<body>
<h1>This Is My First Heading</h1>
<p>This Is My first paragraph.</p>
</body>
• HTML is not a case sensitive language.
HTML headings
• There are header tags which help to display the text as some header. The header tag is denoted by the h1, h2 and so on up to h6. Following Html program along with its output is itself self explanatory.
HTML Program
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>My First Web Page</title>
5 </head>
6 <body>
7 <h1>This Is My First Heading</h1>
8 <p>This Is My first paragraph.</p>
9 </body>
10 </html>