Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Paragraph <p>
2. Horizontal Line <hr>
3. Line break <br>
4. Heading <h1> to <h6>
5. Div
6. Table
7. Lists – ordered and unordered, different bullet types in lists
8. Font family
9. Font size
10. Text align
11. Text formatting
<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Smaller text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text
12. Color – background, text, border
13. Links – Hyperlink, Image as link, link to email address
14. Image, image as background
15. Image Map
16. Forms – forms tag, different input types,
17. Favicon
18. Iframe
19. HTML Media – Audio and Video
20. Responsive website <meta>
Sure, here are the HTML tags for each point you listed:
CSS TAGS
Styling a Heading Element:
css
Copy code
h1 {
color: blue;
font-size: 24px;
font-weight: bold;
}
Centering an Element Horizontally:
css
Copy code
.center {
margin: 0 auto;
width: 50%;
}
Styling a Button:
css
Copy code
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
Creating a Responsive Layout:
css
Copy code
@media screen and (max-width: 600px) {
.responsive {
width: 100%;
}
}
Styling Links:
css
Copy code
a{
color: blue;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
Creating a Basic Flexbox Layout:
css
Copy code
.container {
display: flex;
justify-content: center;
align-items: center;
}
Styling Lists:
css
Copy code
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 10px;
}
CODE1-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Landing Page</title>
<style>
/* Body styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
/* Header styles */
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
/* Navigation styles */
nav {
text-align: center;
margin-top: 20px;
}
nav a {
color: #333;
text-decoration: none;
margin: 0 10px;
font-size: 18px;
}
.hero-section {
background-image: url('hero-image.jpg');
background-size: cover;
color: #fff;
text-align: center;
padding: 100px 0;
}
.hero-section h1 {
font-size: 36px;
margin-bottom: 20px;
}
.hero-section p {
font-size: 18px;
}
/* Footer styles */
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<h1>Welcome to Our Website</h1>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Contact</a>
</nav>
</header>
<main>
<section class="hero-section">
<h1>Discover Amazing Products</h1>
<p>Explore our collection of high-quality products.</p>
</section>
</main>
<footer>
<p>© 2024 Your Company. All rights reserved.</p>
</footer>
</body>
</html>
<head>
<title>Register - Simple E-Commerce</title>
</head>
<body>
<form>
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<br>
<br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<br>
<br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<br>
<br>
</body>
</html>
CODE 3 (Portfolio)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Isha's Landpage</title>
<style>
body {
margin: 0;
padding: 0;
background-image:
url('https://w0.peakpx.com/wallpaper/410/300/HD-wallpaper-blue-midnight-solid.jpg');
background-size: cover;
background-position: center;
font-family: Arial, sans-serif; /* Change the font family if needed */
header {
background-color: #162b4a;
color: #fff;
padding: 10px;
text-align: center;
}
nav {
display: flex;
justify-content: center;
background-color: #000000;
padding: 10px;
}
nav a {
color: #fff;
text-decoration: none;
padding: 10px 20px;
margin: 0 10px;
border-radius: 5px;
transition: background-color 0.3s;
}
nav a:hover {
background-color: #fffefe;
}
.content-container {
position: relative;
top: 100px; /* Adjust as needed based on your header height */
left: 20px;
background-color: rgb(255, 255, 255);
padding: 20px;
max-width: 600px; /* Adjust the maximum width of the black box */
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Add a shadow effect */
}
.content-container h2 {
margin-bottom: 10px;
}
.image-container {
position: absolute;
top: 100px; /* Adjust as needed based on your header height */
right: 20px;
padding-top: 180px;
padding-right: 180px;
}
</style>
</head>
<body>
<header>
<img
src="https://static.vecteezy.com/system/resources/thumbnails/008/653/792/small_2x/music-man-gamer-li
ne-pop-art-potrait-logo-colorful-design-with-dark-background-abstract-illustration-isolated-black-backgrou
nd-for-t-shirt-poster-clothing-merch-apparel-badge-design-vector.jpg" alt="Your Logo" width="80"
height="80" align="left">
<h1>Isha Chandravanshi</h1>
</header>
<nav>
<a href="#home">Home</a>
<a href="#skills">Skills</a>
<a href="#experience">Experience</a>
<a href="#projects">Projects</a>
<a href="#social-media">Social Media</a>
</nav>
<div class="content-container">
<h2>Welcome to my portfolio</h2>
</div>
<br>
<!-- Image on the right side -->
<div class="image-container">
<img src="isha.jpg" alt="Your Image" width="200" height="200">
</div>
</body>
</html>
CODE-3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Isha Chandravanshi - Portfolio</title>
<style>
body {
font-family: 'Times New Roman', sans-serif;
margin: 0;
padding: 0;
background-color: #87b5f6;
header {
background-color: #ffffff;
color: #460303;
text-align: center;
padding: 1em 0;
background-image:
url("https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Van_Gogh_-_Starry_Night_-_Google_Ar
t_Project.jpg/1280px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg") ;
background-size: cover;
background-repeat: no-repeat; /* Ensure the background image covers the entire header */
background-position: center; /* Center the background image */
}
section {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1{
color:#fff;
}
h2, h3 {
color: #000000;
}
p{
line-height: 1.6;
color: #264da1;
}
.project {
margin-bottom: 20px;
}
footer {
text-align: center;
padding: 10px;
background-color: #ffffff;
color: #fff;
background-image:
url("https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Van_Gogh_-_Starry_Night_-_Google_Ar
t_Project.jpg/1280px-Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg") ;
background-size: cover;
background-repeat: no-repeat; /* Ensure the background image covers the entire header */
background-position: center; /* Center the background image */
}
.center-image {
text-align: center;
}
</style>
</head>
<body>
<header>
<h1>Isha Chandravanshi</h1> <br>
<h1 style="transform: rotate(30deg);">Creative Writer|Programmer</h1>
</header>
<section>
<h2>About Me</h2>
<p>
Hello! I'm Isha Chandravanshi, currently pursuing a B.Tech in Computer Science and Business
Systems at NMIMS Indore.<br>
I am a passionate aspiring programmer and a creative content writer. My journey in the tech world
has equipped me
with<br>skills in oration, web development, and database management using MySQL Workbench.
</p>
</section>
<section>
<h2>Projects</h2>
<section>
<h2>Contact</h2>
<p>Email: <a href="mailto:isha.chandravanshi201@example.com"
target="_blank">isha.chandravanshi201@example.com</a></p>
<p>LinkedIn: <a href="https://www.linkedin.com/in/isha-chandravanshi-732356217/"
target="_blank">Isha Chandravanshi on LinkedIn</a></p>
<p>GitHub: <a href="https://github.com/example" target="_blank">Isha's GitHub</a></p>
</section>
<section class="center-image">
<img src="IMG_6178.JPG" width="600px" height="300px" alt="Isha Chandravanshi">
</section>
<footer>
<p>© 2024 Your Name. All rights reserved.</p>
</footer>
</body>
</html>