Computer Science, asked by harpuneetkaur, 5 months ago

Write one basic program using HTML language using head,title, paragraph and heading tags.
Also write Rules for writing HTML code.

It's my project. please tell please it is urgent ​

Answers

Answered by Anonymous
2

Basic HTML program:

<html>

<head>

<title>HTML Elements Reference</title>

</head>

<body>

<h1>This is a heading</h1>

<p>This is a paragraph.</p>

</body>

</html>

Rules for writing HTML code:

1. Tags are always surrounded by angle brackets (less-than/greater-than characters), as in <HEAD> .

2. Most tags come in pairs and surround the material they affect. They work like a light switch: the first tag turns the action on, and the second turns it off. (There are some exceptions. For instance, the <BR> tag creates a blank line and doesn't have an "off switch.")

3. The second tag--the "off switch"--always starts with a forward slash.

4. First tag on, last tag off.Tags are embedded, so when you start a tag within another tag, you have to close that inner tag before closing the outer tag. For instance, the page will not display properly with the tags in this order:

<HEAD><TITLE>Your text</HEAD></TITLE>.

The correct order is:

<HEAD><TITLE>Your text</TITLE></HEAD>.

5. Many tags have optional attributes that use values to modify the tag's behavior. The <P> (paragraph) tag's ALIGN attribute, for instance, lets you change the default (left) paragraph alignment. For example, <P ALIGN=CENTER> centers the next paragraph on the page.

Similar questions