HTML Basic Introduction:-
Learn HTML:-
HTML(hypertext markup language) is the markup language that we use for making a website. HTML is the structure of any website. HTML is a straightforward language. You can learn it simply on this website for any query.
HTML simple title, paragraph, and heading code use this code in vs code (virtual studio code).
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
The above code is simple HTML code explained below:-
<!DOCTYPE html>
It means this type of document is HTML.
<html>
HTML means it is the root of the element of an HTML page.
<head>
Head means this is the head section head start from here. Head describes the meta-information about the web page that we want to create.
<title>
It means this is the title of the web page that we want to create. The title element describes the title of the HTML page that is shown to us on the browser title bar.
<body>
The body is the main part of the website Here we describe our website. In the body, we tell our viewers what will be on the website that is shown there on the screen.
EG:-image, hyperlink, tables, lists, paragraphs, and head.
In the body section, we add images tables links that show other websites.
<h>
In the h section, we write the heading of the body or paragraph that we want to write. There are 6 types of headings h1 is a large heading after that h2, h3, h4, h5, and h6 will come.
<p>
In the p section, we describe the paragraph of the body.
<element>
Element is everything that shows us in <> from the start tag to the end tag.
EG:- <h>, <p>, <br> etc.
<attribute>
Attributes define more about the element. HTML can have attributes. Attributes are always specified from the start tag.
EG:- (href)(hyperlink), src attribute to use in IMG tag width and height, alt attribute.
An attribute will come always after the element.
<hr>
hr tag used for a thematic break in between some text. If you want to use break some text or want to line break you have to use <hr> tag.
<br>
This tag is also used for breaking lines. Basically, most people use <hr> tag for taking space in between some text but most people use <br> for a line break.
<pre>
This tag is used for preformatted text. It means if you write any text or simple in the coding or backend you want that text or simple as it is You can use <pre> tag this tag will help you to keep your simple same as it is that you write in the backend.
<style>
This tag is used for styling our website more responsive or make it attractive.
EG:- In this tag, you can change the color of your text, and text background, make a border, and also give a border color, etc.
<b>
This tag is used to prominent your text or bold your text.
<strong>
This is used for important text. This tag will make your text bold.
<i>
This tag is used for italic text. If you want to change or want your text will show differently then you have to use <i>.
<em>
This tag is used to emphasize text.
<mark>
This tag is used to mark any text. If you want to mark any text then you have to use <mark> tag then your text will be marked that you want.
<small>
Small tags are used for smaller text. If you want my text will be smaller than other text then you should have to use the <small> tag from this tag your text will be shown as smaller than other text.
<del>
This tag is used to delete or show a line on deleting words.
<ins>
Use this tag to underline any text. You can use also an underline tag to underline any text.
<sub>
Use <sub> text to subscribed text. It means from this tag your text will show smaller than other text but at the right side of the bottom.
<sup>
This tag will help to show small text on the right side of the bottom.
<blockquote>
Use this tag for long quotations. If you want to quote any quotation you use <blockquote> tag.
<q>
If you want to quote any short quotation or one-line quotation then use <q> tag.
<abbr>
If you want any text to stand for or abbreviate any text then use <abbr> tag.
<address>
Use < address> tag for contact information.
0 Comments