day 2

day 2 at css and html

it will tell about heading size with for css we use style

This paragraph contains a lot of lines in the source code, but the browser ignores it.

This paragraph contains a lot of spaces in the source code, but the browser ignores it.

The "hr" tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule. The


element is used to separate content (or define a change) in an HTML page:

the br tag use for line break The HTML
element defines a line break. Use
if you want a line break (a new line) without starting a new paragraph

The Poem Problem

This poem will display on a single line

My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me.

he HTML

 element defines preformatted text.

The pre text inside a  element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks:

  My Bonnie lies over the ocean.

  My Bonnie lies over the sea.

  My Bonnie lies over the ocean.

  Oh, bring back my Bonnie to me.

HTML Styles

with the help of style property we The HTML style attribute is used to add styles to an element, such as color, font, size, and more.

background-color it will change the background

this will tell you background color

this will tell you about red color letters

this will tell you about the font

this will tell you about text size

It will tell you about the align means center or left or right

Use the style attribute for styling HTML elements


Use background-color for background color
Use color for text colors
Use font-family for text fonts
Use font-size for text sizes
Use text-align for text alignment

HTML Text Formatting

- Bold text - Important text tag is strong
- Italic text
- Emphasized text
- Marked text
- Smaller text
- Deleted text
- Inserted text
- Subscript text The HTML sub element defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O:
- Superscript text character above the normal like WWW[1]

hii h1 isLT

last HTML Text Formatting

HTML Quotation and Citation Elements

Comments

Popular Posts