Professional Documents
Culture Documents
Fundamentals
CS200: Web Development
Tunis Business School - 2023/2024
HTML Basic elements
<hX>, </hX>
• X = 1, 2, 3, 4, 5, or 6
• Text between these tags will be
rendered as an X-level section header.
Paragraphs
<p>, </p>
• Text between these tags will be
rendered as a paragraph by the
browser, with space above and below.
Lines
<hr> <br>
• Creates a horizontal • Used to add a line
line in an HTML page. break (a new line)
• Used to separate without starting a
content new paragraph.
Text Formatting
Tag Description
<b> Defines bold text
<strong> Defines strong text
<i> Defines italic text
<em> Defines emphasized text
<small> Defines small text
<sub> Defines subscripted text
<sup> Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
<mark> Defines marked/highlighted text
Images
action • specifies the URL to which the form data will be sent when the
user submits the form.
• It typically points to a server-side script or a URL that handles
method
• Determines how the form data is sent to the server.
• GET: Appends form data to the URL as query parameters.
Suitable for simple data retrieval.
attribute • POST: Sends form data in the request body. Suitable for sensitive
or large amounts of data
Text Input Fields
<input type="text"> • Allows users to enter single-line text.
<input type="password"> • Conceals text input for sensitive information like passwords.
• Provides a multiline
text input field where
<textarea> users can enter longer
text or comments.
Selection Fields
• Enables users to
<input upload files (e.g.,
type="file">
images, documents).
Buttons