What Is HTML?

by - March 21, 2019

AN INTRODUCTION TO HTML

HTML
HTML
HTML was developed by Tim Berners-Lee, Robert Cailliau, and others starting in 1989.
HTML is a markup language for creating basic Web pages and make them functional.
In Order to make a Website Visually more ATTRACTIVE, we use  CSS (Cascading Style sheets), which we will teach in our CSS tutorials.
When compared to any other language HTML is an easy language even for absolute beginners.



HTML basically works with the help of two things:-



  • Tags
  • Attributes

HTML Tags:-


HTML tags are used to represent the start of an HTML element and they are mostly enclosed in angle brackets. A basic example of HTML Tag:-

CODE:-
CODE

OUTPUT:-
 ...........some text etc......

you can observe that the HTML tag is enclosed in angle brackets and when the tag is closed you can see a slash in the angle brackets before writing the tag, this is the way to represent a closing tag.
When using more than one tag, then tags should be closed in the same order in which they were opened.
HTML Attributes:-

HTML Attributes contain extra information than a tag. Attributes take the same form as an opening tag and extra info is placed inside in it. An HTML attribute didn't need to be closed like a tag it can be closed by simply putting an angle bracket at the end.
A basic example of HTML Attribute:- 

CODE:-



OUTPUT:-

if img load fails then this text will appear


you are viewing the output as an image logo with text if the image load fails then this text will appear because there is no image with the name image location in our database.
you can observe that the HTML Attribute is enclosed in angle brackets and when the tag is closed you can see there is no slash in the angle brackets.
Basics of HTML:-


if img load fails then this text will appear MONITOR

<!DOCTYPE html> — This tag defines the language & version used to write the webpage.
<html> — This tag defines the start of HTML code.
<head> — In this we write Internal CSS using style tag , scripts etc and various other metadata

<body> — In this we write the code which will be displayed on the webpage.
Coding
An example of HTML code:-
<html>
<head>
    <title>
        Title of webage
    </title>
</head>
<body>
    <p>
        paragraph tag for text etc
        <img src="img location" alt="img alternate text">
    </p>
</body>
</html>

You May Also Like

0 comments