create an HTML document about ur school with the following requirement (a) title my school (b) write five sentences about your school with horizontal rule between them (c)the background colour of your web page should be yellow and text in red(d) save the file with the name school. HTML(e) close Notepad and execute the file on the browser to see the output
Answers
Answer:
Explanation:
STEP 1: WRITING THE HTML
For this tutorial, I suggest you use only the very simplest of tools. E.g., Notepad (under Windows), TextEdit (on the Mac) or KEdit (under KDE) will do fine. Once you understand the principles, you may want to switch to more advanced tools, or even to commercial programs, such as Style Master, Dreamweaver or GoLive. But for your very first CSS style sheet, it is good not to be distracted by too many advanced features.
Don't use a wordprocessor, such as Microsoft Word or OpenOffice. They typically make files that a Web browser cannot read. For HTML and CSS, we want simple, plain text files.
Step 1 is to open your text editor (Notepad, TextEdit, KEdit, or whatever is your favorite), start with an empty window and type the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>My first styled page</title>
</head>
<body>
<!-- Site navigation menu -->
<ul class="navbar">
<li><a href="index.html">Home page</a>
<li><a href="musings.html">Musings</a>
<li><a href="town.html">My town</a>
<li><a href="links.html">Links</a>
</ul>
<!-- Main content -->
<h1>My first styled page</h1>
<p>Welcome to my styled page!
<p>It lacks images, but at least it has style.
And it has links, even if they don't go
anywhere…
<p>There should be more here, but I don't know
what yet.
<!-- Sign and date the page, it's only polite! -->
<address>Made 5 April 2004<br>
by myself.</address>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>My School</title>
</head>
<body style="background-color:yellow; color:red;">
1. My school is very big. <hr>
2. It has big classrooms which are nicely ventilated.<hr>
3. My school has a big playground.<hr>
4. We love our teachers because they are very kind.<hr>
5. I am proud of my school because we all study here like a family.<hr>
</body>
</html>
The above HTML códe will give you proper output.
Steps to Follow
1. Open Notepad.
2. Paste the above códe in the Notepad.
3. Go to “File > Save As.”
4. Give a name to your file followed by .html extension ( for example mySchool.html )
5. After it is saved right click on the file and there will be an option "Open with" select it and then you will see Apps that can open the file. Select any browser and this will open your html file and you will be able to see the output.