• Keyboard Shortcuts

    Shortcut keys help provide an easier and quicker method of navigating and executing commands in the computer software.

  • Hardware Tips

    Learn about the latest computer hardware and find out how to diagnose

  • Knowledge Practise questions and answers

    Here you can practise more questions and answers to improve your knowledge on computer

Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Thursday 5 July 2018

MOVING AHEAD WITH HTML

MOVING AHEAD WITH HTML


 We have learnt about how to create HTML document in NOTEPAD and view it in any web browser. We have also learnt about some tags and attributes of HTML. Let us learn some more HTML codes in this chapter.

MARQUEE Element

The MARQUEE element is used to insert scrolling text anywhere in a web page. The code given below will display the text "INTRODUCTION TO HTML" to scroll from right to left in the Web page.

<BODY> <MARQUEE> INTRODUCTION TO HTML
</MARQUEE> </BODY> 

Attributes of the MARQUEE element are as follows.

BG COLOR Attribute

This attribute is used for specifying the background color of the scrolling text.


<BODY> <MARQUEE BGCOLOR = YELLOW> INTRODUCTION TO HTML
</MARQUEE> </BODY> 

The code given above will display YELLOW as the background color for the scrolling text.

DIRECTION Attribute

This attribute is used for specifying the DIRECTION of the scrolling text. The direction can be specified as either LEFT or RIGHT. By default the text scrolls from right to left.

<BODY> <MARQUEE DIRECTION = LEFT> INTRODUCTION TO HTML
</MARQUEE> </BODY> 


The code given above will display the text to scroll from left to right.

BEHAVIOR Attribute

The BEHAVIOR Attribute is used for specifying the movement of the scrolling text. The values for the BEHAVIOR attribute can be specified as SCROLL, SLIDE or ALTERNATE.

Saturday 4 November 2017

Setting Background for a Web page

Setting Background for a Web page

We can make our web page attractive by adding an image in the background or by giving a color to the background.

Attribute are extra bits of information that appear inside tag.

The BGCOLOR Attribute

To add a color to the background of a Web page the BGCOLOR attribute is used. There are predefined colours names that can be assigned to the bgcolor attribute in an HTML document. They are Black, Red, Gray, Blue, Olive, Navy etc.

BGCOLOR Attribute can be assigned by hexadecimal triplet. A hexadecimal triplet is a combination of three colours, namely Red, Green and Blue. In th hexadecimal triplet, there are six digits; the first two digits represent red, the next two green and last two blue, preceded by a hash (#) symbol.

For example

<BODY BGCOLOR = "BLUE">

THIS IS MY FIRST WEB PAGE.
</BODY>

Or

<BODY BGCOLOR = "#1D36F6">

THIS IS MY FIRST WEB PAGE.
</BODY>


Few Hexadecimal Values

Black           #000000
White           #FFFFFF
Red              #FF0000
Green           #00FF00
Blue              #0000FF
Yellow           #FFFF00
Cyan             #00FFFF
Magenta          #FF00FF


Thursday 29 June 2017

HTML

First developed by Tim Berners-Lee in 1990, HTML is short for HyperText Markup Language. HTML is used to create electronic documents (called pages) that are displayed on the World Wide Web. Each page contains a series of connections to other pages called hyperlinks. 

Every web page you see on the Internet is written using one version of HTML code or another.
 

HTML code ensures the proper formatting of text and images so that your Internet browser may display them as they are intended to look. Without HTML, a browser would not know how to display text as elements or load images or other elements. 

HTML also provides a basic structure of the page, upon which Cascading Style Sheets are overlaid to change its appearance. One could think of HTML as the bones (structure) of a web page, and CSS as its skin (appearance).

What does an HTML tag look like?
There are not many components. Almost all HTML tags have an opening tag that contains the name with any attributes and a close tag that contains a forward slash and the name of the tag that is being closed. For tags that do not have a closing tag like the <img> tag, it is best practice to end the tag with a forward slash.
 

Each tag is contained within a less than and greater than angle brackets and everything between the opening and closing tag is displayed or affected by the tag.  
What does HTML look like?
The following is an example of a basic web page written in HTML as well as a description of each section and its function.
 

<!DOCType HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head>
<title>Example page</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<h1>This is a heading</h1>
<p>This is an example of a basic HTML page.</p>
</body></html>

The box above contains the key ingredients to a basic web page. The first line (DOCType) describes what version of HTML the page was written in so that an Internet browser can interpret the text that follows. Next, the HTML opening tag lets the browser know that it is reading HTML code. The HTML tag is followed by the head section which contains information about the page such as its title, meta tags, and where to locate the CSS file. The body section is all content that is view able on the browser. For example, all the text you see here is contained within the body tags. Finally, closing tags wrap each element for proper syntax.
 

What is HTML5?

HTML5 is the update made to HTML from HTML4 (XHTML follows a different version numbering scheme). It uses the same basic rules as HTML4, but adds some new tags and attributes which allow for better semantics and for dynamic elements that are activated using JavaScript. New elements include section, 

<article>, <aside>, <audio>, <bdi>, <canvas>, <datalist>, <details>, <embed>, <figure>, <figcaption>, <footer>, <header>, <keygen>, <mark>, <meter>, <nav>, <output>, <progress>, <rp>, <rt>, <ruby>, <time>, <track>, <video>, and <wbr>. There are also new input types for forms, which include tel, search, url, email, datetime, date, month, week, time, datetime-local, number, range, and color.
 

With the increasing movement to keep structure and style separate, a number of styling elements have been removed along with those that had accessibility issues or saw very little use. These following elements should no longer be used in HTML code: <acronym>, <applet>, <basefont>, <big>, <center>, <dir>, <font>, <frame>, <frameset>, <noframes>, <strike>, and <tt>. HTML5 also simplifies the doctype declaration to the tag in the following box.
<!doctype html>

What does HTML5 look like?
As shown below the HTML5 code is very similiar to the earlier HTML4 example, but is much cleaner with the revised doctype tag.
 

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Example page</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is an example of a basic HTML page.</p>
</body>
</html>

How to create and view HTML
Because HTML is a markup language it can be created and viewed in any text editor as long as it is saved with a .htm or .html file extension. However, most find it easier to design and create web pages in HTML using an HTML editor.
Once the HTML file is created it can be viewed locally or uploaded to a web server to be viewed online using a browser.
 

Which file extensions are used with HTML?
HTML files use either the .htm or .html file extension. Older versions of Windows (Windows 3.x) only allow three-letter file extensions, so they used .htm instead of .html. However, both file extensions have the same meaning, and either may be used today. That being said, we recommend sticking to one naming convention as certain web servers may prefer one extension over the other.



Good Morning Beautiful

Do you know????

Do you know????
/