Docsity

Hyper Text Markup Language Basics, Study notes of Programming Languages

Toggle sidebar
bg1
Creating buttons
โ†’
<button> -opening
</button> -closing
Example:
<button> purchase </button>
Creating a paragraph
โ†’
<p> -opening
Example:
<p> hello </p>
Creating heading size
The bigger number, the smaller the size.
โ—‹
<h6> -smallest size
<h1> -biggest size
โ†’
An element has opening and closing tag and a code. On creating the body of a webpage, we
use
โ†’
<body> </body>
Displaying a heading on a webpage:
โ†’
<html>
<body>
<h1> Top Stories </h1>
</body>
</html>
Displaying a button:
โ†’
<html>
<body>
<button> like </button>
</body>
</html>
Displaying a paragraph:
โ†’
<html>
<body>
Html basics
Saturday, 14 August 2021
2:38 pm
HTML BASICS Page 1
pf2

Partial preview of the text

Download Hyper Text Markup Language Basics and more Study notes Programming Languages in PDF only on Docsity!

โ†’ Creating buttons

  • opening
  • closing Example: purchase โ†’ Creating a paragraph

- opening

- closing Example:

hello

Creating heading size โ—‹ The bigger number, the smaller the size. - smallest size - biggest size

An element has opening and closing tag and a code. On creating the body of a webpage, we use

โ†’ Displaying a heading on a webpage:

Top Stories

โ†’ Displaying a button:

like

โ†’ Displaying a paragraph:

Html basics

Saturday, 14 August 2021 2:38 pm HTML BASICS Page 1

Top Stories

breaking news

โ†’ Displaying the larger heading on top of the smaller heading:

Top Stories breaking news

โ†’ We can separate lines with line break tag: - it is an empty tag which means it does not have a closing tag and content. โ†’ Element for giving emphasis: "I like you" โ†’ Defining strings as important: "I like you" โ†’ A container for info about a webpage:

โ†’ To give a webpage title:

โ†’ Tells the web browser what version of HTML we're using:

โ†’ Creating a link:

โ†’ Linking the txt to a webpage: Href = "url" Example: Learn HTML BASICS Page 2