It's a good document, Summaries of Computer Science

The documents contains html notes

Typology: Summaries

2025/2026

Uploaded on 05/27/2026

brian-mwai
brian-mwai 🇰🇪

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
The <!DOCTYPE html> declaration defines that this document is an HTML5 document
The <html> element is the root element of an HTML page
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in the browser's title
bar or in the page's tab)
The <body> element defines the document's body, and is a container for all the visible
contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
The <h1> element defines a large heading usually <h1> to <h6>
The <p> element defines a paragraph
What is an HTML Element?
An HTML element is defined by a start tag, some content, and an end tag:
<tagname> Content goes here... </tagname>
The HTML element is everything from the start tag to the end tag:
<h1>My First Heading</h1>
<p>My first paragraph.</p>
HTML attributes provide additional information about HTML elements.
Underline-<u>
<p>This is <u>underlined</u> text.</p>
Bold - <strong>
-<b>
<strong>This is important bold text.</strong>
<b>This is just bold text.</b>
HTML Attributes
All HTML elements can have attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Attributes usually come in name/value pairs like: name="value"
pf3
pf4

Partial preview of the text

Download It's a good document and more Summaries Computer Science in PDF only on Docsity!

 The declaration defines that this document is an HTML5 document  The element is the root element of an HTML page  The element contains meta information about the HTML page  The element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)  The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.  The <h1> element defines a large heading usually <h1> to <h6>  The <p> element defines a paragraph What is an HTML Element?  An HTML element is defined by a start tag, some content, and an end tag:  <tagname> Content goes here... </tagname>  The HTML element is everything from the start tag to the end tag:  <h1>My First Heading</h1> <p>My first paragraph.</p>

HTML attributes provide additional information about HTML elements.

Underline-<u>

<p>This is <u>underlined</u> text.</p>

Bold - <strong>

  • <b>

<strong>This is important bold text.</strong>

<b>This is just bold text.</b>

HTML Attributes  All HTML elements can have attributes  Attributes provide additional information about elements  Attributes are always specified in the start tag  Attributes usually come in name/value pairs like: name="value"

HTML links are defined with the tag eg. This is a link The link's destination is specified in the href attribute. Attributes are used to provide additional information about HTML elements. You will learn more about attributes in a later chapter. HTML images are defined with the tag eg. The source file (src), alternative text (alt), width, and height are provided as attributes:

HTML Horizontal Rules The 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: Example This is heading 1

This is some text.

This is heading 2

This is some other text.

The tag is an empty tag, which means that it has no end tag. HTML Line Breaks The HTML element defines a line break. Use if you want a line break (a new line) without starting a new paragraph: Example

This isa paragraphwith line breaks.

Uppercase Letters Ordered List

Apple Banana Cherry Date