Html9 t4z

  • ed by: Ravi Ranjan
  • 0
  • 0
  • July 2022
  • PDF

This document was ed by and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this report form. Report 3b7i


Overview 3e4r5l

& View Html9 as PDF for free.

More details w3441

  • Words: 1,126
  • Pages: 9
HTML Comment Tag Definition and Usage The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. HTML Tag The tag specifies the font face, font size, and color of text. This is some text! HTML Paragraphs Browsers automatically add an empty line before and after a paragraph.

This is a paragraph.



HTML Line Breaks Use the
tag if you want a line break (a new line) without starting a new paragraph: Example

This is
a para
graph with line breaks

The
tag is an empty tag which means that it has no end tag.

HR Tag:the
tag may still be displayed as a horizontal rule in visual browsers. In HTML, the
tag has no end tag.


ALIGN:- It specifies the horizontal alignment of the line. Default value is center. NOSHADE:- This attribute produces a solid black line that has no shading. It does not take any value. SIZE:- It indicates the thickness of the line, in pixels. The default size is 2 pixels. As we increase the value of the size attribute, the line will become thicker and thicker. WIDTH:- It defines the horizontal width of the line, which means the length of the line. The default is the width of the page. The measurement value can be a number of pixels, e.g. “5”, or a percentage of the page width, e.g. “60%”.

HTML Images - The Tag and the Src Attribute In HTML, images are defined with the tag. The tag is empty, which means that it contains attributes only, and has no closing tag. To display an image on a page, we need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image that we want to display. Syntax for defining an image: some_text HTML Images - Set Height and Width of an Image The height and width attributes are used to specify the height and width of an image. The attribute values are specified in pixels by default: Smiley face HTML Hyperlinks (Links) The HTML tag defines a hyperlink. A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. Click here to open yahoo HTML Tag

Definition and Usage The tag specifies bold text.

Example

This is normal text - and this is bold text.



HTML Tag

Definition and Usage The content of the tag is usually displayed in italic. Example

He named his car The lightning, because it was very fast.

HTML Tag

Definition and Usage The content of the tag is usually displayed in Underline. Example Underline a word with the tag:

This is a parragraph.

HTML
Tag.

Definition and Usage The
tag is used to center-align text.

Example Center-align text in an HTML page:
This text will be center-aligned.


HTML Lists The most common HTML lists are ordered and unordered lists:

HTML Lists An ordered list:

An unordered list:

1. The first list item 2. The second list item

 

List item List item

3. The third list item



List item

HTML Unordered Lists An unordered list starts with the