Wednesday, July 17, 2024

IX CLASS MCQ 18 JULY 2024

 https://www.fyrebox.com/play/annrevgq2pnj3rjqn0/

https://www.fyrebox.com/play/annrevgq2pnj3rjqn0/

https://www.fyrebox.com/play/annrevgq2pnj3rjqn0/

https://www.fyrebox.com/play/annrevgq2pnj3rjqn0/

Thursday, July 4, 2024

HTML Links - Different Colors

 

HTML Links - Different Colors

By default, a link will appear like this (in all browsers):

  • An unvisited link is underlined and blue
  • A visited link is underlined and purple
  • An active link is underlined and red
Link is what it looks like normally, so on our page it would normally appear as green. It's just a normal link waiting to be clicked on. aLink changes the color of the link when you click on it, so after clicking on it, it changes from green to blue because it's Active. aLink = Active link. vLink is the color the link becomes *after* you close the new window, so it becomes red to let you know you've already Visited it. vLink= Visited link.




<html>
<head>
<title> Links in HTML </title>
</head>
<body link="green" vLink="red" aLink="blue"> Let's go to <a href="www.google.com">Google!</a> </body>
</html>


HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. <html> <head> <title> HTML HEADINGS</title> </head> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> </head> </body> </html>


What is the difference between basefont and font tag ?
basefont tag- 
Basefont tag is used to define default font, size and color for the whole text in an html document.
1. The <BASEFONT> tag sets a base font size for the entire document.
2. The closing tag </BASEFONT> is optional.

Attributes: This tag contains three optional attributes which are listed below: 

  • color: It is used to specify the default text-color of the document.
  • size: It is used to specify the default font-size of the document.
  • face: It is used to specify the default font-style of the document.

Font Tag-
1. The <FONT> tag applies font and text styling to a specific section of text enclosed within its opening and closing tags.
2. The closing tag </FONT> is must for the changes in appearance to take effect.

example:-
<HTML>
<BODY>
<BASEFONT size=“2” color=“Red">
Hi Everyone
<FONT size=“4”>
HTML is a Web language </FONT>
It is used for creating Web pages.
</BODY>
</HTML>
 Explain the topmargin and leftmargin attributes of <BODY> tag
topmargin
Sets a topmargin (distance between the top of the document and the top of the browser window) of your body element.
Syntax
<B0DY topmargin=“value”>
e.g.
<HTML>
<HEAD>
<TITLE> Topmargin </TITLE>
</HEAD>
<BODY topmargin=“65”>
LearCBSE is the best website for CBSE students.
</BODY>
</HTML>

leftmargin
Sets a left hand margin (distance between the left side of the document and the left edge of the browser window) of your body element.
Syntax
<BODY leftmargin=“value”>

e.g. 
<HTML>
<HEAD>
<TITLE> Leftmargin </TITLE>
</HEAD>
<BODY 1eftmargin=“65”>
HONESTY is the best policy.
</BODY>
</HTML>

ONLINE SAFETY QUIZ FOR ALL CLASSES

https://www.safekids.com/quiz/  https://www.nspcc.org.uk/keeping-children-safe/online-safety/quiz/ https://edu.gcfglobal.org/en/internetsafe...