Introduction to HTML:
- HTML is a markup language that web browsers used to interpret and composed text, images and other material into visual audible web pages.
- It is not a programming language, rather it is markup language.
- HTML means hypertext markup language.
- HTML is case insensitive language.
- HTML uses markup tags to define a webpage.
- HTML file has an extension .htm or .html.
- HTML is developed by a worldwide web consortium.
- Currently, we are using the HTML5 version.
- No need for any programming background.
- You need every browser installed on your machine and text editor like notepad.
- Web browser or Internet Explorer, Mozilla Firefox, Opera, Google Chrome, etc.
Where to write?
- You need to open Notepad, open a new file and write HTML code in it.
- Save it with HTML extension.
- Execute it with some Browser.
- You can open an HTML file with Notepad to make any edition.
HTML elements:
- An HTML element is an individual component of an HTML document.
- It starts with a start tag/opening tag and ends with an end tag/ closing tag.
- The element contained is everything between the start and the end tag.
- Most HTML elements can have attributes.
Example
- <p> this is a paragraph </p>
- Here,<p> is starting tag and </p> is closing tag. Everything between them is paragraph content to be displayed on browser.
Document structure elements:
- All HTML documents must start with a type declaration : <!DOCTYPE html>
- <html>
- <head>
- <body>
Execution:
<html> tag
- The root element of an HTML document, all other elements are contained in this.
- The HTML element delimits the beginning and the end of an HTML document.
<head> tag
- Container for processing information and metadata for an HTML document.
<body> tag
- Container for the displayable content of an HTML document.
Format :
<html>
<head>
Place processing information and metre data here
</head>
</body>
Please display label content here
</body>
</html>
<html>
<head>
Place processing information and metre data here
</head>
</body>
Please display label content here
</body>
</html>
Comments:
<!--
Write your comment here
-->
Regards,
Hints 4 You.
Thank you for giving me your precious time.
We will meet again via the next post.
*Features:
0 Comments
Please do not enter any spam Link in the comment box. If you have any queries, Let me know!