HTML Introduction Part 3 : Tags Continued
Transcription/प्रतिलिपि
In last session we learned about, Paragraph Tag to set paragraph. Line Break Tag for new line. body tag with attributes to set Background image, Bgcolor for background color and, Text. Color Tag for setting color of the text to be displayed. For formatting of texts, we discussed Heading Tags for headlines, Font for setting font face, size and color. Plus, we can also make text bold, italic, and underline with respective texts.
In last session we learned about, Paragraph Tag to set paragraph. Line Break Tag for new line. body tag with attributes to set Background image, Bgcolor for background color and, Text. Color Tag for setting color of the text to be displayed. For formatting of texts, we discussed Heading Tags for headlines, Font for setting font face, size and color. Plus, we can also make text bold, italic, and underline with respective texts.
Let’s understand few newer tags, and associated attributes to make
are HTML page more attractive. All the HTML pages shown in this session has
code in the description for you to try. For this, open a notepad and copy the
code from description and save it as HTML file. Open saved HTML file by double
click to view the HTML.
We learned few of the attributes of body tag in last session. with
Left, and top margin Attribute. we can set margin or spacing from the top or
left in HTML document. The values can be given in pixels or percentage.
Paragraph tag is used to align text, in paragraphs. These
paragraphs, can also be aligned in different alignment like, left, center,
right, and justify, with align attribute.
where left attribute will Left-align text, right will Right-align
text, center will Center-align text, and justify Stretches the lines so that
each line has equal width like newspaper column
For Example -
Text to be displayed
html has provision to show number of items in list format, in two
ways,
first an ordered list. An ordered list starts with the OL tag. Each
list item starts with the LI tag. The list items will be marked with numbers by
default. which we can change with type attribute. Type attribute has 5 options
1, A uppercase, a lowercase, roman 1 uppercase, roman 1 lowercase
type="1" The list items will be numbered with numbers
(default)
type="A" The list items will be numbered with uppercase
letters
type="a" The list items will be numbered with lowercase
letters
type="I" The list items will be numbered with uppercase
roman numbers
type="i" The list items will be numbered with lowercase
roman numbers
unordered list. An unordered list starts with the UL tag. Each list
item starts with the LI tag. The list items will be marked with bullets (small
black circles) by default. However, like ordered list bullets of unordered list
can also be modified with the style attribute to disk, circle, square or none.
disc, Sets the list item marker to a bullet (default).
circle, Sets the list item marker to a circle.
square, Sets the list item marker to a square.
none, the list items will not be marked.
horizontal lines or horizontal rule tag, is used to separate
content (or define a change) in an HTML page. horizontal lines have 4
attributes to set the alignment, shade, size, and width of it.
marquee tag element is used to create a scrolling text, or an
image. Scrolling can be shown horizontally, or vertically. marquee tag has
number of attributes to define its behavior
Well Done! You have covered some more tags of HTML. To find out
more visit links in the description.
Like and subscribe for more videos.
Source: https://www.w3schools.com/tags/
http://www.w3docs.com/learn-html/html-marquee-tag.html
Code:
------------------------------------
Before Applying left and top margin
Notice the text is not spaced from top and left of the page.
------------------------------------
After Applying left and top margin
Notice the text is spaced from top and left of the page.
------------------------------------
After left alignment in paragraph
Notice the text is in the left of the page.
After center alignment in paragraph
Notice the text is in the center of the page.
After right alignment in paragraph
Notice the text is in the right of the page.
After justify alignment in paragraph
Notice the text is justified like newspaper, with text evenly distributed.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. ------------------------------------
Ordered List Type as 1, List will be 1,2,3,4
Ordered List Type as A, List will be A,B,C,D
Ordered List Type as a, List will be a,b,c,d
Ordered List Type as I, List will be I,II,III,IV
Ordered List Type as i, List will be i,ii,iii,iv
------------------------------------
Un-Ordered List Type as disk
Un-Ordered List Type as Circle
Un-Ordered List Type as Square
Un-Ordered List Type as None
------------------------------------
Horizontal Rule Left
Horizontal Rule Center
Horizontal Rule Right
Horizontal Rule No Shading
Horizontal Rule Size
Horizontal Rule Width
------------------------------------
------------------------------------
Comments
Post a Comment