Create Your First Functional Component in React JS – Beginner's Guide

Image
Create Your First Functional Component in React JS  1. Introduction When you start learning React JS, one of the first things you will come across is the concept of components. At first, components may seem like just another programming concept, but they are actually the foundation of almost every React application. Think about a website you use every day. It may have a header, navigation menu, login form, product section, and footer. Instead of writing all these elements together in one large file, React allows us to create separate parts and manage them independently. These separate parts are called components. In this tutorial, we are going to create our first functional component in React. We will start with a very simple example and gradually understand how components are created, exported, imported, and displayed on a webpage.  2. What Is a Functional Component in React?   A functional component is simply a JavaScript function that returns a user interface using JSX...

Html anchor tag


  

How to Add HTML  Anchor Tag 


anchor tag html

 

Anchor Tag 

The <a> tag define hyperlink 

 1]  Html anchor tag define hyperlink this use to link from one           page to another.

 2]  Its create hyperlink to other web page as well as files, location 

 3]  Most important attribute of<a> element is the href attribute.

 4]  when link is clicked it redirects the user to that page.

 5]  The <a> tag creates a clickable link.

 6] The href attribute sets the target page or site 

example:- webdesigningtheory.blogspot.com/

7] The target attribute specifies in what tab ,window to open the new       page.

 8]  Its href  <a>  attribute  creates a hyperlink to web page, files                 email addresses ,locations in the same page else URL address.

 9]    hyperlink its important to the website ,web page  ,or part of the          same web page to link to.

10]  In addition to the href attribute website linking to open in                  another browser tab. you just need to set  the value of the target          attribute  to blank.

 11]  <a> hyperlink is the Global attribute / event attribute =supports 

       which indicates the links destination.

default link :

 unvisited link -blue

 visited link-purple

 active  link- red


Q. What is the Anchor Tag  html?

An anchor is a piece of text which marks the beginning and/or the end of a hypertext link. The text between the opening tag and the closing tag is either the start or destination specifies where to open the linked document.


Syntax

<a href="https://webdesigningtheory.blogspot.com
/?m=1">webdesigningtheory.blogspot</a>


 Example

<!DOCTYPE html>
<html>
<head>
   
    <title>Document</title>
</head>
<body>
<h2>visit the link</h2>
   <ul>
    <li><a
href="https://webdesigningtheory.blogspot.com
/?m=1">Website 1</a></li>
<li><a href=
"https://webdesigningtheory.blogspot.com/?m=1">
Website 2</a></li>
    <li><a href=
"https://webdesigningtheory.blogspot.com/?m=1">
Website 3</a></li>
   </ul>  
</body>  
</body>
</html>




Output :-
<a> hyperlink output


Related Post:-

inline css in html

responsive image grid html,css program

css menu design

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples