HTML2
HTML2
Document
Dream Science and Technology
Department of Web Development and Database
Administration
Compiled by:-
Bedru Y.
Jan,2024
Wollo, Ethiopia
Presentation Outline
Introduction to Markup Language
Creating Document Structure
Validate Document
Markup Language
• An end tag contains the same name as the start tag, but it is
preceded by a slash(/).
• End tags never contain attributes.
• For some tags, the end tag is optional and the browser
determines when the tag ends by context.
• This practice is most common with the <p> (paragraph)
tag.
• Browsers have supported the <p> tag without its end
tag
HTML Attributes
Tags Usages
Anything that appears within <b>...</b>
<b>...</ element, is displayed in bold
b>
<i>...</ Anything that appears within <i>...</i>
i> element is displayed in italicized
<u>...</ Anything that appears within <u>...</u>
u> element, is displayed with underline
<strike> Anything that appears within
...</ <strike>...</strike> element is displayed
strike> with strikethrough
<sup>... The content of
</sup> a <sup>...</sup> element is written in
Grouping Content
• Table Heading
• Table heading can be defined using <th> tag.
• This tag will be put to replace <td> tag, which is used
to represent actual data cell.
• Normally you will put your top row as table heading as
shown below, otherwise you can use <th> element in
any row..
HTML Tables
HTML Tables
• Tables Backgrounds
• You can set table background using one of the following
two ways:
• bgcolor attribute - You can set background
color for whole table or just for one cell.
• background attribute - You can set
background image for whole table or just for one
cell.
• You can also set border color also using bordercolor
attribute.
HTML Tables
• Tables Backgrounds
• You can set table background using one of the following
two ways:
• bgcolor attribute - You can set background
color for whole table or just for one cell.
• background attribute - You can set
background image for whole table or just for one
cell.
• You can also set border color also using bordercolor
attribute.
HTML Tables
• Tables Backgrounds
HTML Tables
• Table Caption
• The caption tag will serve as a title or explanation
for the table and it shows up at the top of the
table.
HTML Lists
• It generate
HTML Text Links
• The target Attributes
• We have used target attribute in our previous
example.
• This attribute is used to specify the location where
linked document is opened. Following are possible
options:
HTML Text Links
• The target Attributes
• Try following example to understand basic
difference in few options given for target attribute.
HTML Text Links
• Setting Link Colors
• You can set colors of your links, active links and
visited links using link, alink and vlink attributes
of <body> tag.
HTML Text Links
• Download Links
• You can create text link to make your PDF, or DOC
or ZIP files downloadable.
• This is very simple, you just need to give complete
URL of the downloadable file as follows:
HTML Image Links
• We have seen how to create hypertext link using text
and we also learnt how to use images in our webpages.
• Now we will learn how to use images to create
hyperlinks.
• It's simple to use an image as hyperlink. We just need to
use an image inside hyperlink at the place of text as
shown below
HTML Forms
• HTML Forms are required when you want to collect some
data from the site visitor.
• For example during user registration you would like to
collect information such as name, email address, credit
card, etc.
• There are various form elements available like
text fields, textarea fields, drop-down menus,
radio buttons, checkboxes, etc
HTML Forms
HTML Forms
HTML Forms
• Checkbox Control
• Checkboxes are used when more than one option is
required to be selected.
• They are also created using HTML <input> tag but
type attribute is set to checkbox.
HTML Forms
• Checkbox Control
HTML Forms
• Button Controls
• There are various ways in HTML to create clickable
buttons.
• You can also create a clickable button using <input>
tag by setting its type attribute to button.
• The type attribute can take the following values:
HTML Forms
• Button Controls