- geeky4u
Table of Contents
What are the basic HTML codes?
The term HTML code defines the standard content or information which is to be written into the Text editor. Every code was written by some standard set of rules which are predefine under the standard libraries. HTML Code is nothing but the secret or encoded content written under the text editor which is to be displayed on your web browser as an output. The HTML code consist of different tags some tags are basic and some are used for formatting.
<! DOCTYPE html > – This tag is use for declaration purpose. It Helps the web browser to identify the given web page is written in the mark-up language.
< html > – This is a root of HTML. All the content that will start within HTML and html tags will be displayed on the web page. html code starts with the < html > and end with </ html >.
For Example-< html > </ html >.
< head > – Head tag is used to show specific information about your web page. For Example- Document title, style, link, script, etc.
< title > – Title tag is used for providing the title for your web page. Which you can see in the browser link.
< body > – Body tag consists of total HTML contents like Heading, Paragraph, Image, Lists, Tables, etc. All the content which is written in the body tag will show on your web page as an output.
< h1 > to < h6 > – The Heading tag or use of HTML Headings is to show the document structure. The heading tag consists of six tags which are H1, H2, H3, H4, H5, and H6. < h1 > </ h1 > Represents most important and main heading and < h6 ></ h6 > Represents small heading and least important heading.
< p > – HTML < p > tag is use for representing paragraph. If you want to write a paragraph in your HTML document then a paragraph tag is used.
< br > – Br tag is used for a line break. While writing a paragraph if you wish to give a single line break and start your content from next time then the Br tag is used. Br tag does not consist of an end tag.
< ul > – ul means unordered list use for defining unordered list.
< ol > – ol means ordered list use for defining ordered list.
< img > – Html Image tag is use for Inserting an image into your HTML Page. Images are not directly inserted into your HTML page but it is linked with the web page.
< a > – < a > tag use to represent hyperlink which is also known as anchor tag. The anchor tag is having HREF as an attribute. HREF stands for “hypertext reference” which is used to give a link of browser, file e-mail, etc.
< form > – In HTML form tag is used to create a form through which users can fill in the information and give their input. In the form tag there are < input >, < label >, < button >, < select > etc.
< input > – Input tag used for giving input, through this tag users can able to give their own input on an output page.
< label > – label tag is generally used for giving the label to the input.
< button > – By using the button tag user can create a button under form.
What is the basic concept of HTML?
HTML is a Hypertext mark-up language. It is used for designing web pages that are to be displayed on the web browser.
HTML Describes the structure of a web page what how your web page looks like. “Hypertext” is nothing but the hyperlinks that your HTML page contains.
“Mark-up” is a collection of symbols or code which are generally used in a file-like structure of language which will be displayed on a web browser as an output. Mark-up helps the web browser to print the images, table, form, or any other content which you have written in your HTML document.
HTML is all about the use of different tags which are written into a text file. The HTML tag is the root of your HTML document. HTML tag can be written with the help of angle brackets (<) and (>). All HTML Tags starts with < tag > and ends with </ tag >.
The text in the HTML is saved as an HTML file with .html or .htm extension and you can see the output of your HTML code on different browsers like internet explorer, google chrome, edge, etc.
What is HTML document?
HTML Document is nothing but, what you write in the HTML text editor. Whatever you write in the HTML text editor comes under HTML document. The output of the HTML document can be shown in the form of a webpage or website.
Overall website or webpage works under HTML documents. Whatever changes made in the HTML document will be shown in the output as a website. How your web page will look like.
HTML has two aspects First comes under HTML document. Overall code comes under this and only the developer can see the coding. The second is for the user and can be visible in the browser. Users can access HTML websites anytime anywhere.
1.How do you create an HTML document?
For creating an HTML Document user need to follow three steps
You can create your HTML document under text editor like notepad, notepad++, etc. you can use any text editor according to your own choice. You can use an online editor as well as there are many text editors which supports different operating systems like windows Linux as well as macOS.
HTML documents consists of different tags, html elements, html attributes etc.
HTML Document is then saved by dot HTML (.html) or dot HTML (.htm) extension. This extension will helps to understand that the document is written into an HTML file also helps the browser that the document is written under HTML.
2.What is an HTML heading?
How to use heading in HTML
The Heading tag or use of HTML Headings is to show the document structure. Heading tag consists of six tags which are H1, H2, H3, H4, H5 and H6. < h1 > </ h1 > Represents most important and main heading and < h6 ></ h6 > Represents small heading and least important heading.
Example:
– Head tag is used to show specific information about your web page. For Example- Document title, style, link, script, etc.
<!DOCTYPE html> <html> <head> <title>heading</title> </head> <body> <h1> Here is my Main heading </h1> <h2> heading 2</h2> <h3> heading 3</h3> <h4> heading 4</h4> <h5> heading 5</h5> <h6> small heading 6</h6> </body> </html>
Output :

What is an HTML paragraph?
The HTML tag is used for representing paragraphs. If you want to write a paragraph in your HTML document then a paragraph tag is used.
Example:
<!DOCTYPE html> <html> <head> <title>Paragraph tag</title> </head> <body> <p> This is an example of paragraph tag. If you want to write a paragraph in your html document then paragraph tag is used </p> </body> </html>
What is the horizontal rule in HTML?
The horizontal rule in HTML is used in a paragraph, if the user wishes to add some line spacing between the paragraph like shift spacing or thematic break then the concept of the horizontal rule is used.
What is a horizontal rule tag in HTML?
In HTML horizontal rule in your HTML document.< hr >use in between the paragraph tag for providing line spacing between the paragraph.< hr > tag does not have an end tag.
Example:
<!DOCTYPE html> <html> <head> <title>hr tag</title> </head> <body> <h1>My main heading</h1> <p> Horizontal rule in html is use in paragraph, if user wish to add some line spacing between the paragraph like shift spacing or thematic break then the concept of horizontal rule is used. </p> <hr> <p> In HTML <hr> tag represents horizontal rule in your html document. <hr> tag use in between the paragraph tag for providing line spacing between the paragraph. <hr> tag does not have end tag. </p> </body> </html>
Output:

What is an HTML Image?
The HTML Image tag is used for Inserting an image into your HTML Page. Images are not directly inserted into your HTML page but it is linked with the web page. Image tag consists of src attribute which helps HTML content to specifies the URL of the image. The src attribute is an important attribute in the image tag. Src is a source where src specifies the location or path of the particular image where your image has been saved in your local computer.
Syntax: < img src=”Location to your image” >
Example:
<html> <head> <title>Image tag</title> </head> <body> < img src="D:\html\images\nature.png" width="700" height="500" > </body> </html>
Output:
