Assistant Professor, COER University
With over 8 years of experience as an Assistant Professor in the Department of Computer Science Application at Salesian College, I am passionate about teaching, mentoring and inspiring students to pursue their academic and professional goals. I have a Master's in Computer Application (MCA) and a Master of Business Administration (MBA) in Information Technology, and I specialize in Computer Architecture, Database Management Systems, Software Engineering, Data Science and Business Information Technology.
HTML (HyperText Markup Language) is the foundation of web pages. It's a simple and easy-to-learn language that structures content for websites.
<tag> content </tag>
<p> Paragraph </p>
<h2> Heading </h2>
<b> Bold </b>
<i> Italic </i>
<u> Underline </u>
<br> – Line Break
<hr> – Horizontal Rule
Important tags in the head section: <!DOCTYPE>, <title>, <link>, <meta>, <style>
<p>, <h1>-<h6>, <strong>, <em>, <abbr>, <acronym>, <address>, <bdo>, <blockquote>, <cite>, <q>, <code>, <ins>, <del>, <dfn>, <kbd>, <pre>, <samp>, <var>, <br>
<a>, <base>
<img>, <area>, <map>, <param>, <object>
<ul>, <ol>, <li>, <dl>, <dt>, <dd>
<table>, <tr>, <td>, <th>, <tbody>, <thead>, <tfoot>, <col>, <colgroup>, <caption>
1. <b> – Bold (physical)
2. <strong> – Important (semantic bold)
3. <i> – Italic (physical)
4. <em> – Emphasized text (semantic italic)
5. <mark> – Highlighted
6. <u> – Underlined
7. <tt> – Teletype (deprecated)
8. <strike> – Strikethrough (deprecated)
9. <sup> – Superscript
10. <sub> – Subscript
11. <del> – Deleted content
12. <ins> – Inserted content
13. <big> – Larger text (deprecated)
14. <small> – Smaller text
<table border="1" cellpadding="10" cellspacing="5" width="500" height="300" align="center" bgcolor="#f2f2f2">
<tr>
<td colspan="2">Merged Column</td>
</tr>
<tr>
<td rowspan="2">Merged Row</td>
<td>Data Cell</td>
</tr>
</table>
<form action="submit.php" method="POST">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<textarea rows="4" cols="50"></textarea>
<select>
<option value="IN">India</option>
<option value="US">USA</option>
</select>
<button type="submit">Submit</button>
</form>
CSS (Cascading Style Sheets) is used to style HTML elements and control layout, colors, fonts, and spacing.
<h1 style="color:blue;"><style> tag
selector {
property: value;
}
body {
background-color: #f0f0f0;
font-family: Arial;
color: #333;
}
h1 {
font-size: 24px;
text-align: center;
}
p {
margin: 10px;
line-height: 1.5;
}
div {
width: 300px;
padding: 10px;
border: 1px solid #000;
margin: 20px;
}
@media (max-width: 600px) {
body {
background-color: lightblue;
}
}
JavaScript adds interactivity to web pages. It can respond to user actions, update content, and control elements dynamically.
<button onclick="alert('Hi')"><script> tag
let name = "Radha";
const age = 21;
if (age >= 18) {
console.log("Adult");
}
function greet(user) {
return "Hello, " + user;
}
greet("Radha");
let fruits = ["apple", "banana"];
let person = { name: "Radha", age: 21 };
document.getElementById("title").innerHTML = "Welcome!";
document.querySelector(".btn").style.color = "blue";
document.getElementById("btn").addEventListener("click", () => {
alert("Clicked!");
});
Email: yadika.cse@coeruniversity.ac.in
LinkedIn: Yadika Prasad