<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
/>
<
meta
name
=
"viewport"
content="
width
=
device
-width,
initial-scale
=
1
.0" />
<
title
>Horizontal Tab Hover with
Tailwind CSS and JavaScript
</
title
>
<
link
rel
=
"stylesheet"
href
=
"style.css"
>
<
link
href
=
rel
=
"stylesheet"
/>
</
head
>
<
body
>
<
div
class
=
"flex bg-green-500 py-3 top-0"
>
<
div
class="tab cursor-pointer px-8 py-4 transition
duration-300 hover:bg-gray-100 transform
hover:translate-y-1"
data-tab
=
"tab1"
>HTML</
div
>
<
div
class="tab cursor-pointer px-8 py-4 transition
duration-300 ease-in-out hover:bg-gray-100
transform hover:translate-y-1"
data-tab
=
"tab2"
>Tailwind</
div
>
<
div
class="tab cursor-pointer px-8 py-4 transition
duration-300 ease-in-out hover:bg-gray-100
transform hover:translate-y-1"
data-tab
=
"tab3"
>Javascript</
div
>
</
div
>
<
div
class
=
"mt-4"
>
<
div
class
=
"tab-content hidden"
id
=
"tab1"
>
HTML stands for HyperText Markup Language. It creates
a complete website structure of web pages. HTML is a
combination of Hypertext and Markup language. Hypertext
defines the link between the web pages and markup
language defines the text document within the tag.
This HTML Tutorial provides basic to advanced concepts
for beginners and professionals.
</
div
>
<
div
class
=
"tab-content hidden"
id
=
"tab2"
>
Tailwind CSS is basically a Utility first CSS framework
for building rapid custom UI. It is a highly customizable,
low-level CSS framework that gives you all of the building
blocks that you need. Also, it is a cool way to write inline
styling and achieve an awesome interface without writing a
single line of your own CSS.
</
div
>
<
div
class
=
"tab-content hidden"
id
=
"tab3"
>
JavaScript (JS) is the most popular lightweight, interpreted
compiled programming language. It can be used for both
Client-side as well as Server-side developments. It is also
known as a scripting language for web pages. This free
JavaScript Tutorial is designed to help both beginners
and experienced professionals master the fundamentals of
JavaScript and unleash their creativity to build powerful
web applications. From basic syntax and data types to
advanced topics such as object-oriented programming and
DOM manipulation.
</
div
>
</
div
>
<
script
src
=
"index.js"
></
script
>
</
body
>
</
html
>