HTML
Before we start writing code first, we need to create a
primary structure of the HTML document, so that the browser can understand and
start working. The basic HTML structure looks like the following.
After writing the primary structure of the HTML document,
you will also write the tags and content you need. After that, you can see the
output in your browser. We know that HTML Sudu Mae is used for exposing content
in a basic format. To complete our content we need to use CSS, which is an HTML
insert and it creates an engaging user interface.
<!DOCTYPE html>
<html>
<head>
<title>Neon
Effect</title>
<link
rel="stylesheet" type="text/css"
href="style.css">
</head>
<body>
<h1
class="text">Easy Effect</h1>
<div>
<p
class="box">Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod
tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident,
sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</body>
</html>
CSS
Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.
body{
background-color:
black;
}
h1{
color: white;
margin: 50px;
padding:20px 45px;
font-family: verdana;
font-weight: normal;
font-size: 8em;
line-height: 1.3em;
text-align: center;
margin: 0 0 15px 0;
}
.text{
text-shadow: -2px -2px
10px #fff,
2px
2px 10px #fff,
0
0 20px #3bff00,
0
0 40px #3bff00,
0
0 60px #3bff00;
}
.box{
color: white;
margin: 100px;
padding-left: 20px
45px;
text-align: center;
border: 2px solid
#fff;
border-right: 40px;
font-size: 2em;
box-shadow: 0 0 50px
#fff,
inset 0
0 50px #fff,
0 0
20px #3bff00,
inset 0
0 20px #3bff00;
}
Free Source Code |
Youtube Channel |
Watch Full Video |
No comments: