Computer Science, asked by george0096, 2 months ago

1. What is HTML
2. Explain the terms Tags and Attributes.
3. What is an Element? Explain its various types?
4. Write a short note on Heading and Paragraph elements.
5. What are Cascading Style Sheets? Name the different methods available for applying Style rules.

Answers

Answered by BrainlyTwinklingstar
12

1st Answer

\bigstar HTML stands for Hyper text mark-up language. It is a mark-up language used to create websites.

2nd Answer

\bigstar Tag : A tag is a simplest form to hold a HTML element.

\bigstar Attributes : A attributes describe more information on the HTML element.

3rd Answer

\bigstar An element describe the entire HTML document.

Types of elements :

  1. Void elements
  2. Emplate elements
  3. Raw text elements
  4. Escapable raw text elements
  5. Foreign elements
  6. Normal elements

4th Answer

Heading :

\bigstar The heading element defines the heading of the HTML document, in HTML 6 types of heading elements, that is, H1, H2, H3, H4, H5 and H6, H1 is the height heading in HTML and H6 is the smallest heading in HTML. This is top level heading.

Paragraph :

\bigstar The paragraph elements defines the paragraph of the HTML document. <p> represent the paragraph of the HTML document, and <p> elements is used for identifying the blocks of paragraph text.

5th Answer

\bigstar CSS stands for Cascading style sheets, it is a style sheet language used for formatting the presentation of a document.

\bigstar Cascading style sheets are applied in HTML and XHTML using three methods: Inline, Internal and External.

Answered by emma3006
1

1. HTML is a document-layout and hyperlink-specification language i.e., a language used to design the layout of a document and to specify the hyperlinks. It tells the browser how to display the contents of a hypertext document i.e., a document including text, images and other support media. it also tells how to make a document interactive through special hyperlinks.

2. A tag is a códed HTML command that indicates how part of web page should be displayed. All HTML tags are contained with angle brackets ( < > ). HTML tags are not case-sensitive.

An attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.

3.  Element represents one complete individual component. An element has three parts:

  • a start tag
  • a end tag
  • content between start and end tags

The HTML elements can be categorized as:

  • Container Elements - The elements that include both start tag and end tag are called Container Elements.

                e.g. - <p> </p>

  • Empty Elements - Empty elements contain only start tag. These elements do not enclose any data; instead they do some function on their own.

                e.g. - <br>

4. Heading tag is used to define different heading levels in an HTML document. it is basically used to emphasize the text. There are 6 heading levels, H1 to H6. The H1 heading style displays the text in the largest size and is mainly used for main headings. The lower levels are used for sub-headings and less important things. these heading tags are written within the <BODY> tag of the document.

Paragraph tag is used to display a long piece of text on a web browser. <P> is the paragraph element. It marks a block of text as a paragraph. To mark the end of a paragraph, </p> element is used. when you start another paragraph, the web browser will leave one line between the two paragraphs.

5.  CSS or Cascading Style Sheets is stored set of design principles that tells how to format and display the elements of a web page. It tells the browser how each type of element should be displayed, which may vary for different media (like screen, print and handheld device).

There are three ways through which CSS style rules can be applied/linked to a web page :

  • Inline - Styles are embedded right within the HTML códe they affect.
  • Internal - Styles are placed within the header information of the web page and then affect all corresponding tags on the page.
  • External - Styles are códed in a separate document, which is then referenced from within the header of the actual web page.
Similar questions