HTML-Fundamental

HTML - Hyper text markup label

HTML - Hyper text markup label

1.1 Introduction

1. W3C - World Wide Web consortium

  • Structured standard languages (HTML, XML)
  • Presentation Standard Language (CSS)
  • Behavioral Standards (DOM, ECMScript)

2.1 HTML fundamental

2.1.1 Label

  • Block element: no matter how much content, it will occupy one line e.g., p label, h1-h6 label
  • Inline element: content expands in one line e.g., a label, strong, em

Index1.0 - basic label: titile-h, paragraph-p, special symbol-&lt

Index2.0 - img label

2.1.2 list

  • Ordered list-ol

  • Unordered list-ul

  • Custome list-dl

    Example of using list

    image-20220602030543890

    image-20220602030458256

2.1.3 table

Characteristic:

  1. easy to use
  2. stable structure

Basic structure:

  • cell
  • row
  • column
  • across rows
  • across columns

2.1.4 Video and Audio

2.2 Page structure analysis

General web includes:

  • Header
  • Footer
  • Section
  • Article
  • Aside
  • Nav

2.3 iframe

Embedding one web page into another web page

2.4 form

attributesdescription
typedefine type of elements. text(default), password, checkbox, radio, submit, reset, file, hidden, image, button
nameDefine the name of form
valuedefine the initial value of elements (when type is radio, a value must be specified)
sizedefine initial width of form
maxlengththe maxlength of text or password
checkedwhen type is radio or checkbox, specified a selected button

2.4.1 form elements

2.4.2 form applications

2.4.3 Primary validation of forms

  • placeholder -- tips

     

  • required -- not null

  • pattern -- regular expression

     

 

Comments