html&css
html&css
webpages?
A static website is one where web pages are delivered exactly as they are stored,
with no
real-time content changes.
A dynamic website generates content in real time, typically using databases and
scripting languages to provide interactivity and personalized experiences.
Make a folder then open vsCode create a new file (eg: index.html) then press
shift+! for root element and then start your content in body section.
HEADING
<h1>text here</h1> to <h6>text here</h6>
<br> - break
Empty element:- Some Html elements have no content or donot have an end tag those
elements are empty element.
for example:- <br> <hr>
<a> tag defines a hyperlink. the href attributes specifies the URL of the page the
link.
--------------------------------------------------
LOGIN--------------------------------------------------
<h1>LOGIN</h1>
<label>Username</label><br>
<input type="text" placeholder="Enter your username"> <br><br>
<label>Password</label><br>
<input type="password" placeholder="Enter your Password"><br><br>
<input type="button" value="Login">
------------------------------------------------
RegistrationForm-----------------------------------------
-------------------------------------------image in
html--------------------------------------------
------------------------------------------video in
html-------------------------------------------
------------------------------------------Audio in
html-----------------------------------------
----------------------------------ol ul and li in
html--------------------------------------------
-------------------------------------------Table in
html------------------------------------------
<table border="1">
<th colspan="6">
Arena Animation
</th>
<tr>
<td colspan="6">
Ankit Verma Student of Arena Animation <br> DOJ: 2022
Male
</td>
</tr>
<tr>
<td>Subject Code</td>
<td>Subject Name</td>
<td>Min Marks</td>
<td>Max Marks</td>
<td>Marks Obtained</td>
<td>Remark</td>
</tr>
<tr>
<td>101</td>
<td>Hindi</td>
<td>35</td>
<td>100</td>
<td>86</td>
<td>D</td>
</tr>
<tr>
<td>102</td>
<td>English</td>
<td>30</td>
<td>100</td>
<td>80</td>
<td>D</td>
</tr>
</table>
-----------------------------Datalist VS Select------------------------------
-----------------------------CELLPADDING AND
CELLSPACING--------------------------------------------
-----------------------------------
DOM---------------------------------------------------------------
----------------------------------------Anchor
tag----------------------------------------------
Its used for connect pages.
index.html
<a href="gsap.html">Next page</a> (first page)
gsap.html
<a href="index.html">Back</a> (second page)
--------------------------------------
CSS3----------------------------------------------------
internal link for css :- <style> " write your css here"</style> (write inside
head section)
css properties
HTML:-
<div class="box">
<h2>Login Form</h2>
<form action="">
<input type="text" placeholder="Enter your username"> <br><br>
<input type="password" placeholder="password"> <br><br>
<input type="checkbox"> Remember me <br><br>
<button>Login</button> <br><br>
</form>
</div>
CSS:-
.box{
width: 200px;
height: 200px;
background-color: bisque;
text-align: center;
}
button{
width: 150px;
background-color: green;
border: none;
color: aliceblue;
}
-----------------------------------------Image in
Css-----------------------------------------------------------
HTML:-
<div class="box"></div>
CSS:-
.box{
width: 400px;
height: 400px;
border: solid 2px black;
background-image: url(img/botdownloader.com-1703573408.486728.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
-------------------------------------------Border in Css
------------------------------------------------------------
HTML:-
<div class="box"></div>
css:-
.box{
width: 400px;
height: 400px;
background-color: aqua;
border: solid 2px black;
border-radius: 50px;
}