Computer Science, asked by gdearking, 8 months ago

i. What are the rules required for writing HTML tags?​

Answers

Answered by kaviya1210
12

Explanation:

There are five important rules for coding with HTML tags.

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

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." Once you've made a line break, you can't unmake it.)

The second tag--the "off switch"--always starts with a forward slash. For example, you turn on bold with <B>, shout your piece, and then go back to regular text with </B>.

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>.

Pls Mark me as brainalist

Answered by priyanshirana298
13

Explanation:

1. Tags are always surrounded by bracket (less than /greater than characters) as in <HEAD>

2.most tags come in pair and surrounded the material they affect. they work like a light switch first turn for on and second turn for off.

3. First tag on , last tag off. tags are embedded.so when you start a tag with another tag you have to close that inner tag before closing the outer tag . for instesd the page will not display properly

Similar questions