0% found this document useful (0 votes)
6 views10 pages

HTML Practicals

The document provides an overview of HTML elements, including various heading levels and the use of anchor tags for hyperlinks. It includes examples of HTML code for creating formatted text, lists, and color specifications. Additionally, it discusses the structure of a webpage and how to implement background colors and fonts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
6 views10 pages

HTML Practicals

The document provides an overview of HTML elements, including various heading levels and the use of anchor tags for hyperlinks. It includes examples of HTML code for creating formatted text, lists, and color specifications. Additionally, it discusses the structure of a webpage and how to implement background colors and fonts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
ated in total six inbuilt sizes nam, six lev ed as hl, h2, h3, hd, h5 and h6. These are described in the HTML code Riven in figure 1.6. els of headings Oy ray ieaitea denies a ea ease i About Rainbow Rainbow

Rainbow

Rainbow

Rainbow Rainbow Rainbow © scanned with OKEN Scanner ‘Anchor Tag When text i displayed within an HTML document, besides the content and format speci ‘some extra information or reference to other entity is needed. Many times further explanation is so required. St of sach word or text that appears in different colotr (generally blue and tndetlined) ‘a called hyperlink. A hypertink is created using an element, where thea’ stands for an anchor. [Let us modify the file "[Link]” as shown in code listing 1.2. RAINBOW

_ Rainbow consists of seven colours, These colours are Violet, Indigo, Blue, Green, Yellow, Orange and Red. They are also scronymed as-VIBGYOR. *

Rainbow is caused by reflection of light in water droplets in the Earth's atmosphere, resulting ina spectrum of light appearing in the sky. Tttakes the form of multi coloured arc. © scanned with OKEN Scanner FFFFFF> — White colour 20 FFO000 — Red colour 7B FFFFO0> — Yellow colour 7B 000000 Black colour [Ss FFOOFFD Pink’Magenta colour> Gi) 0000FF> — Blue colour -a OOFFO0 — Green colour Ba Figure 2.5 : Some examples of colour tively you may use the colour names also as shown belov. inhowsjpg" becolor="Green"> - ‘may produce various colourful backgrounds by changing just the colour string. Try the HTML in code listing 2.1. -Bverything is pink here, if you call this pink ...... Code Listing 2.1 : HTML code for adding background © scanned with OKEN Scanner ~ ~ About Rainbow ~ This line is broken in
three parts. | Figure 2,7: Illustrating a horizontal rule ‘The output of code written in figure 2.7 is shown in figure 2.8 He //nome/oss/Desktop/[Link] ‘This line Figure 2.8: How browser displays the
command, © scanned with OKEN Scanner Notice Practicing Rainbow Colours

Attention Please!

The rainbow is made up of seven colours. When we mix all seven colours they will become a white colour. To demonstrate the experiment, we have arranged a laboratory session. The detail of the laboratory session is as follows:

Date + 6 August
Time : 9:30 am
Place First Floor, Lab-1
Instructor: I M Patel
Principal
© scanned with OKEN Scanner - xt ba) to Set dedault te~

This is some text!

This is some text!

This is some text! a | Code Listing 2.3 : Sample HTML code for testing font tag Try to write and view this code in a browser. The output will look similar to the one shown figure 2.10. SD Q [Gltieimomerpss.0esktopve17 Most Visited 6) Getting Sted G)Latest Headines v @Newihomerpaiesktoper? a This is some text! wert This is some text! This is some text! Figure 2.10 : Base font and font colour © scanned with OKEN Scanner ese Le | About my school - My School

atte bule ‘Homed/a> < Staff [Link]">Photo GalleryJa> :vent html">Events fotice htm!" >Notice ‘[Link]">Contact Usc/a> ‘

About My School

My school is one of the best and most reputed school of this offers education right from kindergarten to 12th standard. My school is equipped with all sorts of modern day facility to enhance education. My school has a pee ge activity lab, p>

My school offers teaching in English and Gujarati medium and is affiliated to Gujarat Secondary Education Board. The teachers in my school make learning easy and interesting by providing presentations and demonstrations. ‘Code Listing 2.4 : HTML code for the main page of My School website © scanned with OKEN Scanner sshead> My favourite food ....! ¥ ‘ My favourite food Chocolates chocolate,png"> es are good for health, better for hunger and best for mood ! ‘Do mot forget to clean your teeth until it is 10 late ! its and Dry Fruits "> Ary fruits are dy, though they are dried fruits! really very interesting ! © scanned with OKEN Scanner red List ‘ordered list contains items along with numbers or alphabets instead of bullets. To createan ordered in HTML, the
    tag and
tag pair is used. As usual, the items of thelist are enclosed within
  • and
  • tag pair. Code listing 4.3 shows the HTML example that ereates an ordered list. An ordered list:
  • Chocolates
  • ice-creams =
  • ‘i
  • Dry fruits
  • Code Listing 4.3 : HTML code for an ordered list © scanned with OKEN Scanner o> font size="6"> > <> ch> ion Coe Listing 44: HTML code to print Roman numbers as ballets tpt ofthe HTML code listing 4.4 is given in figure 4.5. You may try working with different @ scanned with OKEN Scanner

    You might also like