Find all files (type f) with either a .html or .txt extension in the current directory (denoted by ~) and execute the ls -l command on each of them.
find ~ -type f \( -name '*.html' -o -name '*.txt' \) -exec ls -l {} \;