HTML Language Exercises for Beginners
HTML Language Exercises for Beginners
HTML languageHTML, acronym for HyperText Markup Language ("hypertext markup language"),
<HTML>
<HEAD>
<TITLE>Mi primera página</TITLE>
<HEAD>
<BODY>
<CENTER><H1>My first page</H1></CENTER>
<HR>
This is my first page
</BODY>
</HTML>
2.- Save it with the name [Link]
3.- Start the browser and open the file you just created.
Exercise 2
Edit the file [Link] and put the following body on the page.
TITLE 1
TITLE 2
H3 TITLE 3
<H4>TÍTULO 4</H4>
TITLE 5
TITLE 6
Save it with the name [Link] and then open it with the browser.
Exercise 3
1.- Edit the file [Link] and put two or three paragraphs in the body (three or four lines each paragraph).
tomados del artículo de la energía en Andalucía. Separa los párrafos sin poner etiquetas, sólo pulsandoIntro
Once or twice. Save it, and then edit it with your browser. Note that the paragraphs appear together.
2.- Continue editing the file, add <P> tags to each paragraph. Save the file and open it with the
browser.
3.- Increase the spacing between paragraphs with <BR> and <P>.
Exercise 4:
To check how texts can be aligned.
1.- Edit the file [Link] and justify all paragraphs with <DIV align=justify>. Check.
in the browser the presentation.
2.- Now center the paragraph and align the second one to the right. Check the result.
Exercise 5:
Para cambiar el aspecto de la letra
1.- Edit the file [Link] and put the appropriate tags on the sentences of the first paragraph.
to appear in bold, italic, and monospace.
2.- Use the <FONT> tag with size = 1,2, etc., to have the first words of the second paragraph in
growing size.
3. Now use the <FONT> tag with size = + 1, - 1, + 2, - 2, etc. to have the first words of the second
paragraph in increasing and decreasing size.
Exercise 6:
To check the color [Link] guide
Black Silver Gray White Maroon Red Purple Fuchsia
Green Lime Olive Yellow Navy Blue Teal Water
1.- Create a file [Link] with several lines like the following, one for each of the
colors of the previous table.
Red
Exercise 7:
1.- Create a file [Link] with the following text:
Red 100%
Red 50%
Red 25%
Green 100%
Green 50%
Green 25%
Blue 100%
Blue 50%
Blue 25%
Exercise 8:
To check how to create hypertext.
The most commonly used mechanisms are the following:
1.- Create a page called [Link] where you can put links to interesting sites.
example, you can start with the following text:
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; char-
set=ISO-8559-1
<TITLE>Sitios de interés</TITLE>
</HEAD>
<BODY>
<CENTER>
My favorite pages
</CENTER>
<HR>
These are my favorite pages:
<P><A HREF="[Link]
IES Alfonso Romero
Barcojo
</BODY>
</HTML>
Exercise 9:
To check how lists are made.
Unordered lists:
Sorted lists:
Exercise 10:
Haz una lista desordenada con los nombres:Desayuno, almuerzo, Merienda y Cena.