HTML BASIC TAGS
Introduction of Tags in HTML:
- HTML tags are just like that KEYWORDS type in HTML, which is defines that web browsers will format and display the content, with the help of tags, a web browser can distinguish between an HTML content and a simple content.
- HTML contain manually three main parts :
- Opening tag < >,
- Content
- Closing tag</>
- But some case HTML tags are unclosed.
- Very Impt point that HTML always read TOP to BOTTOM and LEFT to RIGHT.
- All HTML tags are enclosed within < > these brakets.
- Every tag must use Open tag<> "content" Close Tag </>.
- We can add elements inside the body tag to define the page the page layout
HTML Elements:-
- Everything from starting to the ending tag. Always remember this point in html.
<body> Opening Tags
Content
</body> Closing Tags
HTML Attributes: -
- Used to add more information corresponding to an HTML tags.
<b>Example-1 :- HTML Attributes :- </b><br>
<a href="https://technology369kk.blogspot.com/">It's my blog</a>
Here:- <a means :- anchor tags
href attributes
- We can either use single’….’ or double ‘’…’’ quotes in attributes format.
The Heading Tags:-
- Heading tags is used to marks heading in html. From h1 to h6, we have tags for the most important to the least least important heading.
<b>Example-2 :- The Heading tags :- </b><br>
<h1>It is called Major Heading </h1>
<h2> It is Called Heading</h2>
<h3> It is Called SubHeading </h3>
<h4> It is Called Minor Heading</h4>
<h5> It is Called Pragraph Heading </h5>
<h6> It is Called just a Normal Content Heading </h6>
The Paragraph Tags: -
- Paragraph tags are used to add paragraph to an HTML page.
<b>Example-3 :- The Paragraph tags :- </b><br>
<p>This is a simple Paragraph</p>
The Anchor Tags: -
- The Anchor tag is used to add links to existing content inside an HTML page.
<b>Example-3 :- The Anchor tags About Technology369kk :- </b><br>
<a href="https://technology369kk.blogspot.com/2021/10/what-is-sadsystem-analysis-and-design.html=">
<!-- Click here and go to SAD topics </a> -->
The Image Tags:-
- Image tags is used to add images in an HTML page.
<b>Example-3 :- The Image tags :- </b><br>
<!-- There are two types of link url add:- absolute url and relative url-->
<!-- This is absolute url-- -->
<img src="file:///D:/Learning%20File/BCA/BCA%203rd%20Sem/HTML/HTML%20by%20Cod
e%20With%20Harry/Chp_2%20All%20Example.html"width= "200" height="200" alt="This is my pic">
<!-- This is relative url-- -->
<img src="IMG_1172.JPG "width= "200" height="200" alt="This is my pic">
The Bold, italic, and Tags: -
- We can use bold, Italic, and Underline tags to use highlight the text as follows:
<b>Example-4:-Bold, italic, and Tags: :- </b><br>
<B> This Tags Used For Bold</B> <br>
<i> This Tags Used For Italic</i><br>
<u> This Tags used for underline</u><br>
<strike> This Tags used for Strike </strike><br>
<tt> This is Tags used for Monospaced</tt><br>
The Br Tags: -
- The br tags is used to create a new line break in an HTML Documents.
<b>Example-5:-br Tags: :- </b><br>
Hi, I'm Br tags <br>
Big and Small Tags: -
- We can make the text a bit larger and a bit smaller using big and small tags for respectively.
<b>Example-6:-Bid And Small Tags:- </b><br>
Hi, I'm <b><big>BIG </big></b> tags to another <br>
Hi, I'm <b><small>small</small></b> tags to another <br>
Subscript and Superscript: -
- We can add subscript and superscript in HTML as follows:
<b>Example-7:-Subscript and Superscript Tags:- </b><br>
<p> This is Tags used for Subscript Text</p>
<p> H<sub>2</sub>O</p>
<p> An Example:- Find squre roots formula</p>
<p>ax <sup>2</sup>+bx +c </p>
Pre Tags: -
- In HTML always ignore extra space and newlines, in order to display a pices of text as is, we use pre tag.
<b>Example-8:Pre Tags:- </b><br>
<pre>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel voluptatem dolore,
voluptas doloremque quae voluptate tempore corrupti cupiditate quisquam esse neque?
Iste vel doloremque corporis, quod aperiam officia quisquam eligendi odit iure quam quae
aliquam assumenda quasi at itaque nulla quidem voluptatibus laboriosam facere,
adipisci alias dignissimos ullam soluta ad.
</pre>
Hr Tags:-
- <hr> Tags in HTML is used to create a horizontal ruler often used to separate the content.
<b>Example-9: hr tags:- </b><br>
<p>Hi, I am Horizontal tags</p>
<hr>
Chapter -2 Practice Set:-
Q1. Create an HTML page with a heading(Title Heading), a Primary heading and a subheading which tags did you use?
Ans:- <h1>Mountain</h1>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Maxime dicta iusto cupiditate minus neque earum ipsam nam
nulla, perspiciatis natus consequuntur magni fuga error dolorum maiores autem, sequi quidem a?
<h2>Why is Mountain?</h2>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nihil a labore cumque vero delectus alias, quis aperiam ex
dolores. Illum quod numquam minus dolorem, sunt quia alias nisi pariatur autem libero earum excepturi, omnis velit
debitis eligendi dignissimos mollitia. Omnis!
<h3>Popular Mountain:-</h3>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Saepe unde aliquam natus officiis corrupti autem velit beatae
accusamus, magni quibusdam voluptates, nobis at incidunt dolores neque dicta facere dolorum in.
Q2. Create a page with 5 wallpaper image taken from the internet.
<a href="https://technology369kk.blogspot.com/ "><img src=="Enter image url from google "
alt="This is solution of Ques5 but not work "></a>
<a href="https://technology369kk.blogspot.com/ "><img src=="Enter image url from google "
alt="This is solution of Ques5 but not work "></a>
<a href="https://technology369kk.blogspot.com/ "><img src=="Enter image url from google "
alt="This is solution of Ques5 but not work "></a>
<a href="https://technology369kk.blogspot.com/ "><img src=="Enter image url from google "
alt="This is solution of Ques5 but not work "></a>
<a href="https://technology369kk.blogspot.com/ "><img src=="Enter image url from google "
alt="This is solution of Ques5 but not work "></a>
Q3. Use br and hr tags to display a pices of text with line breaks.
Ans:-
<p><b>I'm Q3 of solution used br tags for line breaks</b></p><br>
<hr>
<p><b>I'm Q3 of solution used hr tags for create a Horizontal line</b></p>
<hr>
Q4. Try to write the following chemical equation using HTML.
C+O2 --> CO2
Ans:- C+O <sub>2</sub> → CO <sub>2</sub>
Q5. Try to write a Wikipedia acritical using HTML.
Ans:- <h1>Programming Language</h1>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore laudantium nisi voluptatibus eaque autem voluptatum
molestiae dicta, distinctio tenetur fugit rem atque natus officiis deserunt mollitia nemo?
Fugiat, vel voluptatem!
Comments