This webpage is built using Web Technologies like Html, CSS and JavaScript.
The webpage is built to exhibit the capabilities of
HTML and CSS in webpage development and providing an interactive interface that universally unites the globe using international
network and world-wide web.
Following on the syllabus of Computer Application, our first stop is Introduction To Html
A Markup language is a a programming language without strict rules.
The common syntax for html looks like
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
</body>
</html>
As visible, our code begins with the html tag, it is important to note that <HTML> defines the start of an HTML document and
its closing </html> defines the end of such a code.
The next element is the <HEAD> tag that
is used to embed CSS and JavaScript documents in HTML. It is note-worthy that viewport and SEO works in this tag.
The other main tag we have is <Body> tag. This tag is used to include all the content of the webpage and thus forms its
body of the webpage.
Now let us look at some of the attributes of the body tag. It is also to be noted that all these tags are container tags and not empty tags so they require an ending with /.
| Attributes of Body tag | ||||
|---|---|---|---|---|
| Background | It is used to set an image as background. Syntax:background="S.png" |
|||
| link | Used to set the default color of a link. | |||
| Alink | Used to define the default color of an active link. | |||
| Vlink | Used to set the default color of a visited link. | |||
Now that we know the attributes, let us look at some tags to use in the body.
First, Let us look at some tags related to fonts.
WE HAVE:
Also, <Basefont> has 3 attributes being
Now let us look at the attributes of the font tag. Its attributes are as follows
Now let us take a note of some other tags.
Some other tags (useful) are :
Now Let's look at some specifics of the table in html.
Table is a collection of rows and columns that helps us in organising data. In html, a table can be created using the <Table> Tag
Here is an example for the code of a table
<HTML>
<body>
<Table>
<tr>
<th colspan="2">
Table
</th>
</tr>
<tr>
<td>
This is a cell.
</td>
<td>
This is another cell.
</td>
</tr>
</table>
</body>
</html>
Now perhaps it is time to look at some useful attributes of the table tag. Some attributes of the table tag are mentioned below.
| Attributes Of Table tag | ||||
|---|---|---|---|---|
| align | Sets the alignment of the table | |||
| border | Is used to define the width of the border. | |||
| cell-padding | Is used to define the space between the cell and its elements | |||
| Cell-spacing | Is used to define the space between individual cells | |||
| bgcolor | sets the background color for the table | |||
| colspan | Is used to merge the cells horizontally(sideways) | |||
| Rowspan | Is used to merge cells vertically(downwards) | |||
So moving on, the next thing we have on agenda is,
Lists in HTML.<ol> tag for ordered list, <ul> tag for unordered list and finally <dl> for description list initiation. For, listing/enumerating items we use
the <li> tag. ALL OF THESE TAGS ARE CONTAINER TAGS.
Here is what a sample code for an ordered list looks like:
<HTML>
<body>
<ol>
<li>hello</li>
</ol>
</body>
</html>
The attributes for <ol> tag are
*Type is used to define the symbol for each list enumeration and start is used to define the starting point in the series of such a progression.
Forms in HTML
Forms in Html provide websites a way to accept user input in multiple forms, making them interactive and capable of accepting user input. In HTML we can create a form by using the <Form> tag.
<HTML>
<body>
<Form>
<label>Gender</label>
<input type="radio" name=gender value="Male">
<input type="radio" name=gender value="Female">
</Form>
</body>
</html>
*For the form, we can use multiple we first need to use FORM tag, proceeded by Label tag which requires a closing, it may be noted that label is for the specific input feild.
Elements
Wrapping up our Html Tags, we finally reach the <A> tag, Audio, Video and other such tags.
The syntax for a tag is as follows:
<HTML>
<body>
<a href="https://youtu.be/P7K_cKXQtk4?si=Ax7yAbTicCwXwUwc" target="_self">
Rohit sir's Youtube video.
<A>
</body>
</html>
Its syntax is:
<HTML>
<body>
<img src="abc.jpg" alt="A Honeybee">
</body>
</html>
The syntax for the above would look like this:
<HTML>
<body>
<audio src="abc.mp3" type=audio/mpeg">
</body>
</html>
| Attributes of Video tag | ||||
|---|---|---|---|---|
| src | Indicates the source of the video. | |||
| type | Indicates the format and protocols | |||
For CSS, this site is designed on Modern CSS, however for class 10th CSS you can review Rohit Sir's youtube video that covers this topic very well.
Link to Rohit sir's video on Youtube.